diff options
author | drh <drh@noemail.net> | 2008-01-25 15:04:48 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2008-01-25 15:04:48 +0000 |
commit | ca4241140cc7eeb7ac9ffb2072ead9c67d2939c3 (patch) | |
tree | 0c0d7573357d933e37bb64b69b155698ce142f40 /src/select.c | |
parent | cdf3020ca387a32b8633de152e0f75c60e141dcd (diff) | |
download | sqlite-ca4241140cc7eeb7ac9ffb2072ead9c67d2939c3.tar.gz sqlite-ca4241140cc7eeb7ac9ffb2072ead9c67d2939c3.zip |
Error messages says "no such view" instead of "no such table" when
trying to DROP a VIEW that does not exist. (CVS 4750)
FossilOrigin-Name: 50815a82e0ec9a5c1399f5fe6ef416434b55a821
Diffstat (limited to 'src/select.c')
-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 551de921b..981691f61 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.410 2008/01/24 14:27:44 danielk1977 Exp $ +** $Id: select.c,v 1.411 2008/01/25 15:04:50 drh Exp $ */ #include "sqliteInt.h" @@ -1306,7 +1306,7 @@ static int prepSelectStmt(Parse *pParse, Select *p){ /* An ordinary table or view name in the FROM clause */ assert( pFrom->pTab==0 ); pFrom->pTab = pTab = - sqlite3LocateTable(pParse,pFrom->zName,pFrom->zDatabase); + sqlite3LocateTable(pParse,0,pFrom->zName,pFrom->zDatabase); if( pTab==0 ){ return 1; } |