a few more tests fixed

This commit is contained in:
Ruslan Talpa
2015-10-22 16:17:23 +03:00
parent 2b8f5f791a
commit 2662e24991
3 changed files with 28 additions and 14 deletions
+2 -1
View File
@@ -378,7 +378,8 @@ locationF :: [T.Text] -> T.Text
locationF pKeys =
"(" <>
" WITH s AS (SELECT row_to_json(source) as r from source limit 1)" <>
" SELECT string_agg(json_data.key || '=eq.' || json_data.value, '&')" <>
-- " SELECT string_agg(json_data.key || '=eq.' || json_data.value, '&')" <>
" SELECT string_agg(json_data.key || '=' || coalesce( 'eq.' || json_data.value, 'is.null'), '&')" <>
" FROM s, json_each_text(s.r) AS json_data" <>
(
if null pKeys