]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Remove unreachable branches from the decltype computation logic in the query
authordrh <drh@noemail.net>
Wed, 2 Dec 2015 19:46:12 +0000 (19:46 +0000)
committerdrh <drh@noemail.net>
Wed, 2 Dec 2015 19:46:12 +0000 (19:46 +0000)
planner.

FossilOrigin-Name: 4f2bcff94c672312805be1400050a7026f93a9d7

manifest
manifest.uuid
src/select.c

index c3e7dba32886986d028bfde8ba18996862fc7e0c..123da22f21a3ddf5dc704fdb995ae4247bb1f3fc 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Have\sthe\ssqlite3_column_decltype()\sAPI\sreport\sthe\sdeclared\stypes\sfor\sthe\sleft-most\sSELECT\sstatement\sin\sa\scompound\sSELECT.
-D 2015-12-02T18:59:44.537
+C Remove\sunreachable\sbranches\sfrom\sthe\sdecltype\scomputation\slogic\sin\sthe\squery\nplanner.
+D 2015-12-02T19:46:12.775
 F Makefile.in 23d9a63484a383fc64951b25ef44067930f98dc6
 F Makefile.linux-gcc 7bc79876b875010e8c8f9502eb935ca92aa3c434
 F Makefile.msc e8fdca1cb89a1b58b5f4d3a130ea9a3d28cb314d
@@ -339,7 +339,7 @@ F src/printf.c ca05561795ad6c2fa47acdd007702586282f7feb
 F src/random.c ba2679f80ec82c4190062d756f22d0c358180696
 F src/resolve.c f4c897ca76ca6d5e0b3f0499c627392ffe657c8e
 F src/rowset.c eccf6af6d620aaa4579bd3b72c1b6395d9e9fa1e
-F src/select.c dd04f017d1402e1a8cbacb13f53c279dc48543b4
+F src/select.c 1611828a7116e5f6cc1e69cd07d59b0d2c662ea9
 F src/shell.c 2796237990d42e6a5a7beafee65ef70cc8767d21
 F src/sqlite.h.in 5bd83191711d3dc85030326daa9e8e5226a495e7
 F src/sqlite3.rc 992c9f5fb8285ae285d6be28240a7e8d3a7f2bad
@@ -1408,7 +1408,7 @@ F tool/vdbe_profile.tcl 246d0da094856d72d2c12efec03250d71639d19f
 F tool/warnings-clang.sh f6aa929dc20ef1f856af04a730772f59283631d4
 F tool/warnings.sh 48bd54594752d5be3337f12c72f28d2080cb630b
 F tool/win/sqlite.vsix deb315d026cc8400325c5863eef847784a219a2f
-P 4692ae84f93530e27d7c106a60236355e176b7fd
-R cccfb2982bfd6a0aab4098f75a44ccf8
-U dan
-Z e453763f88995e08cd02dca755bc7590
+P 3e1d71fcaf57c0223ab9a7366c8607f8f66bb21c
+R 0397cf9717330ffe9055735c8207c81a
+U drh
+Z 6381d064415ccbeec9de47fb6017aaa8
index d924d8a8d353d3b169baf41eddda83cb8f5ebf9d..c4252b60212948a0c55024a1a036b411ecb0e307 100644 (file)
@@ -1 +1 @@
-3e1d71fcaf57c0223ab9a7366c8607f8f66bb21c
\ No newline at end of file
+4f2bcff94c672312805be1400050a7026f93a9d7
\ No newline at end of file
index c9d9637fcb40544db42e07fdc0c3fae7b8df32e8..fca8665cd706b224b74e65dc2151fc2008c1b16a 100644 (file)
@@ -1340,7 +1340,8 @@ static const char *columnTypeImpl(
   char const *zOrigCol = 0;
 #endif
 
-  if( NEVER(pExpr==0) || pNC->pSrcList==0 ) return 0;
+  assert( pExpr!=0 );
+  assert( pNC->pSrcList!=0 );
   switch( pExpr->op ){
     case TK_AGG_COLUMN:
     case TK_COLUMN: {
@@ -1528,6 +1529,7 @@ static void generateColumnNames(
   }
 #endif
 
+  assert( pTabList!=0 );
   if( pParse->colNamesSet || NEVER(v==0) || db->mallocFailed ) return;
   pParse->colNamesSet = 1;
   fullNames = (db->flags & SQLITE_FullColNames)!=0;
@@ -1540,7 +1542,7 @@ static void generateColumnNames(
     if( pEList->a[i].zName ){
       char *zName = pEList->a[i].zName;
       sqlite3VdbeSetColName(v, i, COLNAME_NAME, zName, SQLITE_TRANSIENT);
-    }else if( (p->op==TK_COLUMN || p->op==TK_AGG_COLUMN) && pTabList ){
+    }else if( p->op==TK_COLUMN || p->op==TK_AGG_COLUMN ){
       Table *pTab;
       char *zCol;
       int iCol = p->iColumn;