aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2008-08-22 16:29:51 +0000
committerdrh <drh@noemail.net>2008-08-22 16:29:51 +0000
commit9d8b3072ce496b3aa80c094932ef455e6d0407d4 (patch)
tree594b9e71eb1f402e15c2a1600f71e235b21bfeb1 /src
parenta858aa2e8caf7be20495f7e878e79951d6eebd07 (diff)
downloadsqlite-9d8b3072ce496b3aa80c094932ef455e6d0407d4.tar.gz
sqlite-9d8b3072ce496b3aa80c094932ef455e6d0407d4.zip
Enhanced test coverage. (CVS 5598)
FossilOrigin-Name: cc36b4e016a1f519ca81d591de3a551ee8aa6813
Diffstat (limited to 'src')
-rw-r--r--src/expr.c7
-rw-r--r--src/select.c8
2 files changed, 4 insertions, 11 deletions
diff --git a/src/expr.c b/src/expr.c
index b65003522..88a86cd63 100644
--- a/src/expr.c
+++ b/src/expr.c
@@ -12,7 +12,7 @@
** This file contains routines used for analyzing expressions and
** for generating VDBE code that evaluates expressions in SQLite.
**
-** $Id: expr.c,v 1.389 2008/08/20 16:35:10 drh Exp $
+** $Id: expr.c,v 1.390 2008/08/22 16:29:51 drh Exp $
*/
#include "sqliteInt.h"
#include <ctype.h>
@@ -2423,10 +2423,7 @@ int sqlite3ExprCodeExprList(
){
struct ExprList_item *pItem;
int i, n;
- assert( pList!=0 || pParse->db->mallocFailed );
- if( pList==0 ){
- return 0;
- }
+ assert( pList!=0 );
assert( target>0 );
n = pList->nExpr;
for(pItem=pList->a, i=0; i<n; i++, pItem++){
diff --git a/src/select.c b/src/select.c
index 0b4662f70..3af289df1 100644
--- a/src/select.c
+++ b/src/select.c
@@ -12,7 +12,7 @@
** This file contains C code routines that are called by the parser
** to handle SELECT statements in SQLite.
**
-** $Id: select.c,v 1.468 2008/08/21 14:54:29 drh Exp $
+** $Id: select.c,v 1.469 2008/08/22 16:29:51 drh Exp $
*/
#include "sqliteInt.h"
@@ -3149,11 +3149,7 @@ static int selectAddSubqueryTypeInfo(Walker *pWalker, Select *p){
SrcList *pTabList;
struct SrcList_item *pFrom;
- if( (p->selFlags & SF_Resolved)==0 ){
- /* If the ORDER BY clause of a compound SELECT contains a subquery,
- ** that subquery will not yet have been resolved. */
- return WRC_Prune;
- }
+ assert( p->selFlags & SF_Resolved );
if( (p->selFlags & SF_HasTypeInfo)==0 ){
p->selFlags |= SF_HasTypeInfo;
pParse = pWalker->pParse;