SQLite Forum

Tiny doc correction for sqlite3_open()

Tiny doc correction for sqlite3_open()

(1) By anonymous on 2024-05-27 17:41:57 [link] [source]

The docs for SQLITE_OPEN_EXRESCODE read,

the database behaves has if sqlite3_extended_result_codes(db,1) where called on the database connection

The grammar feels off, it should probably read,

the database behaves AS IF sqlite3_extended_result_codes(db,1) WERE called on the database connection

(2) By Richard Hipp (drh) on 2024-05-27 18:16:15 in reply to 1 [link] [source]

Fixed with check-in 428aadf0c71473cc.

However, because this particular part of the documentation is generated from comments in the source code, the documentation cannot be updated until we do a new release.

(3) By anonymous on 2024-05-28 09:09:54 in reply to 2 [source]

Thank you for your attention and sorry for bringing this up again. I looked at the commit: https://www.sqlite.org/src/info/428aadf0c71473cc

What I see is that half the mistake is corrected, HAS IF -> AS IF (this is fine); but then the WHERE should be WERE on the next line, too.