From 65abb924a779dad8172a65dc4f249b4b9a0b1398 Mon Sep 17 00:00:00 2001 From: Louis-Arnaud Date: Sat, 4 Jul 2026 13:17:13 +0200 Subject: [PATCH 1/2] sqlite3: document lastExtendedErrorCode and enableExtendedResultCodes, fix lastInsertRowID casing in versions.xml, describe OK/DENY/IGNORE constants --- reference/sqlite3/sqlite3.xml | 14 +++- .../sqlite3/enableextendedresultcodes.xml | 73 +++++++++++++++++++ .../sqlite3/sqlite3/lastextendederrorcode.xml | 67 +++++++++++++++++ reference/sqlite3/versions.xml | 4 +- 4 files changed, 154 insertions(+), 4 deletions(-) create mode 100644 reference/sqlite3/sqlite3/enableextendedresultcodes.xml create mode 100644 reference/sqlite3/sqlite3/lastextendederrorcode.xml diff --git a/reference/sqlite3/sqlite3.xml b/reference/sqlite3/sqlite3.xml index d4654746e23c..afb39489a91d 100644 --- a/reference/sqlite3/sqlite3.xml +++ b/reference/sqlite3/sqlite3.xml @@ -267,21 +267,29 @@ SQLite3::OK - + + Returned from an authorizer callback to allow the action. + SQLite3::DENY - + + Returned from an authorizer callback to abort the SQL statement with an + error. + SQLite3::IGNORE - + + Returned from an authorizer callback to disallow the specific action, + treating it as a no-op rather than an error. + diff --git a/reference/sqlite3/sqlite3/enableextendedresultcodes.xml b/reference/sqlite3/sqlite3/enableextendedresultcodes.xml new file mode 100644 index 000000000000..0af59b1fffb8 --- /dev/null +++ b/reference/sqlite3/sqlite3/enableextendedresultcodes.xml @@ -0,0 +1,73 @@ + + + + + SQLite3::enableExtendedResultCodes + + Enables or disables the use of extended result codes + + + + + &reftitle.description; + + public boolSQLite3::enableExtendedResultCodes + boolenable&true; + + + Enables or disables the use of extended result codes, which are then + reported by SQLite3::lastExtendedErrorCode. + + + + + &reftitle.parameters; + + + enable + + + Whether to enable (&true;) or disable (&false;) the use of extended + result codes. + + + + + + + + &reftitle.returnvalues; + + Returns &true; on success or &false; on failure. + + + + + &reftitle.seealso; + + SQLite3::lastExtendedErrorCode + SQLite3::lastErrorCode + + + + + diff --git a/reference/sqlite3/sqlite3/lastextendederrorcode.xml b/reference/sqlite3/sqlite3/lastextendederrorcode.xml new file mode 100644 index 000000000000..f72620406210 --- /dev/null +++ b/reference/sqlite3/sqlite3/lastextendederrorcode.xml @@ -0,0 +1,67 @@ + + + + + SQLite3::lastExtendedErrorCode + + Returns the numeric extended result code of the most recent failed SQLite request + + + + + &reftitle.description; + + public intSQLite3::lastExtendedErrorCode + + + + Returns the numeric extended result code of the most recent failed SQLite + request. Extended result codes must first be enabled with + SQLite3::enableExtendedResultCodes; otherwise the + primary result code is returned. + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + Returns an integer value representing the numeric extended result code of + the most recent failed SQLite request. + + + + + &reftitle.seealso; + + SQLite3::enableExtendedResultCodes + SQLite3::lastErrorCode + SQLite3::lastErrorMsg + + + + + diff --git a/reference/sqlite3/versions.xml b/reference/sqlite3/versions.xml index bf64ad3d6231..6dbc466635b3 100644 --- a/reference/sqlite3/versions.xml +++ b/reference/sqlite3/versions.xml @@ -15,11 +15,13 @@ + - + + From 2570980fbc40afe7003a914e5c86e40d6acb5de7 Mon Sep 17 00:00:00 2001 From: Louis-Arnaud Date: Tue, 7 Jul 2026 21:58:22 +0200 Subject: [PATCH 2/2] sqlite3: drop dead $Revision$ marker from new pages --- reference/sqlite3/sqlite3/enableextendedresultcodes.xml | 1 - reference/sqlite3/sqlite3/lastextendederrorcode.xml | 1 - 2 files changed, 2 deletions(-) diff --git a/reference/sqlite3/sqlite3/enableextendedresultcodes.xml b/reference/sqlite3/sqlite3/enableextendedresultcodes.xml index 0af59b1fffb8..7bd2f325ee6f 100644 --- a/reference/sqlite3/sqlite3/enableextendedresultcodes.xml +++ b/reference/sqlite3/sqlite3/enableextendedresultcodes.xml @@ -1,5 +1,4 @@ - SQLite3::enableExtendedResultCodes diff --git a/reference/sqlite3/sqlite3/lastextendederrorcode.xml b/reference/sqlite3/sqlite3/lastextendederrorcode.xml index f72620406210..0a80b9736b0b 100644 --- a/reference/sqlite3/sqlite3/lastextendederrorcode.xml +++ b/reference/sqlite3/sqlite3/lastextendederrorcode.xml @@ -1,5 +1,4 @@ - SQLite3::lastExtendedErrorCode