Index: third_party/sqlite/src/src/table.c |
diff --git a/third_party/sqlite/src/src/table.c b/third_party/sqlite/src/src/table.c |
index 153bfb319f21938ce2d5ba6abefb3aeb213641c0..c79255f990cf88f154af08f02ca6207c4c8a7e0f 100644 |
--- a/third_party/sqlite/src/src/table.c |
+++ b/third_party/sqlite/src/src/table.c |
@@ -17,8 +17,6 @@ |
** if they are not used. |
*/ |
#include "sqliteInt.h" |
-#include <stdlib.h> |
-#include <string.h> |
#ifndef SQLITE_OMIT_GET_TABLE |
@@ -101,7 +99,7 @@ static int sqlite3_get_table_cb(void *pArg, int nCol, char **argv, char **colv){ |
return 0; |
malloc_failed: |
- p->rc = SQLITE_NOMEM; |
+ p->rc = SQLITE_NOMEM_BKPT; |
return 1; |
} |
@@ -142,7 +140,7 @@ int sqlite3_get_table( |
res.azResult = sqlite3_malloc64(sizeof(char*)*res.nAlloc ); |
if( res.azResult==0 ){ |
db->errCode = SQLITE_NOMEM; |
- return SQLITE_NOMEM; |
+ return SQLITE_NOMEM_BKPT; |
} |
res.azResult[0] = 0; |
rc = sqlite3_exec(db, zSql, sqlite3_get_table_cb, &res, pzErrMsg); |
@@ -171,7 +169,7 @@ int sqlite3_get_table( |
if( azNew==0 ){ |
sqlite3_free_table(&res.azResult[1]); |
db->errCode = SQLITE_NOMEM; |
- return SQLITE_NOMEM; |
+ return SQLITE_NOMEM_BKPT; |
} |
res.azResult = azNew; |
} |