diff options
author | drh <drh@noemail.net> | 2008-12-05 00:00:07 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2008-12-05 00:00:07 +0000 |
commit | da55c48a9a96cf2aff9fb3dc80c0dc80a8662c80 (patch) | |
tree | 5de18e5716d7f4007a3cb3011e18d7a1291517bd /src | |
parent | 8d99363c1b9fcd12950f693fccd76d12c442434c (diff) | |
download | sqlite-da55c48a9a96cf2aff9fb3dc80c0dc80a8662c80.tar.gz sqlite-da55c48a9a96cf2aff9fb3dc80c0dc80a8662c80.zip |
Expand table.* properly on a USING or a NATURAL join. Ticket #3522. (CVS 5979)
FossilOrigin-Name: 06d206ef7d5e433ccde347d63dfcd2177545e1fd
Diffstat (limited to 'src')
-rw-r--r-- | src/select.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/select.c b/src/select.c index 0c6f1449e..48ded47a6 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.488 2008/11/21 16:22:18 danielk1977 Exp $ +** $Id: select.c,v 1.489 2008/12/05 00:00:07 drh Exp $ */ #include "sqliteInt.h" @@ -3152,7 +3152,7 @@ static int selectExpander(Walker *pWalker, Select *p){ continue; } - if( i>0 ){ + if( i>0 && zTName==0 ){ struct SrcList_item *pLeft = &pTabList->a[i-1]; if( (pLeft[1].jointype & JT_NATURAL)!=0 && columnIndex(pLeft->pTab, zName)>=0 ){ |