aboutsummaryrefslogtreecommitdiff
path: root/src/update.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/update.c')
-rw-r--r--src/update.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/update.c b/src/update.c
index c44e24e1e..944ac039b 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.119 2006/01/10 17:58:23 danielk1977 Exp $
+** $Id: update.c,v 1.120 2006/01/11 21:41:22 drh Exp $
*/
#include "sqliteInt.h"
@@ -100,7 +100,9 @@ void sqlite3Update(
int oldIdx = -1; /* index of trigger "old" temp table */
sContext.pParse = 0;
- if( pParse->nErr || sqlite3ThreadData()->mallocFailed ) goto update_cleanup;
+ if( pParse->nErr || sqlite3ThreadDataReadOnly()->mallocFailed ){
+ goto update_cleanup;
+ }
db = pParse->db;
assert( pTabList->nSrc==1 );