OLD | NEW |
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 756 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
767 ** is unsafe, as is the call to sqlite3Error(). | 767 ** is unsafe, as is the call to sqlite3Error(). |
768 */ | 768 */ |
769 assert( !db || sqlite3_mutex_held(db->mutex) ); | 769 assert( !db || sqlite3_mutex_held(db->mutex) ); |
770 if( db && (db->mallocFailed || rc==SQLITE_IOERR_NOMEM) ){ | 770 if( db && (db->mallocFailed || rc==SQLITE_IOERR_NOMEM) ){ |
771 sqlite3Error(db, SQLITE_NOMEM, 0); | 771 sqlite3Error(db, SQLITE_NOMEM, 0); |
772 db->mallocFailed = 0; | 772 db->mallocFailed = 0; |
773 rc = SQLITE_NOMEM; | 773 rc = SQLITE_NOMEM; |
774 } | 774 } |
775 return rc & (db ? db->errMask : 0xff); | 775 return rc & (db ? db->errMask : 0xff); |
776 } | 776 } |
OLD | NEW |