]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Add test case for ticket #3376. (CVS 5705)
authordrh <drh@noemail.net>
Tue, 16 Sep 2008 11:58:20 +0000 (11:58 +0000)
committerdrh <drh@noemail.net>
Tue, 16 Sep 2008 11:58:20 +0000 (11:58 +0000)
FossilOrigin-Name: c64260579d353df3eae8c355b082b8206bc6185b

manifest
manifest.uuid
test/collate5.test

index 1e932cbc45feccc14e72cc95bc150b19c52f3ace..6a8ad4672c5b1f16cbdb5c719ea497b7cc14be2d 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Set\sthe\stype\sof\sthe\s"comment"\sfield\sto\sSQLITE_TEXT\swhen\soutputing\sthe\sresults\sof\san\sEXPLAIN\squery.\s(CVS\s5704)
-D 2008-09-16T09:09:20
+C Add\stest\scase\sfor\sticket\s#3376.\s(CVS\s5705)
+D 2008-09-16T11:58:20
 F Makefile.arm-wince-mingw32ce-gcc fcd5e9cd67fe88836360bb4f9ef4cb7f8e2fb5a0
 F Makefile.in d15a7ebfe5e057a72a49805ffb302dbb601c8329
 F Makefile.linux-gcc d53183f4aa6a9192d249731c90dbdffbd2c68654
@@ -243,7 +243,7 @@ F test/collate1.test e3eaa48c21e150814be1a7b852d2a8af24458d04
 F test/collate2.test 04cebe4a033be319d6ddbb3bbc69464e01700b49
 F test/collate3.test d28d2cfab2c3a3d4628ae4b2b7afc9965daa3b4c
 F test/collate4.test 4545554388daaa604e5b3def3aa2f7ed6d56e8da
-F test/collate5.test e54df13eb9e1140273680b3153c6e19b39e59888
+F test/collate5.test fe0f43c4740d7b71b959cac668d19e42f2e06e4d
 F test/collate6.test 8be65a182abaac8011a622131486dafb8076e907
 F test/collate7.test fac8db7aac3978466c04ae892cc74dcf2bc031aa
 F test/collate8.test df26649cfcbddf109c04122b340301616d3a88f6
@@ -636,7 +636,7 @@ F tool/speedtest16.c c8a9c793df96db7e4933f0852abb7a03d48f2e81
 F tool/speedtest2.tcl ee2149167303ba8e95af97873c575c3e0fab58ff
 F tool/speedtest8.c 1dbced29de5f59ba2ebf877edcadf171540374d1
 F tool/speedtest8inst1.c 293327bc76823f473684d589a8160bde1f52c14e
-P aa5c9455be961e712d5c56de8d699adabb186cdc
-R 7a2483a682bc45f299b14a46a88e0b76
-U danielk1977
-Z 9c3c637b07efde53a208adaf6274b212
+P 5dff20f4bc8d98017e76d3a771ab49310bddda63
+R bbe3c956b65ecfe3fc9d4f701a790ef2
+U drh
+Z 010c83f95916a850b415d2bd020d7b81
index 17136281dbf638b129aa228f5a6fcf69152db63b..c1fbbe62225193c324e1900e1f60f262d8ab10a0 100644 (file)
@@ -1 +1 @@
-5dff20f4bc8d98017e76d3a771ab49310bddda63
\ No newline at end of file
+c64260579d353df3eae8c355b082b8206bc6185b
\ No newline at end of file
index b8dc581735377d48d952e267b1e0502c7f165336..2e4b89d5ca3852e00a49d68116adab40ca30074d 100644 (file)
@@ -14,7 +14,7 @@
 # SELECT statements that use user-defined collation sequences. Also
 # GROUP BY clauses that use user-defined collation sequences.
 #
-# $Id: collate5.test,v 1.6 2007/11/12 15:29:19 danielk1977 Exp $
+# $Id: collate5.test,v 1.7 2008/09/16 11:58:20 drh Exp $
 
 set testdir [file dirname $argv0]
 source $testdir/tester.tcl
@@ -69,6 +69,28 @@ do_test collate5-1.3 {
   }
 } {A Apple a apple B banana N {}}
 
+# Ticket #3376
+#
+do_test collate5-1.11 {
+  execsql {
+    CREATE TABLE tkt3376(a COLLATE nocase PRIMARY KEY);
+    INSERT INTO tkt3376 VALUES('abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz');
+    INSERT INTO tkt3376 VALUES('ABXYZ012234567890123456789ABXYZ012234567890123456789ABXYZ012234567890123456789ABXYZ012234567890123456789ABXYZ012234567890123456789ABXYZ012234567890123456789ABXYZ012234567890123456789');
+    SELECT DISTINCT a FROM tkt3376;
+  }
+} {abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz ABXYZ012234567890123456789ABXYZ012234567890123456789ABXYZ012234567890123456789ABXYZ012234567890123456789ABXYZ012234567890123456789ABXYZ012234567890123456789ABXYZ012234567890123456789}
+do_test collate5-1.12 {
+  sqlite3 db2 :memory:
+  db2 eval {
+    PRAGMA encoding=UTF16le;
+    CREATE TABLE tkt3376(a COLLATE nocase PRIMARY KEY);
+    INSERT INTO tkt3376 VALUES('abc');
+    INSERT INTO tkt3376 VALUES('ABX');
+    SELECT DISTINCT a FROM tkt3376;
+  }
+} {abc ABX}
+catch {db2 close}
+
 # The remainder of this file tests compound SELECT statements.
 # Omit it if the library is compiled such that they are omitted.
 #