| OLD | NEW |
| 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 } |
| OLD | NEW |