user workarount to compare CLOB column with CHAR value

backport of https://github.com/owncloud/core/pull/6857

@DeepDiver1975 @karlitschek @PVince81 @blizzz