1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-14 00:22:38 +03:00

Added sqlite3_errstr API to translate a result code to the corresponding error message.

FossilOrigin-Name: bf8a9ca5b58404112a8af666f5840b462b7bbfe1
This commit is contained in:
mistachkin
2012-09-11 02:00:25 +00:00
parent 1c9ee26837
commit 5dac843233
5 changed files with 26 additions and 23 deletions

View File

@@ -1767,6 +1767,15 @@ int sqlite3_extended_errcode(sqlite3 *db){
return db->errCode;
}
/*
** Return a string that describes the kind of error specified in the
** argument. For now, this simply calls the internal sqlite3ErrStr()
** function.
*/
const char *sqlite3_errstr(int rc){
return sqlite3ErrStr(rc);
}
/*
** Create a new collating function for database "db". The name is zName
** and the encoding is enc.