| | @@ -1003,11 +1003,11 @@ |
| 1003 | 1003 | sqlite3_stmt *pSelect; |
| 1004 | 1004 | int rc; |
| 1005 | 1005 | int nResult; |
| 1006 | 1006 | int i; |
| 1007 | 1007 | const char *z; |
| 1008 | | - rc = sqlite3_prepare(p->db, zSelect, -1, &pSelect, 0); |
| 1008 | + rc = sqlite3_prepare_v2(p->db, zSelect, -1, &pSelect, 0); |
| 1009 | 1009 | if( rc!=SQLITE_OK || !pSelect ){ |
| 1010 | 1010 | fprintf(p->out, "/**** ERROR: (%d) %s *****/\n", rc, sqlite3_errmsg(p->db)); |
| 1011 | 1011 | if( (rc&0xff)!=SQLITE_CORRUPT ) p->nErr++; |
| 1012 | 1012 | return rc; |
| 1013 | 1013 | } |
| | @@ -1451,11 +1451,11 @@ |
| 1451 | 1451 | |
| 1452 | 1452 | zTableInfo = appendText(zTableInfo, "PRAGMA table_info(", 0); |
| 1453 | 1453 | zTableInfo = appendText(zTableInfo, zTable, '"'); |
| 1454 | 1454 | zTableInfo = appendText(zTableInfo, ");", 0); |
| 1455 | 1455 | |
| 1456 | | - rc = sqlite3_prepare(p->db, zTableInfo, -1, &pTableInfo, 0); |
| 1456 | + rc = sqlite3_prepare_v2(p->db, zTableInfo, -1, &pTableInfo, 0); |
| 1457 | 1457 | free(zTableInfo); |
| 1458 | 1458 | if( rc!=SQLITE_OK || !pTableInfo ){ |
| 1459 | 1459 | return 1; |
| 1460 | 1460 | } |
| 1461 | 1461 | |
| | @@ -2173,11 +2173,11 @@ |
| 2173 | 2173 | fprintf(stderr, "Error: out of memory\n"); |
| 2174 | 2174 | xCloser(sCsv.in); |
| 2175 | 2175 | return 1; |
| 2176 | 2176 | } |
| 2177 | 2177 | nByte = strlen30(zSql); |
| 2178 | | - rc = sqlite3_prepare(p->db, zSql, -1, &pStmt, 0); |
| 2178 | + rc = sqlite3_prepare_v2(p->db, zSql, -1, &pStmt, 0); |
| 2179 | 2179 | if( rc && sqlite3_strglob("no such table: *", sqlite3_errmsg(db))==0 ){ |
| 2180 | 2180 | char *zCreate = sqlite3_mprintf("CREATE TABLE %s", zTable); |
| 2181 | 2181 | char cSep = '('; |
| 2182 | 2182 | while( csv_read_one_field(&sCsv) ){ |
| 2183 | 2183 | zCreate = sqlite3_mprintf("%z%c\n \"%s\" TEXT", zCreate, cSep, sCsv.z); |
| | @@ -2199,11 +2199,11 @@ |
| 2199 | 2199 | sqlite3_errmsg(db)); |
| 2200 | 2200 | sqlite3_free(sCsv.z); |
| 2201 | 2201 | xCloser(sCsv.in); |
| 2202 | 2202 | return 1; |
| 2203 | 2203 | } |
| 2204 | | - rc = sqlite3_prepare(p->db, zSql, -1, &pStmt, 0); |
| 2204 | + rc = sqlite3_prepare_v2(p->db, zSql, -1, &pStmt, 0); |
| 2205 | 2205 | } |
| 2206 | 2206 | sqlite3_free(zSql); |
| 2207 | 2207 | if( rc ){ |
| 2208 | 2208 | if (pStmt) sqlite3_finalize(pStmt); |
| 2209 | 2209 | fprintf(stderr,"Error: %s\n", sqlite3_errmsg(db)); |
| | @@ -2226,11 +2226,11 @@ |
| 2226 | 2226 | zSql[j++] = ','; |
| 2227 | 2227 | zSql[j++] = '?'; |
| 2228 | 2228 | } |
| 2229 | 2229 | zSql[j++] = ')'; |
| 2230 | 2230 | zSql[j] = 0; |
| 2231 | | - rc = sqlite3_prepare(p->db, zSql, -1, &pStmt, 0); |
| 2231 | + rc = sqlite3_prepare_v2(p->db, zSql, -1, &pStmt, 0); |
| 2232 | 2232 | sqlite3_free(zSql); |
| 2233 | 2233 | if( rc ){ |
| 2234 | 2234 | fprintf(stderr, "Error: %s\n", sqlite3_errmsg(db)); |
| 2235 | 2235 | if (pStmt) sqlite3_finalize(pStmt); |
| 2236 | 2236 | xCloser(sCsv.in); |
| 2237 | 2237 | |