aboutsummaryrefslogtreecommitdiff
path: root/src/expr.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2008-03-10 14:12:53 +0000
committerdrh <drh@noemail.net>2008-03-10 14:12:53 +0000
commitc81945e41f12cf943beece770a9638a682b74b07 (patch)
treeb556c04de545af65f112ae161213b399769c9930 /src/expr.c
parentab1c47b0a4b406fb9e2734e7d85b784774f8d6bb (diff)
downloadsqlite-c81945e41f12cf943beece770a9638a682b74b07.tar.gz
sqlite-c81945e41f12cf943beece770a9638a682b74b07.zip
Add explicit !=0 tests in order to suppress warning messages in
Borland-C. Ticket #2985 (CVS 4850) FossilOrigin-Name: d4ab14b974f2249d9d9e5a78ae47f3764a88b657
Diffstat (limited to 'src/expr.c')
-rw-r--r--src/expr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/expr.c b/src/expr.c
index e74bdd134..b9cdce1ad 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.352 2008/01/23 14:51:49 drh Exp $
+** $Id: expr.c,v 1.353 2008/03/10 14:12:53 drh Exp $
*/
#include "sqliteInt.h"
#include <ctype.h>
@@ -1574,7 +1574,7 @@ int sqlite3FindInIndex(Parse *pParse, Expr *pX, int mustBeUnique){
** or index instead of generating an epheremal table.
*/
if( sqlite3_enable_in_opt
- && (p=pX->pSelect) && !p->pPrior
+ && (p=pX->pSelect)!=0 && !p->pPrior
&& !p->isDistinct && !p->isAgg && !p->pGroupBy
&& p->pSrc && p->pSrc->nSrc==1 && !p->pSrc->a[0].pSelect
&& !p->pSrc->a[0].pTab->pSelect