diff options
author | drh <drh@noemail.net> | 2003-03-31 02:12:46 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2003-03-31 02:12:46 +0000 |
commit | da93d238c2067a1951b8043c3c30355947fd6da9 (patch) | |
tree | 29057f4a84763deb95565d3e8bd2622614c85c15 /src/update.c | |
parent | 1c2d84148a6bb2f8d231debd65bc09e948abf029 (diff) | |
download | sqlite-da93d238c2067a1951b8043c3c30355947fd6da9.tar.gz sqlite-da93d238c2067a1951b8043c3c30355947fd6da9.zip |
Add the sqliteErrorMsg() function and use it to generate error message
text during parsing and code generation. This simplifies the code
somewhat and makes it easier to handle names with a database prefix. (CVS 891)
FossilOrigin-Name: 1d3fc977211abdc7ba3fd51d661863e8ce5aef69
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 |