Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions expected/jsquery.out
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
CREATE EXTENSION jsquery;
SHOW server_version \gset
SELECT substring(:'server_version', '\d+')::int < 19 AS server_version_lt_19
\gset
\if :server_version_lt_19
set escape_string_warning=off;
set standard_conforming_strings=on;
\endif
CREATE TABLE test_jsquery (v jsonb);
\copy test_jsquery from 'data/test_jsquery.data'
select ''::jsquery;
Expand Down Expand Up @@ -72,7 +77,7 @@ select '* < 13 AND #.zxc"x" = "true"'::jsquery;
ERROR: bad jsquery representation
LINE 1: select '* < 13 AND #.zxc"x" = "true"'::jsquery;
^
DETAIL: syntax error, unexpected STRING_P, expecting $end at or near """
DETAIL: syntax error at or near """
select 'a < 1'::jsquery;
jsquery
---------
Expand Down Expand Up @@ -1188,7 +1193,7 @@ select 'a\r = x"\\abcd"'::jsquery AS err;
ERROR: bad jsquery representation
LINE 1: select 'a\r = x"\\abcd"'::jsquery AS err;
^
DETAIL: syntax error, unexpected STRING_P, expecting $end at or near """
DETAIL: syntax error at or near """
--IS
select 'as IS boolean OR as is ARRAY OR as is ObJect OR as is Numeric OR as is string'::jsquery;
jsquery
Expand Down Expand Up @@ -1297,7 +1302,7 @@ select 'a = /*-- noindex */ 5'::jsquery;
ERROR: bad jsquery representation
LINE 1: select 'a = /*-- noindex */ 5'::jsquery;
^
DETAIL: syntax error, unexpected HINT_P at or near "*/"
DETAIL: syntax error at or near "*/"
select 'a = /* noindex */ 5'::jsquery;
jsquery
---------
Expand Down
Loading