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

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

Issue 885473002: [sql] Rewrite sqlite patching "system". (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
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 1978 matching lines...) Expand 10 before | Expand all | Expand 10 after
1989 rc = sqlite3Fts2Init(db); 1989 rc = sqlite3Fts2Init(db);
1990 } 1990 }
1991 #endif 1991 #endif
1992 1992
1993 #ifdef SQLITE_ENABLE_FTS3 1993 #ifdef SQLITE_ENABLE_FTS3
1994 if( !db->mallocFailed && rc==SQLITE_OK ){ 1994 if( !db->mallocFailed && rc==SQLITE_OK ){
1995 rc = sqlite3Fts3Init(db); 1995 rc = sqlite3Fts3Init(db);
1996 } 1996 }
1997 #endif 1997 #endif
1998 1998
1999 #ifdef DEFAULT_ENABLE_RECOVER
2000 /* Initialize recover virtual table for testing. */
2001 extern int recoverVtableInit(sqlite3 *db);
2002 if( !db->mallocFailed && rc==SQLITE_OK ){
2003 rc = recoverVtableInit(db);
2004 }
2005 #endif
Scott Hess - ex-Googler 2015/01/27 22:09:37 This is here for testing, production enables it as
2006
1999 #ifdef SQLITE_ENABLE_ICU 2007 #ifdef SQLITE_ENABLE_ICU
2000 if( !db->mallocFailed && rc==SQLITE_OK ){ 2008 if( !db->mallocFailed && rc==SQLITE_OK ){
2001 rc = sqlite3IcuInit(db); 2009 rc = sqlite3IcuInit(db);
2002 } 2010 }
2003 #endif 2011 #endif
2004 2012
2005 #ifdef SQLITE_ENABLE_RTREE 2013 #ifdef SQLITE_ENABLE_RTREE
2006 if( !db->mallocFailed && rc==SQLITE_OK){ 2014 if( !db->mallocFailed && rc==SQLITE_OK){
2007 rc = sqlite3RtreeInit(db); 2015 rc = sqlite3RtreeInit(db);
2008 } 2016 }
(...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after
2661 if( sz ) *ppNew = sqlite3ScratchMalloc(sz); 2669 if( sz ) *ppNew = sqlite3ScratchMalloc(sz);
2662 sqlite3ScratchFree(pFree); 2670 sqlite3ScratchFree(pFree);
2663 break; 2671 break;
2664 } 2672 }
2665 2673
2666 } 2674 }
2667 va_end(ap); 2675 va_end(ap);
2668 #endif /* SQLITE_OMIT_BUILTIN_TEST */ 2676 #endif /* SQLITE_OMIT_BUILTIN_TEST */
2669 return rc; 2677 return rc;
2670 } 2678 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698