diff options
Diffstat (limited to 'src/update.c')
-rw-r--r-- | src/update.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/update.c b/src/update.c index fb0603061..58ff54b48 100644 --- a/src/update.c +++ b/src/update.c @@ -12,7 +12,7 @@ ** This file contains C code routines that are called by the parser ** to handle UPDATE statements. ** -** $Id: update.c,v 1.57 2003/03/27 13:50:00 drh Exp $ +** $Id: update.c,v 1.58 2003/03/31 02:12:48 drh Exp $ */ #include "sqliteInt.h" @@ -140,9 +140,7 @@ void sqliteUpdate( } } if( j>=pTab->nCol ){ - sqliteSetString(&pParse->zErrMsg, "no such column: ", - pChanges->a[i].zName, 0); - pParse->nErr++; + sqliteErrorMsg(pParse, "no such column: %s", pChanges->a[i].zName); goto update_cleanup; } #ifndef SQLITE_OMIT_AUTHORIZATION |