diff options
author | Jay Freeman <saurik@saurik.com> | 2009-06-15 06:24:23 +0000 |
---|---|---|
committer | Jay Freeman <saurik@saurik.com> | 2009-06-15 06:24:23 +0000 |
commit | a334118154bc7ab0ae0ed078f4b89a61f63cca6b (patch) | |
tree | 4d6bee17602c3efbb3c5e737721396c0d69cfa1f /data/_sqlite3/misuse.diff | |
parent | aa3c53331ee9464d20a6792c6ab4a61780373d2c (diff) |
Stage 1 of SVN sqlite3 remap.
git-svn-id: http://svn.telesphoreo.org/trunk@615 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'data/_sqlite3/misuse.diff')
-rw-r--r-- | data/_sqlite3/misuse.diff | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/data/_sqlite3/misuse.diff b/data/_sqlite3/misuse.diff new file mode 100644 index 000000000..0e7b79255 --- /dev/null +++ b/data/_sqlite3/misuse.diff @@ -0,0 +1,53 @@ +diff -ru sqlite-3.5.9/src/vdbeapi.c sqlite-3.5.9+iPhone/src/vdbeapi.c +--- sqlite-3.5.9/src/vdbeapi.c 2008-05-13 12:52:46.000000000 +0000 ++++ sqlite-3.5.9+iPhone/src/vdbeapi.c 2008-08-01 03:22:00.000000000 +0000 +@@ -1072,6 +1072,9 @@ + int sqlite3_bind_double(sqlite3_stmt *pStmt, int i, double rValue){ + int rc; + Vdbe *p = (Vdbe *)pStmt; ++ if( p==0 ){ ++ return SQLITE_MISUSE; ++ } + sqlite3_mutex_enter(p->db->mutex); + rc = vdbeUnbind(p, i); + if( rc==SQLITE_OK ){ +@@ -1086,6 +1089,9 @@ + int sqlite3_bind_int64(sqlite3_stmt *pStmt, int i, sqlite_int64 iValue){ + int rc; + Vdbe *p = (Vdbe *)pStmt; ++ if( p==0 ){ ++ return SQLITE_MISUSE; ++ } + sqlite3_mutex_enter(p->db->mutex); + rc = vdbeUnbind(p, i); + if( rc==SQLITE_OK ){ +@@ -1097,6 +1103,9 @@ + int sqlite3_bind_null(sqlite3_stmt *pStmt, int i){ + int rc; + Vdbe *p = (Vdbe*)pStmt; ++ if( p==0 ){ ++ return SQLITE_MISUSE; ++ } + sqlite3_mutex_enter(p->db->mutex); + rc = vdbeUnbind(p, i); + sqlite3_mutex_leave(p->db->mutex); +@@ -1125,6 +1134,9 @@ + int sqlite3_bind_value(sqlite3_stmt *pStmt, int i, const sqlite3_value *pValue){ + int rc; + Vdbe *p = (Vdbe *)pStmt; ++ if( p==0 ){ ++ return SQLITE_MISUSE; ++ } + sqlite3_mutex_enter(p->db->mutex); + rc = vdbeUnbind(p, i); + if( rc==SQLITE_OK ){ +@@ -1137,6 +1149,9 @@ + int sqlite3_bind_zeroblob(sqlite3_stmt *pStmt, int i, int n){ + int rc; + Vdbe *p = (Vdbe *)pStmt; ++ if( p==0 ){ ++ return SQLITE_MISUSE; ++ } + sqlite3_mutex_enter(p->db->mutex); + rc = vdbeUnbind(p, i); + if( rc==SQLITE_OK ){ |