aboutsummaryrefslogtreecommitdiff
path: root/src/update.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2003-03-27 13:50:00 +0000
committerdrh <drh@noemail.net>2003-03-27 13:50:00 +0000
commit812d7a21dd30c9ed9aebdb063a3efedede092d63 (patch)
tree40176d47b4cc2c517ba9dd0d0cef845861ae3cad /src/update.c
parent0951d703f2dcd3f096f1cdec7a2c3c304956f5fe (diff)
downloadsqlite-812d7a21dd30c9ed9aebdb063a3efedede092d63.tar.gz
sqlite-812d7a21dd30c9ed9aebdb063a3efedede092d63.zip
Regression tests now work - except for some changes in error message
text. The library is now safe to use for experimental work. (CVS 885) FossilOrigin-Name: 8a593e9c2d57e758739a7ef54fa40ca6a0071a9a
Diffstat (limited to 'src/update.c')
-rw-r--r--src/update.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/update.c b/src/update.c
index f76686d53..fb0603061 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.56 2003/03/27 12:51:25 drh Exp $
+** $Id: update.c,v 1.57 2003/03/27 13:50:00 drh Exp $
*/
#include "sqliteInt.h"
@@ -84,8 +84,8 @@ void sqliteUpdate(
** will be calling are designed to work with multiple tables and expect
** an SrcList* parameter instead of just a Table* parameter.
*/
- pTab = pTabList->a[0].pTab = sqliteTableNameToTable(pParse, zTab, zDb);
- if( pTab==0 ) goto update_cleanup;
+ pTab = sqliteSrcListLookup(pParse, pTabList);
+ if( pTab==0 || sqliteIsReadOnly(pParse, pTab) ) goto update_cleanup;
assert( pTab->pSelect==0 ); /* This table is not a VIEW */
aXRef = sqliteMalloc( sizeof(int) * pTab->nCol );
if( aXRef==0 ) goto update_cleanup;