diff options
author | drh <drh@noemail.net> | 2003-04-17 22:57:53 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2003-04-17 22:57:53 +0000 |
commit | a69d91681d1fc36f40aa6602413d7db673c20992 (patch) | |
tree | c3e975c61c7cef5d928809fe69a5e8a515d815bf /src/select.c | |
parent | d4d595f94c3c02d90872d90ec5bb43cf11426abc (diff) | |
download | sqlite-a69d91681d1fc36f40aa6602413d7db673c20992.tar.gz sqlite-a69d91681d1fc36f40aa6602413d7db673c20992.zip |
Fix triggers to work in an ATTACHed database. Ticket #295. (CVS 915)
FossilOrigin-Name: 1e5e00fb73c308378efd034cb291caf338c9fe84
Diffstat (limited to 'src/select.c')
-rw-r--r-- | src/select.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/select.c b/src/select.c index 013db3339..3aef002cc 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.131 2003/04/17 12:44:24 drh Exp $ +** $Id: select.c,v 1.132 2003/04/17 22:57:54 drh Exp $ */ #include "sqliteInt.h" @@ -908,10 +908,8 @@ static int fillInColumnList(Parse *pParse, Select *p){ }else{ /* An ordinary table or view name in the FROM clause */ pTabList->a[i].pTab = pTab = - sqliteFindTable(pParse->db, pTabList->a[i].zName, - pTabList->a[i].zDatabase); + sqliteLocateTable(pParse,pTabList->a[i].zName,pTabList->a[i].zDatabase); if( pTab==0 ){ - sqliteErrorMsg(pParse, "no such table: %S", pTabList, i); return 1; } if( pTab->pSelect ){ |