OLD | NEW |
1 /* | 1 /* |
2 ** 2014-09-08 | 2 ** 2014-09-08 |
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 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 return SQLITE_OK; | 346 return SQLITE_OK; |
347 } | 347 } |
348 pStmt = sqlite3UserAuthPrepare(db, | 348 pStmt = sqlite3UserAuthPrepare(db, |
349 "DELETE FROM sqlite_user WHERE uname=%Q", zUsername); | 349 "DELETE FROM sqlite_user WHERE uname=%Q", zUsername); |
350 if( pStmt==0 ) return SQLITE_NOMEM; | 350 if( pStmt==0 ) return SQLITE_NOMEM; |
351 sqlite3_step(pStmt); | 351 sqlite3_step(pStmt); |
352 return sqlite3_finalize(pStmt); | 352 return sqlite3_finalize(pStmt); |
353 } | 353 } |
354 | 354 |
355 #endif /* SQLITE_USER_AUTHENTICATION */ | 355 #endif /* SQLITE_USER_AUTHENTICATION */ |
OLD | NEW |