diff options
author | drh <> | 2021-12-24 20:22:13 +0000 |
---|---|---|
committer | drh <> | 2021-12-24 20:22:13 +0000 |
commit | f62641e91cc0aee1a24ea4a3c81289e4e821c4e5 (patch) | |
tree | 858ed6fcb6519dc309510e91b8da3979fec966cc /src/sqliteInt.h | |
parent | c320e062a3eaa4be3c8e7b50c63c43054decb441 (diff) | |
download | sqlite-f62641e91cc0aee1a24ea4a3c81289e4e821c4e5.tar.gz sqlite-f62641e91cc0aee1a24ea4a3c81289e4e821c4e5.zip |
Add the sqlite3_error_offset() interface. Use it in the CLI to provide
better context for error messages.
FossilOrigin-Name: b518ce77439852759bc0901071f36d622b1314c9bf3d29c279dfcc405188b975
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r-- | src/sqliteInt.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h index 48a94a7b3..092bbccdc 100644 --- a/src/sqliteInt.h +++ b/src/sqliteInt.h @@ -1527,6 +1527,7 @@ struct sqlite3 { u32 nSchemaLock; /* Do not reset the schema when non-zero */ unsigned int openFlags; /* Flags passed to sqlite3_vfs.xOpen() */ int errCode; /* Most recent error code (SQLITE_*) */ + int errByteOffset; /* Byte offset of error in SQL statement */ int errMask; /* & result codes with this before returning */ int iSysErrno; /* Errno value from last system error */ u32 dbOptFlags; /* Flags to enable/disable optimizations */ @@ -4977,6 +4978,7 @@ void sqlite3StrAccumSetError(StrAccum*, u8); void sqlite3ResultStrAccum(sqlite3_context*,StrAccum*); void sqlite3SelectDestInit(SelectDest*,int,int); Expr *sqlite3CreateColumnExpr(sqlite3 *, SrcList *, int, int); +void sqlite3RecordErrorByteOffset(sqlite3*,const char*); void sqlite3BackupRestart(sqlite3_backup *); void sqlite3BackupUpdate(sqlite3_backup *, Pgno, const u8 *); |