mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-14 00:22:38 +03:00
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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user