Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit856d8ff

Browse files
committed
improve tests
1 parent8493798 commit856d8ff

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

‎expected/jsquery.out

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1395,6 +1395,18 @@ select '{"a":{"aa":1, "ab":2}, "b":[5,6, {"c":8}]}' @@ '*: ($ is object OR $ is
13951395
t
13961396
(1 row)
13971397

1398+
select '{"a":{"aa":1, "ab":2}, "b":[5,6, {"c":"x"}]}' @@ '*: ($ is object OR $ is array OR $ is numeric)'::jsquery;
1399+
?column?
1400+
----------
1401+
f
1402+
(1 row)
1403+
1404+
select '{"a":{"aa":1, "ab":2}, "b":[5,6, {"c":null}]}' @@ '*: ($ is object OR $ is array OR $ is numeric)'::jsquery;
1405+
?column?
1406+
----------
1407+
f
1408+
(1 row)
1409+
13981410
--extract entries for index scan
13991411
SELECT gin_debug_query_path_value('NOT NOT NOT x(y(NOT (a=1) and NOT (b=2)) OR NOT NOT (c=3)) and z = 5');
14001412
gin_debug_query_path_value

‎sql/jsquery.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,8 @@ select '{"a":{"aa":1, "ab":2}, "b":{"ba":3, "bb":5}}' @@ '*: ($ is object OR $ i
281281
select'{"a":{"aa":1, "ab":2}, "b":[5,6]}' @@'*: ($ is object OR $ is numeric)'::jsquery;
282282
select'{"a":{"aa":1, "ab":2}, "b":[5,6]}' @@'*: ($ is object OR $ is array OR $ is numeric)'::jsquery;
283283
select'{"a":{"aa":1, "ab":2}, "b":[5,6, {"c":8}]}' @@'*: ($ is object OR $ is array OR $ is numeric)'::jsquery;
284+
select'{"a":{"aa":1, "ab":2}, "b":[5,6, {"c":"x"}]}' @@'*: ($ is object OR $ is array OR $ is numeric)'::jsquery;
285+
select'{"a":{"aa":1, "ab":2}, "b":[5,6, {"c":null}]}' @@'*: ($ is object OR $ is array OR $ is numeric)'::jsquery;
284286

285287
--extract entries for index scan
286288

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp