]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
New test cases for ticket [b899b6042f97f5] derived from a bug report on
authordrh <drh@noemail.net>
Wed, 4 Oct 2017 14:13:29 +0000 (14:13 +0000)
committerdrh <drh@noemail.net>
Wed, 4 Oct 2017 14:13:29 +0000 (14:13 +0000)
the mailing list from Wout Mertens.

FossilOrigin-Name: ef94ea061d2ec8ee0243e97dfcfc7a7c75dd22006e61a7195b780722bbc925db

manifest
manifest.uuid
test/whereF.test

index ae0689f471a4386335a03852ecba6884c7a0b928..072511d38f93fd115e69d4900cdc986b38ac69ee 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Amend\srecent\schanges\sto\sbusy.test\sto\savoid\sfailing\swith\sSQLITE_ENABLE_STAT4\nbuilds.
-D 2017-10-04T12:08:35.867
+C New\stest\scases\sfor\sticket\s[b899b6042f97f5]\sderived\sfrom\sa\sbug\sreport\son\nthe\smailing\slist\sfrom\sWout\sMertens.
+D 2017-10-04T14:13:29.708
 F Makefile.in 4bc36d913c2e3e2d326d588d72f618ac9788b2fd4b7efda61102611a6495c3ff
 F Makefile.linux-gcc 7bc79876b875010e8c8f9502eb935ca92aa3c434
 F Makefile.msc 6033b51b6aea702ea059f6ab2d47b1d3cef648695f787247dd4fb395fe60673f
@@ -1534,7 +1534,7 @@ F test/whereB.test 0def95db3bdec220a731c7e4bec5930327c1d8c5
 F test/whereC.test cae295158703cb3fc23bf1a108a9ab730efff0f6
 F test/whereD.test 711d4df58d6d4fb9b3f5ce040b818564198be002
 F test/whereE.test b3a055eef928c992b0a33198a7b8dc10eea5ad2f
-F test/whereF.test 7c426e0bf303407910c21f79d3a6742f7b33c9b27b2dddd230dfc8c2508981a6
+F test/whereF.test a44c7d73c22e2532a5c2dc7377fca64825f86a8969b113a1bdcffacbcbc14d39
 F test/whereG.test dde4c52a97385a55be6a7cd46be8373f0cf35501
 F test/whereH.test e4b07f7a3c2f5d31195cd33710054c78667573b2
 F test/whereI.test eab5b226bbc344ac70d7dc09b963a064860ae6d7
@@ -1655,7 +1655,7 @@ F vsixtest/vsixtest.tcl 6a9a6ab600c25a91a7acc6293828957a386a8a93
 F vsixtest/vsixtest.vcxproj.data 2ed517e100c66dc455b492e1a33350c1b20fbcdc
 F vsixtest/vsixtest.vcxproj.filters 37e51ffedcdb064aad6ff33b6148725226cd608e
 F vsixtest/vsixtest_TemporaryKey.pfx e5b1b036facdb453873e7084e1cae9102ccc67a0
-P 4464f40ccd7c5553f4d44120ca6dac4e9445f08f083f7dcb3bd66b4413d818e0
-R 4c5ee8ddebc2e3331db784299bd3d5dd
-U dan
-Z 592fc1b29722b14ffc2bc21290e229f0
+P 9ff4944194c56b38843bc626dc51604db8e1ca8a0fd221e2d6f78c840d57c341
+R 799bca1879769404f931f1637b51cab6
+U drh
+Z bd1c8b775635a1239ba29ee4684e681f
index c47875e678773ce2818ae425e945b197615b9ada..d1bec2640fbe010e1e7d6e2d0b700c25b106cc74 100644 (file)
@@ -1 +1 @@
-9ff4944194c56b38843bc626dc51604db8e1ca8a0fd221e2d6f78c840d57c341
\ No newline at end of file
+ef94ea061d2ec8ee0243e97dfcfc7a7c75dd22006e61a7195b780722bbc925db
\ No newline at end of file
index a2361cfd16d88d7cafb0455fc1fc05f8ad74bba0..0888f25789903e868ef308f76390c25643b1b9a0 100644 (file)
@@ -195,7 +195,24 @@ ifcapable json1 {
     SELECT * FROM t6
      WHERE (EXISTS (SELECT 1 FROM json_each(t6.c) AS x WHERE x.value=1));
   } {1 {} {{"a":1,"b":[3,4,5],"c":{"x":4.5,"y":7.8}}}}
-    
+
+  # Another test case derived from a posting by Wout Mertens on the
+  # sqlite-users mailing list on 2017-10-04.
+  do_execsql_test 6.3 {
+    DROP TABLE IF EXISTS t;
+    CREATE TABLE t(json JSON);
+    SELECT * FROM t
+     WHERE(EXISTS(SELECT 1 FROM json_each(t.json,"$.foo") j
+                   WHERE j.value = 'meep'));
+  } {}
+  do_execsql_test 6.4 {
+    INSERT INTO t VALUES('{"xyzzy":null}');
+    INSERT INTO t VALUES('{"foo":"meep","other":12345}');
+    INSERT INTO t VALUES('{"foo":"bingo","alt":5.25}');
+    SELECT * FROM t
+     WHERE(EXISTS(SELECT 1 FROM json_each(t.json,"$.foo") j
+                   WHERE j.value = 'meep'));
+  } {{{"foo":"meep","other":12345}}}
 }
 
 finish_test