]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
When transfering an error message from a statement handle to the database handle...
authordanielk1977 <danielk1977@noemail.net>
Sat, 11 Oct 2008 17:51:38 +0000 (17:51 +0000)
committerdanielk1977 <danielk1977@noemail.net>
Sat, 11 Oct 2008 17:51:38 +0000 (17:51 +0000)
FossilOrigin-Name: 311003aff85e6b6c47e854d33f46eee31da6f30c

manifest
manifest.uuid
src/vdbeaux.c

index 01aa6e34f96ee68cb1317e07814f51cfffed7c63..ee6aed54b889a2ca33f248e0f62c45b10a718371 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Conditionally\somit\sprototypes\sin\spcache.h\swhen\sthe\scorresponding\sroutines\nare\snot\sused.\s\sTicket\s#3430.\s(CVS\s5805)
-D 2008-10-11T17:42:29
+C When\stransfering\san\serror\smessage\sfrom\sa\sstatement\shandle\sto\sthe\sdatabase\shandle\sso\sthat\sit\scan\sbe\saccessed\sby\ssqlite3_errmsg(),\sa\smalloc\smay\sfail.\sIf\sthis\smalloc\sfails,\sit\sis\sconsidered\sbenign.\s(CVS\s5806)
+D 2008-10-11T17:51:39
 F Makefile.arm-wince-mingw32ce-gcc fcd5e9cd67fe88836360bb4f9ef4cb7f8e2fb5a0
 F Makefile.in 7fc26e087207e7a4a7723583dbd7997477af3b13
 F Makefile.linux-gcc d53183f4aa6a9192d249731c90dbdffbd2c68654
@@ -194,7 +194,7 @@ F src/vdbe.c b78adf571b9abac4092c641bec148832e8f26f34
 F src/vdbe.h 41c99aaad9167c1b5431993db446de74b2f71fc3
 F src/vdbeInt.h a20f479ec3bf41c61b0c2bd5176a9bad6b2a07ef
 F src/vdbeapi.c fd2c286cee63a146d5110c11c0aa2bf3a9ebe220
-F src/vdbeaux.c 20a7d109c95e32beee7891fba828c63e419af26c
+F src/vdbeaux.c e007aa723a059b1e5357c15420eea84095de828a
 F src/vdbeblob.c b0dcebfafedcf9c0addc7901ad98f6f986c08935
 F src/vdbefifo.c 20fda2a7c4c0bcee1b90eb7e545fefcdbf2e1de7
 F src/vdbemem.c ead88713b852576e2a924bc4ae696964bfbaec0a
@@ -648,7 +648,7 @@ F tool/speedtest16.c c8a9c793df96db7e4933f0852abb7a03d48f2e81
 F tool/speedtest2.tcl ee2149167303ba8e95af97873c575c3e0fab58ff
 F tool/speedtest8.c 2902c46588c40b55661e471d7a86e4dd71a18224
 F tool/speedtest8inst1.c 293327bc76823f473684d589a8160bde1f52c14e
-P 63dd8be70d333c56171dfd254406abb1af685b0f
-R 2e8a3aab50bc76e37d67dde55564ae76
-U drh
-Z ec55c75de0e3851eb41128595a9d99a7
+P 977ae12c365846e1bc582fd17146151953b5ed68
+R 9c89f9db01f9afd53fe43920196dd01f
+U danielk1977
+Z 7852ef6101c10f09690b75f08c78bd02
index a64aba6b5cad1f4f3c1db002e79f313ffc296c66..80d5f956e08b66bcc40e432ca3a70bd2e2926344 100644 (file)
@@ -1 +1 @@
-977ae12c365846e1bc582fd17146151953b5ed68
\ No newline at end of file
+311003aff85e6b6c47e854d33f46eee31da6f30c
\ No newline at end of file
index 45ab6cfd8696c88198ca5121922c1895bddf2fd3..15831daba9d3864b0a7fde2508c946b83c6e7499 100644 (file)
@@ -14,7 +14,7 @@
 ** to version 2.8.7, all this code was combined into the vdbe.c source file.
 ** But that file was getting too big so this subroutines were split out.
 **
-** $Id: vdbeaux.c,v 1.411 2008/09/19 18:32:27 danielk1977 Exp $
+** $Id: vdbeaux.c,v 1.412 2008/10/11 17:51:39 danielk1977 Exp $
 */
 #include "sqliteInt.h"
 #include <ctype.h>
@@ -1731,7 +1731,9 @@ int sqlite3VdbeReset(Vdbe *p){
   */
   if( p->pc>=0 ){
     if( p->zErrMsg ){
+      sqlite3BeginBenignMalloc();
       sqlite3ValueSetStr(db->pErr,-1,p->zErrMsg,SQLITE_UTF8,SQLITE_TRANSIENT);
+      sqlite3EndBenignMalloc();
       db->errCode = p->rc;
       sqlite3DbFree(db, p->zErrMsg);
       p->zErrMsg = 0;