Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(264)

Side by Side Diff: third_party/sqlite/src/src/complete.c

Issue 2751253002: [sql] Import SQLite 3.17.0. (Closed)
Patch Set: also clang on Linux i386 Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/sqlite/src/src/callback.c ('k') | third_party/sqlite/src/src/ctime.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 */
OLDNEW
« no previous file with comments | « third_party/sqlite/src/src/callback.c ('k') | third_party/sqlite/src/src/ctime.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698