aboutsummaryrefslogtreecommitdiff
path: root/src/insert.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2008-01-25 15:04:48 +0000
committerdrh <drh@noemail.net>2008-01-25 15:04:48 +0000
commitca4241140cc7eeb7ac9ffb2072ead9c67d2939c3 (patch)
tree0c0d7573357d933e37bb64b69b155698ce142f40 /src/insert.c
parentcdf3020ca387a32b8633de152e0f75c60e141dcd (diff)
downloadsqlite-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/insert.c')
-rw-r--r--src/insert.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/insert.c b/src/insert.c
index 13b3d02da..07b069c6f 100644
--- a/src/insert.c
+++ b/src/insert.c
@@ -12,7 +12,7 @@
** This file contains C code routines that are called by the parser
** to handle INSERT statements in SQLite.
**
-** $Id: insert.c,v 1.227 2008/01/21 16:22:46 drh Exp $
+** $Id: insert.c,v 1.228 2008/01/25 15:04:50 drh Exp $
*/
#include "sqliteInt.h"
@@ -1518,7 +1518,7 @@ static int xferOptimization(
** we have to check the semantics.
*/
pItem = pSelect->pSrc->a;
- pSrc = sqlite3LocateTable(pParse, pItem->zName, pItem->zDatabase);
+ pSrc = sqlite3LocateTable(pParse, 0, pItem->zName, pItem->zDatabase);
if( pSrc==0 ){
return 0; /* FROM clause does not contain a real table */
}