diff options
author | danielk1977 <danielk1977@noemail.net> | 2006-01-18 16:51:35 +0000 |
---|---|---|
committer | danielk1977 <danielk1977@noemail.net> | 2006-01-18 16:51:35 +0000 |
commit | 9e12800dec214b7ce95e5d4a16a66e37e65776be (patch) | |
tree | 91ef04a67e93512843040f3d9028308869cef678 /src/update.c | |
parent | 1de57847f8b9516f0048a991afe711d2add06487 (diff) | |
download | sqlite-9e12800dec214b7ce95e5d4a16a66e37e65776be.tar.gz sqlite-9e12800dec214b7ce95e5d4a16a66e37e65776be.zip |
Use a global variable protected by a mutex instead of thread-specific-data to record malloc() failures. (CVS 2972)
FossilOrigin-Name: ac090f2ab3b5a792c2fdf897e10060f263e0d408
Diffstat (limited to 'src/update.c')
-rw-r--r-- | src/update.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/update.c b/src/update.c index 944ac039b..83084d7ed 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.120 2006/01/11 21:41:22 drh Exp $ +** $Id: update.c,v 1.121 2006/01/18 16:51:36 danielk1977 Exp $ */ #include "sqliteInt.h" @@ -100,7 +100,7 @@ void sqlite3Update( int oldIdx = -1; /* index of trigger "old" temp table */ sContext.pParse = 0; - if( pParse->nErr || sqlite3ThreadDataReadOnly()->mallocFailed ){ + if( pParse->nErr || sqlite3MallocFailed() ){ goto update_cleanup; } db = pParse->db; |