OLD | NEW |
1 /* | 1 /* |
2 ** 2001 September 15 | 2 ** 2001 September 15 |
3 ** | 3 ** |
4 ** The author disclaims copyright to this source code. In place of | 4 ** The author disclaims copyright to this source code. In place of |
5 ** a legal notice, here is a blessing: | 5 ** a legal notice, here is a blessing: |
6 ** | 6 ** |
7 ** May you do good and not evil. | 7 ** May you do good and not evil. |
8 ** May you find forgiveness for yourself and forgive others. | 8 ** May you find forgiveness for yourself and forgive others. |
9 ** May you share freely, never taking more than you give. | 9 ** May you share freely, never taking more than you give. |
10 ** | 10 ** |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 #ifndef SQLITE_OMIT_AUTOINIT | 274 #ifndef SQLITE_OMIT_AUTOINIT |
275 rc = sqlite3_initialize(); | 275 rc = sqlite3_initialize(); |
276 if( rc ) return rc; | 276 if( rc ) return rc; |
277 #endif | 277 #endif |
278 pVal = sqlite3ValueNew(0); | 278 pVal = sqlite3ValueNew(0); |
279 sqlite3ValueSetStr(pVal, -1, zSql, SQLITE_UTF16NATIVE, SQLITE_STATIC); | 279 sqlite3ValueSetStr(pVal, -1, zSql, SQLITE_UTF16NATIVE, SQLITE_STATIC); |
280 zSql8 = sqlite3ValueText(pVal, SQLITE_UTF8); | 280 zSql8 = sqlite3ValueText(pVal, SQLITE_UTF8); |
281 if( zSql8 ){ | 281 if( zSql8 ){ |
282 rc = sqlite3_complete(zSql8); | 282 rc = sqlite3_complete(zSql8); |
283 }else{ | 283 }else{ |
284 rc = SQLITE_NOMEM; | 284 rc = SQLITE_NOMEM_BKPT; |
285 } | 285 } |
286 sqlite3ValueFree(pVal); | 286 sqlite3ValueFree(pVal); |
287 return rc & 0xff; | 287 return rc & 0xff; |
288 } | 288 } |
289 #endif /* SQLITE_OMIT_UTF16 */ | 289 #endif /* SQLITE_OMIT_UTF16 */ |
290 #endif /* SQLITE_OMIT_COMPLETE */ | 290 #endif /* SQLITE_OMIT_COMPLETE */ |
OLD | NEW |