aboutsummaryrefslogtreecommitdiff
path: root/src/sqlite.h.in
AgeCommit message (Collapse)AuthorLines
5 daysAs demonstrated by multiple bug reports, the SQLITE_DBCONFIG_FP_DIGITSdrh-13/+11
setting from [3f16985dcc47a366] is unsafe if misused, and so it is here changed into a no-op. FossilOrigin-Name: 5b588b3e0ff81920514098dd98307cf64c37cef17c30df028e344cc0b8b0a267
10 daysFix documentation that describes what happens when you access adrh-1/+1
floating-point query result using sqlite3_column_blob(). No changes to code. [bugs:/info/2026-11-14T13:16:09Z|Bug 2026-11-14T13:16:09Z] FossilOrigin-Name: e4704675c88cff32d1291b6f393dde0f33a8ade022f1bad219cab3c950345032
13 daysImproved incrblob recovery when the content of the row it is reading isdrh-0/+1
change by ROLLBACK. FossilOrigin-Name: dad573697153e114c71023e48c7d281c0043aeab9f6a8f756f8ef8952f003587
2026-11-06Fix an off-by-one error in the documentation for the lower bound ofdrh-1/+1
SQLITE_DBCONFIG_FP_DIGITS. No changes to code. [bugs:/info/2026-11-06T20:19:18Z|Bug 2026-11-06T20:19:18Z] FossilOrigin-Name: 58a2965acc360b1fc9220afd7726469343e62fa90281119e8611d7dcc4019724
2026-11-05Merge all branch-3.54 fixes into trunk.drh-1/+1
FossilOrigin-Name: 132faed5eb1ce48581329076fc7669d7c315117c77674a09eb39cb01cf1427bf
2026-11-05Binding-API doc correction reported in [bugs:98a22ba6a821dd3b|post ↵stephan-1/+1
2026-11-05T10:06:51Z]. FossilOrigin-Name: 282be17434c328f58151262206e6818ff748dd72caafeb4b5fcfb42d57184b32
2026-10-29Add the SQLITE_DBCONFIG_VDBE_TRACE as an alternative to "PRAGMA vdbe_trace"drh-1/+9
and use it to enable/disable tracing in the CLI, for a smoother debugging experience. FossilOrigin-Name: 345c0ddb81a0be3fd538e9a3c3651a101b476d6684ba866efe2d8e7279b8184e
2026-10-27Add the SQLITE_FILECTRL_EXPIRE_STMTS file-control to facilitate testing.drh-1/+2
FossilOrigin-Name: fc75988f7591ec24db06d03050e5f6c893fb328d99b6392ea6aab0ef0f31aa59
2026-10-23Fix the sqlite3_bind_value() interface so that it does not remove adrh-0/+4
byte-order mark on the value being bound. FossilOrigin-Name: 56e268312d038608b5fb2a8ed24002f478ad5a22eb0214b1a064f2926aada66c
2026-10-23Cap the sleep time for sqlite3_sleep() at 2147483 milliseconds to avoiddrh-0/+4
overflowing the microsecond-resolution parameter to the xSleep method of the VFS. Test cases in TH3. [bugs:/info/2026-10-23T04:02:08Z|Bug 2026-10-23T04:02:08Z]. FossilOrigin-Name: 58efac83960f8f69291602f6c407cd6bbcb8aa2c29335637b43bda3a987284d7
2026-10-20Change the sqlite3_serialize() interface to return a NULL pointer ifdrh-1/+1
the database is file-based and an I/O error occurs while reading. [bugs:/info/2026-10-18T10:04:32Z|Enhancement request 2026-10-18T10:04:32Z]. FossilOrigin-Name: aa36cfe5b0f944752ace7986b2bff5dcb597fc0d456da781ed5b55e47ecb3d3c
2026-10-18Add the SQLITE_LIMIT_CTES option to sqlite3_limit(). The default is 50K.drh-0/+10
Setting to zero disables the limit. The limit is approximate - it does not actually count CTEs but rather simply refuses to process a CTE with cursor number that exceeds this limit. This is a re-do of the fix for [bugs:/info/2026-10-04T05:35:14Z|Bug 2026-10-04T05:35:14Z] that also avoids the regression reported by [forum:/info/2026-10-16T20:30:17Z|Forum post 2026-10-16T20:30:17Z]. FossilOrigin-Name: b32709ea065da2eb41a6eb0ca20381d2bd82a356bb5f8bc76fee063d1da93004
2026-10-09Fix a typo in a comment. No changes to code.drh-1/+1
FossilOrigin-Name: 7b468f6f1d63645c8d8132790831dac6916006f81cf97e99abec711de93feb23
2026-10-03Enhance the sqlite3_incomplete() interface so that it returns SQLITE_EMPTYdrh-4/+8
if the input consists purely of whitespace and comments. Fix bugs in the continuation prompt mechanism of the CLI discovered while making this enhancement. FossilOrigin-Name: 086e6fb47cc29d9568495990cde467933e503ffd5ddd70073d1e6d26e445fa49
2026-08-31Update the authorizer action code documentation to make it clear thatdrh-0/+5
string arguments to the authorizer callback can be in an arbitrary case. FossilOrigin-Name: 6f73383647fdf579dca72e15cc8a9627be72fd524e8e843e7d62dfc9253e20d2
2026-08-18Add SQLITE_LIMIT_TRIGGER_STEPS and -DSQLITE_MAX_TRIGGER_STEPS=n. Default ↵drh-0/+5
maximum is 65000. FossilOrigin-Name: 6fbed57b1447725ae9d923d69b509fd5932d8c6bae6cf6ac0d1248a943752a58
2026-07-12Improve documentation for sqlite3_result_zeroblob64(). No changesdrh-1/+5
to code. FossilOrigin-Name: c3d307d1367ba08c9ddb9fc26c95131d3e124d7e97896383f21b48cdc154a50a
2026-07-10New compile-time option SQLITE_MAX_SCHEMA and runtime limit optiondrh-0/+5
SQLITE_LIMIT_SCHEMA that put an upper bound on the number of objects in a database schema. Current default is 10 million. FossilOrigin-Name: 4ff362a4c2897e2b438d3d8fc88a012264526fa617f058be5a2d596c42d2e8a4
2026-06-26Enhance the documentation on sqlite3_set_authorizer() to make it cleardrh-3/+15
that the authorizer callback is not invoked for elements of an expression in a generated column. [bugs:/info/2026-06-26T12:42:48Z|Bugs 2026-06-26T12:42:48Z]. FossilOrigin-Name: 45213c1c398cad9d05eda5420ae7379e84fa37d30793f8b4d28c358b88d62931
2026-06-24Update documentation to explain that a odd nByte parameter todrh-0/+2
sqlite3_prepare16() is undefined behavior. In addition, always round down the nByte parameter to an even number so that it in fact harmless to give it an odd nByte value. [bugs:/info/2026-06-24T11:25:24Z|Bug 2026-06-24T11:25:24Z]. FossilOrigin-Name: 7af7c501b60358cf84e843eb147e6edf9a5aaca30b1c570abe63ca68b54e3ec2
2026-06-19Prototype implementation for a new sqlite3_result_str() API.drh-4/+43
FossilOrigin-Name: cdbc62c36a37ad687589917c6f1e92ded6d99959c54eb8d79eaaef6fa57dacd3
2026-06-16Typo fix in a comment used to generate documentation. No changes to code.drh-1/+1
[forum:/info/2026-06-16T23:18:50Z|Forum 2026-06-16T23:18:50Z]. FossilOrigin-Name: 7386faef618acb006086d688fcea854a7c555ac1bcfcaa294ea86e964e4ce75f
2026-06-16Limit VIEW recursion depth to SQLITE_LIMIT_EXPR_DEPTH to prevent drh-2/+4
static overflow in malicious schemas with tens of thousands of levels of recursive views. [bugs:/info/2026-06-16T04:21:51Z|Bug 2026-06-16T04:21:51Z] FossilOrigin-Name: 3f3fb9b638f59ad982beafb7c117f24ddd3da612e62c862510805fa672ffae06
2026-06-12Improved documentation for sqlite3_deserialize().drh-2/+13
FossilOrigin-Name: f15d076820f4a0d9e7fa32d99575bce27bde5e987bb415e6cfb69b06f0da7e1e
2026-05-14Correction to the documentation for sqlite3_uri_int64().drh-2/+1
FossilOrigin-Name: 58472fdab0691f7f03f15201542f15148ed7734bfeb495370386d666ae4beded
2026-04-12Doc typo fix which broke the docsrc build, reported by BrickViking.stephan-1/+1
FossilOrigin-Name: 3c212b5d85338f90a5f1a2d1484e54c0bf699eedef19a16f4c0de76a76dd9d07
2026-04-10Prototype sqlite3_incomplete() - a variant of sqlite3_complete() that returnsdrh-8/+20
additional information about what is needed to complete the statement. FossilOrigin-Name: a698fbfb8bb256ee0d9802c01562c11492ca2800a45360b268ac6cf397a7fad7
2026-04-07Fix a few doc typos and inconsistencies. No code changes.stephan-1/+1
FossilOrigin-Name: 025abd4cf409fb9938e116289f23dc5bcd6d14feb46066221e691b146ee9b354
2026-03-31Turn an incorrect assert() into a testcase(). Fix over-length code linesdrh-46/+50
in the sqlite.h.in source file. Fix the documentation on OOM conditions in the sqlite3_value_text() family of APIs. FossilOrigin-Name: 934582706109d2ebda26952c7c95f7a5095fa47ec837570a66c991866f7d08cf
2026-03-27Add a comment showing reserved file-control numbers to sqlite3.hdrh-0/+6
FossilOrigin-Name: cd472d7c85f3fda54bba5166eae72b5f9b86861c4a1160583e8ee902ba992255
2026-03-26Improvements to the sqlite3AtoF() interface. Add a test-control fordrh-0/+1
direct testing of sqlite3AtoF(). FossilOrigin-Name: 97ee48b6ef65fb55633196282c9e75b3b0a3b81ba9755f63493a38e3f1a5610c
2026-03-26Back out the sqlite3_atof() API, for now.drh-22/+0
FossilOrigin-Name: 7568d264be3988df195401158d8d07105b8e9e018eccf98ac948219bee9388ac
2026-03-24Remove a stale reference to the long-removed SQLITE_MUTEX_APPDEF, as pointed ↵stephan-7/+0
out in [forum:348453389b|forum post 348453389b]. FossilOrigin-Name: cb8e55b59113d0102c50db0a43b1b59d531cdcb12a7cce4c4c9a428c7c6e1adf
2026-03-23Move the definition of the new sqlite3_atof() function in sqlite3.h sodrh-22/+22
that it is adjacent to sqlite3_mprintf(). FossilOrigin-Name: 1553a60506fa29b5f00535ae0f7aeb8cc94ebe84015386b3248fd8491108fc60
2026-03-22Proposed new API routine: sqlite3_atof().drh-0/+22
FossilOrigin-Name: db370f0f628895279a1c1db79ba7428cb4e31b56cafc191859c2f1a5a924435b
2026-03-07Minor typo fixes from [forum:8fc8bc34291d6f45|forum post 8fc8bc34291d6f45].stephan-9/+9
FossilOrigin-Name: c8fb88c19ed91dc5e205f719aedb895f7ceb62b113f61ec94cc6e435051da15c
2026-03-06Small typo fix in the FP_DIGITS API docs.stephan-2/+2
FossilOrigin-Name: 0286f97f34fd560d4ba423bd28d18ac080c918b0e99b8d16c4a213cf205b5e5b
2026-02-26Fix typos in the SQLITE_PREPARE_FROM_DDL documentation.drh-2/+2
FossilOrigin-Name: 9174e7dacf867c1f80e73ccf5e0ee7b9e84fbe9f2e53559d06b72206b1cde3c6
2026-02-26Improvements to the SQLITE_PREPARE_FROM_DDL documentation.drh-13/+14
FossilOrigin-Name: c3288f16848866a2c846221c33631785f7b39938078bb95c61895f789395aa1d
2026-02-21Fix typos and include wording in the documentation fordrh-11/+13
SQLITE_DBCONFIG_FP_DIGITS. FossilOrigin-Name: c30cee1224904eb2092daa0ad9494aec7c7a8c6c1661f5b91b62c3ef0c5ea95b
2026-02-21New sqlite3_db_config(SQLITE_DBCONFIG_FP_DIGITS) that let's the applicationdrh-1/+17
specify the number of significant digits that double→text conversions will attempt to preserve. FossilOrigin-Name: 3f16985dcc47a366b54164c5024f920a79dddd76faeac5e36b4770732ed72c0a
2026-01-26Add alternative sqlite3_carray_bind_v2() interface.drh-12/+34
FossilOrigin-Name: 925384d7711867428644595c0903682e6e365eb974c57e6680b51d511c980054
2026-01-24Expound upon the meaning of SQLITE_UTF8_ZT, in an attempt to head offdrh-8/+58
confusion. FossilOrigin-Name: 9a74d0c3e78eef9a32775f445ecb3fae76e2f3886b9173a16971d7c7506967fe
2026-01-21Add a new encoding constant SQLITE_UTF8_ZT, which if used withdrh-5/+10
sqlite3_result_text64() or sqlite3_bind_text64() declares that the string provided is UTF8 and zero-terminated at the length specified. FossilOrigin-Name: 2d84ce88fed12766272f6b1293927eb4c7ce92da0334b09b4875ed2dfdd00ade
2026-01-06Update to the sqlite3_get_clientdata() documentation. No code changes.drh-4/+8
FossilOrigin-Name: 395b7168b873390c05ea2cc71fe14bafb5bdee77f32a047bec8d7ed6feb9ed90
2025-12-22API documentation enhancements.drh-7/+16
FossilOrigin-Name: 99ac94cb9a7a76312cda2d236dcc0c92b2ca269456daed06a1c2674c4f326867
2025-12-22Add the SQLITE_PREPARE_FROM_DDL flag to sqlite3_prepare_v3(). Use this to ↵dan-0/+8
prevent fts3/4 tables in non-trusted schemas from calling unsafe SQL functions. FossilOrigin-Name: 26f39ac806a5582fab1497e38a4ce68dad2b79df8c8aade43c4e21eed7576931
2025-12-18Enhance the sqlite3_load_extension() so that when the entry point isdrh-5/+5
not specified, after trying sqlite3_extension_init() and sqlite3_X_init() where X is the alphabetic part of the base filename, if neither or found it tries again with X as the alpha*numeric* part of the base filename. Hence, a shared library named "vt02.so" can be loaded with just ".load vt02" and without having to specify the entry point separately. FossilOrigin-Name: acc95f24cc034408de1e9225aef4dae8bf76beec812c152bea32db95f7d2b854
2025-11-30Doc typo fix.stephan-1/+1
FossilOrigin-Name: a2b53a71e9354260c7fd0ada093cebd56a20a04add12ff2a2d788c386bf8964f
2025-11-30Add sqlite3_db_handle() to the list of functions which are guaranteed to ↵stephan-0/+1
preserve the current error state, per request in [forum:8e79e8ddd5|forum post 8e79e8ddd5]. FossilOrigin-Name: 78bdc766330c35dbfa8b187854c48c3aff66a9d58796c9c20f3a5701e1ee4351