mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-05 15:55:57 +03:00
:-) (CVS 29)
FossilOrigin-Name: 09054df318240f2f2b365f7b24655473c1ab6655
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
** other files are for internal use by SQLite and should not be
|
||||
** accessed by users of the library.
|
||||
**
|
||||
** $Id: main.c,v 1.1 2000/05/29 14:26:01 drh Exp $
|
||||
** $Id: main.c,v 1.2 2000/05/31 22:58:39 drh Exp $
|
||||
*/
|
||||
#include "sqliteInt.h"
|
||||
|
||||
@@ -121,6 +121,7 @@ sqlite *sqlite_open(const char *zFilename, int mode, char **pzErrMsg){
|
||||
if( pzErrMsg ) *pzErrMsg = 0;
|
||||
if( db==0 ){
|
||||
sqliteSetString(pzErrMsg, "out of memory", 0);
|
||||
sqliteStrRealloc(pzErrMsg);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -215,5 +216,6 @@ int sqlite_exec(
|
||||
sParse.xCallback = xCallback;
|
||||
sParse.pArg = pArg;
|
||||
nErr = sqliteRunParser(&sParse, zSql, pzErrMsg);
|
||||
sqliteStrRealloc(pzErrMsg);
|
||||
return nErr;
|
||||
}
|
||||
|
Reference in New Issue
Block a user