aboutsummaryrefslogtreecommitdiff
path: root/src/resolve.c
diff options
context:
space:
mode:
authordanielk1977 <danielk1977@noemail.net>2009-02-24 10:14:40 +0000
committerdanielk1977 <danielk1977@noemail.net>2009-02-24 10:14:40 +0000
commit2d2e7bd32e7267bd9fe9c40a0b5c97cace2bd17e (patch)
treebe7e86a13b3a10703fb1d45fe1cb7eaa32da7a9d /src/resolve.c
parenta55331620e1162c2fef1fee80f0866cc0e379f46 (diff)
downloadsqlite-2d2e7bd32e7267bd9fe9c40a0b5c97cace2bd17e.tar.gz
sqlite-2d2e7bd32e7267bd9fe9c40a0b5c97cace2bd17e.zip
Reverse commit (6315) for now. (CVS 6317)
FossilOrigin-Name: 0e7c369c23a8767b4d3e5cdd47c14716992fb71a
Diffstat (limited to 'src/resolve.c')
-rw-r--r--src/resolve.c20
1 files changed, 8 insertions, 12 deletions
diff --git a/src/resolve.c b/src/resolve.c
index 29f1f2b92..749e473d4 100644
--- a/src/resolve.c
+++ b/src/resolve.c
@@ -14,7 +14,7 @@
** resolve all identifiers by associating them with a particular
** table and column.
**
-** $Id: resolve.c,v 1.17 2009/02/23 17:33:50 danielk1977 Exp $
+** $Id: resolve.c,v 1.18 2009/02/24 10:14:40 danielk1977 Exp $
*/
#include "sqliteInt.h"
#include <stdlib.h>
@@ -347,18 +347,14 @@ static int lookupName(
** column number is greater than the number of bits in the bitmask
** then set the high-order bit of the bitmask.
*/
- if( pMatch ){
- if( pExpr->iColumn>=0 ){
- int n = pExpr->iColumn;
- testcase( n==BMS-1 );
- if( n>=BMS ){
- n = BMS-1;
- }
- assert( pMatch->iCursor==pExpr->iTable );
- pMatch->colUsed |= ((Bitmask)1)<<n;
- }else{
- pMatch->usesRowid = 1;
+ if( pExpr->iColumn>=0 && pMatch!=0 ){
+ int n = pExpr->iColumn;
+ testcase( n==BMS-1 );
+ if( n>=BMS ){
+ n = BMS-1;
}
+ assert( pMatch->iCursor==pExpr->iTable );
+ pMatch->colUsed |= ((Bitmask)1)<<n;
}
lookupname_end: