From 4b4f51148ae48c263027f2c269ff53e6bea1b8d9 Mon Sep 17 00:00:00 2001 From: dan Date: Fri, 26 Aug 2016 19:47:30 +0000 Subject: [PATCH] Add test cases to rowvalue2.test. FossilOrigin-Name: 078bb69e99891ba3b76a39ac974990714c43908f --- manifest | 14 +++++++------- manifest.uuid | 2 +- test/rowvalue2.test | 28 ++++++++++++++++++++++++++++ 3 files changed, 36 insertions(+), 8 deletions(-) diff --git a/manifest b/manifest index 55a6113c35..8bf9f54ae7 100644 --- a/manifest +++ b/manifest @@ -1,5 +1,5 @@ -C Enhance\ssqlite3FindInIndex()\sso\sthat\sit\sis\sable\sto\smake\suse\sof\sthe\nprimary\skeys\sat\sthe\send\sof\san\sindex. -D 2016-08-26T19:31:29.011 +C Add\stest\scases\sto\srowvalue2.test. +D 2016-08-26T19:47:30.838 F Makefile.in cfd8fb987cd7a6af046daa87daa146d5aad0e088 F Makefile.linux-gcc 7bc79876b875010e8c8f9502eb935ca92aa3c434 F Makefile.msc 5017381e4853b1472e01d5bb926be1268eba429c @@ -1021,7 +1021,7 @@ F test/rowallock.test 3f88ec6819489d0b2341c7a7528ae17c053ab7cc F test/rowhash.test 0bc1d31415e4575d10cacf31e1a66b5cc0f8be81 F test/rowid.test 5b7509f384f4f6fae1af3c8c104c8ca299fea18d F test/rowvalue.test 7d8482dde9023973615eaaca65647f33d70c1f01 -F test/rowvalue2.test 875068299fd4dd50ef0a47786462c8e1f4065f9a +F test/rowvalue2.test 060d238b7e5639a7c5630cb5e63e311b44efef2b F test/rowvalue3.test 01399b7bf150b0d41abce76c18072da777c2500c F test/rowvalue4.test 9b40c9be9bdde30fc66cddbfdf6a5af37de4ccac F test/rowvalue5.test a440d490c8c0bf606034c09d5c6bbf7840b98f95 @@ -1521,7 +1521,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 87d40195ae5cc2abd9bae45073a615db81263285 -R c0ed51d5af8253a23448fcfb693a50e8 -U drh -Z 3b9104524847b85ed5a08921e98408a8 +P 4b589fbfcc4265902de0f552961d2df497a184da +R 2639cfd9d35718211068678a56d30d2c +U dan +Z 1bf9a10eeccbff62da890e6c842f5df6 diff --git a/manifest.uuid b/manifest.uuid index 3562568838..54b588e6c5 100644 --- a/manifest.uuid +++ b/manifest.uuid @@ -1 +1 @@ -4b589fbfcc4265902de0f552961d2df497a184da \ No newline at end of file +078bb69e99891ba3b76a39ac974990714c43908f \ No newline at end of file diff --git a/test/rowvalue2.test b/test/rowvalue2.test index b385b23ce2..1502e31a54 100644 --- a/test/rowvalue2.test +++ b/test/rowvalue2.test @@ -247,5 +247,33 @@ foreach {tn idx} { } } +do_execsql_test 5.0 { + CREATE TABLE r1(a TEXT, iB TEXT); + CREATE TABLE r2(x TEXT, zY INTEGER); + CREATE INDEX r1ab ON r1(a, iB); + + INSERT INTO r1 VALUES(35, 35); + INSERT INTO r2 VALUES(35, 36); + INSERT INTO r2 VALUES(35, 4); + INSERT INTO r2 VALUES(35, 35); +} {} + +foreach {tn lhs rhs} { + 1 {x +zY} {a iB} + 2 {x zY} {a iB} + 3 {x zY} {a +iB} + 4 {+x zY} {a iB} + 5 {x zY} {+a iB} +} { + foreach op { IS == < <= > >= } { + set e1 [make_expr1 $lhs $rhs $op] + set e2 [make_expr2 $lhs $rhs $op] + do_execsql_test 5.$tn.$op \ + "SELECT * FROM r1, r2 WHERE $e2 ORDER BY iB" [db eval \ + "SELECT * FROM r1, r2 WHERE $e1 ORDER BY iB" + ] + } +} + finish_test