1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Revise when the sqlite3ErrName() function is defined.

FossilOrigin-Name: 9e593fb3dbc58e86f499ba4399530e3e760eb84d
This commit is contained in:
mistachkin
2015-04-28 23:34:10 +00:00
parent b10f22a141
commit 5824d44bab
4 changed files with 23 additions and 10 deletions

View File

@@ -1206,7 +1206,7 @@ void sqlite3RollbackAll(sqlite3 *db, int tripCode){
** Return a static string containing the name corresponding to the error code
** specified in the argument.
*/
#if defined(SQLITE_DEBUG) || defined(SQLITE_HAVE_OS_TRACE)
#if defined(SQLITE_NEED_ERR_NAME)
const char *sqlite3ErrName(int rc){
const char *zName = 0;
int i, origRc = rc;