]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Remove an ALWAYS() that turns out to be false when there is a semantic
authordrh <drh@noemail.net>
Fri, 17 Apr 2015 16:12:03 +0000 (16:12 +0000)
committerdrh <drh@noemail.net>
Fri, 17 Apr 2015 16:12:03 +0000 (16:12 +0000)
error on a compound SELECT.

FossilOrigin-Name: ad67a67c03078a2bc65d28f2b880b29bf02067c1

manifest
manifest.uuid
src/select.c

index 23cf01f4c558f1137d0fe132d2ad94fce376febe..643aef0dc44a6f3b2e5f8929715ae461bbdc6b0f 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Ensure\sthat\ssemantic\sSQL\serrors\sare\salways\sreported\sback\sup\sto\sthe\ssyntax\nparser.\s\sAlso:\s\sImprove\sthe\sdefense\sagainst\sinvalid\sPRAGMA\ssynchronous\ssettings.
-D 2015-04-17T15:58:33.364
+C Remove\san\sALWAYS()\sthat\sturns\sout\sto\sbe\sfalse\swhen\sthere\sis\sa\ssemantic\nerror\son\sa\scompound\sSELECT.
+D 2015-04-17T16:12:03.870
 F Makefile.arm-wince-mingw32ce-gcc d6df77f1f48d690bd73162294bbba7f59507c72f
 F Makefile.in faaf75b89840659d74501bea269c7e33414761c1
 F Makefile.linux-gcc 91d710bdc4998cb015f39edf3cb314ec4f4d7e23
@@ -230,7 +230,7 @@ F src/printf.c 08fa675c200aac29e561c6153f91f909ed17612f
 F src/random.c ba2679f80ec82c4190062d756f22d0c358180696
 F src/resolve.c 66cfe49a9c3b449ef13b89a8c47036a4ed167eab
 F src/rowset.c eccf6af6d620aaa4579bd3b72c1b6395d9e9fa1e
-F src/select.c e7d3f26dd2bb513049c6c585919aa195c862a287
+F src/select.c 361dfc32244656bbe3f0e53d8ed791b3ec0c4be8
 F src/shell.c 28b3e1174a7fc00155d7d00880a33589a88508c9
 F src/sqlite.h.in ca27603a36fcacdaac5a19d8ee35aaff8ce8516f
 F src/sqlite3.rc 992c9f5fb8285ae285d6be28240a7e8d3a7f2bad
@@ -1251,7 +1251,7 @@ F tool/vdbe_profile.tcl 67746953071a9f8f2f668b73fe899074e2c6d8c1
 F tool/warnings-clang.sh f6aa929dc20ef1f856af04a730772f59283631d4
 F tool/warnings.sh 0abfd78ceb09b7f7c27c688c8e3fe93268a13b32
 F tool/win/sqlite.vsix deb315d026cc8400325c5863eef847784a219a2f
-P 620d19c3b462f5c4763ebd26513321431f21dd72
-R 3232d5345bb2d152e6d22cf04db83714
+P 7aeade9a07f29bf26e50394042ea18d0121fe7a3
+R 4ffb47078274895143770c4805431d69
 U drh
-Z c636e6bb9960db85c57f7546f9b2327e
+Z 423cc03f9b773c1e0bc4b6f9fa63f5b6
index aa1a8ea29481355ae765adfd76cba83fb10c8ed0..1505561f944a4d331d7e99a7769bb31dfc8a284a 100644 (file)
@@ -1 +1 @@
-7aeade9a07f29bf26e50394042ea18d0121fe7a3
\ No newline at end of file
+ad67a67c03078a2bc65d28f2b880b29bf02067c1
\ No newline at end of file
index fc5740e80fdff81731b1e68e3d82f7823dd0ff6a..c49f3278937fbc80fbf8a7b80f46ef81a7163ec0 100644 (file)
@@ -1380,7 +1380,7 @@ static const char *columnTypeImpl(
         ** of the SELECT statement. Return the declaration type and origin
         ** data for the result-set column of the sub-select.
         */
-        if( iCol>=0 && ALWAYS(iCol<pS->pEList->nExpr) ){
+        if( iCol>=0 && iCol<pS->pEList->nExpr ){
           /* If iCol is less than zero, then the expression requests the
           ** rowid of the sub-select or view. This expression is legal (see 
           ** test case misc2.2.2) - it always evaluates to NULL.