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

Side by Side Diff: third_party/sqlite/attach-integer.patch

Issue 5626002: Update sqlite to 3.7.3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/third_party/sqlite/src
Patch Set: Remove misc change. Created 10 years 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 | Annotate | Revision Log
« no previous file with comments | « third_party/sqlite/README.chromium ('k') | third_party/sqlite/fts2.patch » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 --- src/attach.c.orig» 2010-03-21 21:28:14.144127448 -0700 1 diff --git a/third_party/sqlite/src/src/attach.c b/third_party/sqlite/src/src/at tach.c
2 +++ src/attach.c» 2010-03-21 21:55:58.224754199 -0700 2 index e3dc49d..462602d 100644
3 @@ -313,6 +313,12 @@ 3 --- a/third_party/sqlite/src/src/attach.c
4 +++ b/third_party/sqlite/src/src/attach.c
5 @@ -313,6 +313,12 @@ static void codeAttach(
4 #ifndef SQLITE_OMIT_AUTHORIZATION 6 #ifndef SQLITE_OMIT_AUTHORIZATION
5 if( pAuthArg ){ 7 if( pAuthArg ){
6 char *zAuthArg = pAuthArg->u.zToken; 8 char *zAuthArg = pAuthArg->u.zToken;
7 + int i; 9 + int i;
8 + char iBuf[32]; 10 + char iBuf[32];
9 + if( sqlite3ExprIsInteger(pAuthArg, &i) ){ 11 + if( sqlite3ExprIsInteger(pAuthArg, &i) ){
10 + sqlite3_snprintf(sizeof(iBuf), iBuf, "%d", pAuthArg->u.iValue); 12 + sqlite3_snprintf(sizeof(iBuf), iBuf, "%d", pAuthArg->u.iValue);
11 + zAuthArg = iBuf; 13 + zAuthArg = iBuf;
12 + } 14 + }
13 if( NEVER(zAuthArg==0) ){ 15 if( NEVER(zAuthArg==0) ){
14 goto attach_end; 16 goto attach_end;
15 } 17 }
OLDNEW
« no previous file with comments | « third_party/sqlite/README.chromium ('k') | third_party/sqlite/fts2.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698