]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Extra test for SQLITE_MAX_COMPOUND_SELECT.
authordan <Dan Kennedy>
Mon, 15 Aug 2022 19:23:15 +0000 (19:23 +0000)
committerdan <Dan Kennedy>
Mon, 15 Aug 2022 19:23:15 +0000 (19:23 +0000)
FossilOrigin-Name: c271096736889530f392ff37e631a77f3bc9c46b290dbda245fa05249f4410fc

manifest
manifest.uuid
test/sqllimits1.test

index ff9202b070f4da60f72281d631337a54c734918b..bb54c41f760f13a3f28d430788bf3380bcd1645e 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C The\snew\s--script\soption\sto\sdbtotxt.c\slooks\sfor\san\sSQL\sscript\sat\sthe\shead\sof\nthe\sfile\sand\sgenerates\sa\sCLI\sscript\sthat\swill\sconstruct\sthe\sdatabase\sthen\srun\nthe\sSQL.
-D 2022-08-15T18:36:08.339
+C Extra\stest\sfor\sSQLITE_MAX_COMPOUND_SELECT.
+D 2022-08-15T19:23:15.090
 F .fossil-settings/empty-dirs dbb81e8fc0401ac46a1491ab34a7f2c7c0452f2f06b54ebb845d024ca8283ef1
 F .fossil-settings/ignore-glob 35175cdfcf539b2318cb04a9901442804be81cd677d8b889fcc9149c21f239ea
 F LICENSE.md df5091916dbb40e6e9686186587125e1b2ff51f022cc334e886c19a0e9982724
@@ -1486,7 +1486,7 @@ F test/spellfix2.test dfc8f519a3fc204cb2dfa8b4f29821ae90f6f8c3
 F test/spellfix3.test 0f9efaaa502a0e0a09848028518a6fb096c8ad33
 F test/spellfix4.test 51c7c26514ade169855c66bcf130bd5acfb4d7fd090cc624645ab275ae6a41fb
 F test/sqldiff1.test 182058e09c7082de5c6a470ff9c291337bbeb650052c2cc68fbb3d7e25861d91
-F test/sqllimits1.test f46f405d754e702227dcdf5b73f94fffcd48c676e845afa37329e4ce2e32ccbf
+F test/sqllimits1.test 69d110987dbdb4bea9dbc3f151c93b4697ae6cd7e6c3a519119dc1140c8607fd
 F test/sqllog.test 6af6cb0b09f4e44e1917e06ce85be7670302517a
 F test/startup.c 1beb5ca66fcc0fce95c3444db9d1674f90fc605499a574ae2434dcfc10d22805
 F test/stat.test 123212a20ceb496893d5254a5f6c76442ce549fdc08d1702d8288a2bbaac8408
@@ -1999,8 +1999,8 @@ F vsixtest/vsixtest.tcl 6a9a6ab600c25a91a7acc6293828957a386a8a93
 F vsixtest/vsixtest.vcxproj.data 2ed517e100c66dc455b492e1a33350c1b20fbcdc
 F vsixtest/vsixtest.vcxproj.filters 37e51ffedcdb064aad6ff33b6148725226cd608e
 F vsixtest/vsixtest_TemporaryKey.pfx e5b1b036facdb453873e7084e1cae9102ccc67a0
-P 52c3ae063e133c5f88cad2c3084cf46218f865ac817ab937e3529d2c6a7af300
-R e96f02106a09b713c72886888af2923e
-U drh
-Z 30df68295258a2292c6be3adf651edab
+P 6170e638ebeb12cc40c3247324237978401f701afc270de88ad03e183e82cefc
+R 5fdd415975dfc9f1efaf302c20079f22
+U dan
+Z 538d1647acf283a5b618d8240e7b7cf4
 # Remove this line to create a well-formed Fossil manifest.
index 3f4443f6bfbbaa2c9dba34b6428cf6c963c60a51..800ff0f5cbae19f5a8fcd1b3e38d6be4a227751a 100644 (file)
@@ -1 +1 @@
-6170e638ebeb12cc40c3247324237978401f701afc270de88ad03e183e82cefc
\ No newline at end of file
+c271096736889530f392ff37e631a77f3bc9c46b290dbda245fa05249f4410fc
\ No newline at end of file
index 6b7d7b609587de3cac62ce4ec82cd49ced338dc2..1c3f66b7fac9da37296eef91eeca1a0cc4f3bb60 100644 (file)
@@ -910,4 +910,17 @@ do_catchsql_test sqllimits1-17.1 "
   CREATE TABLE $nm (x PRIMARY KEY)
 " {1 {string or blob too big}}
 
+#-------------------------------------------------------------------------
+#
+sqlite3_limit db SQLITE_LIMIT_COMPOUND_SELECT 10
+do_catchsql_test sqllimits1-18.1 {
+  CREATE TABLE b1(x);
+  INSERT INTO b1 VALUES(1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11);
+} {0 {}}
+
+do_catchsql_test sqllimits1-18.2 {
+  INSERT INTO b1 VALUES(1), (2), (3), (4), (5), (6), (7), (8), (9), (10)
+    UNION VALUES(11);
+} {1 {too many terms in compound SELECT}}
+
 finish_test