dan
af0cfd366a
Have sqlite3_wal_checkpoint() handle a zero-length string in the same way as a NULL pointer. Fix "PRAGMA wal_checkpoint" so that it checkpoints all attached databases.
...
FossilOrigin-Name: 7fecd21f45b9ce773ffbcef6c84066474e8cd01c
2010-05-03 15:58:50 +00:00
dan
6fcff07f6a
If the sqlite3_wal_checkpoint() API is passed a NULL pointer in place of a database name, attempt to checkpoint all attached databases.
...
FossilOrigin-Name: 27a5c09ce8a35039d844d08cfe5698e8b438abfe
2010-05-03 14:05:43 +00:00
drh
b033d8b9dc
Make sure the mutex is held while calling sqlite3ApiExit() in
...
sqlite3_wal_checkpoint(). Other cleanup of WAL logic.
FossilOrigin-Name: 11a85b821abff1ecb7ec8c37bc7783be9fc4ea6d
2010-05-03 13:37:30 +00:00
dan
87c1fe1b69
Have sqlite3_wal_checkpoint() populate the database handle error message and error code (as returned by sqlite3_errmsg() and sqlite3_errcode()).
...
FossilOrigin-Name: ff234cf574c7ae384ab1ebc79b2171ef0541bc91
2010-05-03 12:14:15 +00:00
dan
5a299f9134
Add the "PRAGMA wal_autocheckpoint" command. Rename "PRAGMA checkpoint" to "PRAGMA wal_checkpoint".
...
FossilOrigin-Name: 714e5947264571386f966aa8fcdd5607b5832238
2010-05-03 11:05:08 +00:00
dan
586b9c8a94
Add the sqlite3_wal_checkpoint() and sqlite3_wal_autocheckpoint() APIs.
...
FossilOrigin-Name: 9803196dec85e3aa4105cc477e9cfe98d370e486
2010-05-03 08:04:49 +00:00
dan
5cf53537a8
Support compile-time option SQLITE_OMIT_WAL, for building without WAL support.
...
FossilOrigin-Name: 9b230c43dfa112e3e1589f9775926807bd36b36e
2010-05-01 16:40:20 +00:00
drh
7ed91f2344
Refactor wal.c to use the VFS. This check-in compiles and links and works
...
ok as long as you leave WAL turned off, but WAL does not work.
FossilOrigin-Name: 62db5fa3b61be885b2d94e9b9ce3877b2c588350
2010-04-29 22:34:07 +00:00
drh
833bf968e3
Rename the sqlite3_log_hook() to sqlite3_wal_hook(). Added comments to
...
wal.h.
FossilOrigin-Name: bbc385111b19071e20fe963fab814262c815b3e9
2010-04-28 14:42:19 +00:00
dan
8d22a17411
Add the sqlite3_log_hook() interface for scheduling checkpoints.
...
FossilOrigin-Name: 9bda601455705475075e33bfa85687bce34b15ff
2010-04-19 18:03:51 +00:00
drh
c633908199
Wrap all automatic index changes inside SQLITE_OMIT_AUTOMATIC_INDEX. Add
...
the automatic_index PRAGMA to turn it on and off.
FossilOrigin-Name: a811a47fbe4f757a7ab575ae5a0f65177a3f07c0
2010-04-07 16:54:58 +00:00
dan
b7dca7d733
Modify the vdbe so that the comparison operator opcodes do not modify the data type of operands. Fix for [aa92c76cd4].
...
FossilOrigin-Name: 8858042fa1449516a2c7dbb991dca3eb6c5794cb
2010-03-05 16:32:12 +00:00
drh
af46dc12f7
Add testcase() macros beside each sqlite3_log() call to make sure it is
...
tested with both logging enable and disabled.
FossilOrigin-Name: 1168763d2cd96acfa0488198e8bc82f0c4fa35a3
2010-02-24 21:44:07 +00:00
drh
380083ce18
Merge the compile-time option introspection interfaces into the trunk.
...
FossilOrigin-Name: 9f429434c0404f03a3e5c6741b769afe98a5c6c9
2010-02-23 20:32:15 +00:00
drh
413c3d36a2
Continuing improvements to error reporting and the sqlite3_log() routine.
...
FossilOrigin-Name: edea3bb740ddd096a46e00678b59d465bb1e2903
2010-02-23 20:11:56 +00:00
shaneh
dc97a8cdc1
Refactored compile time option diagnostic support to use strings identifiers instead of bitmask.
...
FossilOrigin-Name: 76a0294ab4208a0858a13bab0858e1bc1448b651
2010-02-23 20:08:35 +00:00
drh
9978c97ec5
Remove the obsolete sqlite3SafetyOn() mechanism. Add additional logging
...
output for CORRUPT, and CANTOPEN errors.
FossilOrigin-Name: 7c4cca6d1a23a6d1591b62f58c3716a944969947
2010-02-23 17:36:32 +00:00
shaneh
ca07b9df47
Removed checking of some compile options from the sqlite3_compileopts() API.
...
FossilOrigin-Name: 833da702ff9bd99d62640756d80e094256efff5c
2010-02-23 05:17:51 +00:00
shaneh
bdea6d1368
Test new api to report which options (defines) were used to compile SQLite.
...
FossilOrigin-Name: 84c9756993caf82710a0905ed1987d144bc764fd
2010-02-23 04:19:54 +00:00
drh
3f28070109
Add a new, experimental logging interface designed to aid in debugging of
...
deeply embedded projects that use SQLite.
FossilOrigin-Name: 103321e37ae46eacfad4e127d13477ad5dd02bab
2010-02-18 18:45:09 +00:00
drh
855787a1b3
Fix a bug in the new sqlite3_test_control case of the previous check-in.
...
FossilOrigin-Name: 3b77701bc854997346e9cc33fe64d00d4b6332bd
2010-01-02 03:46:43 +00:00
drh
0e857739c4
Add a new sqlite3_test_control() verb that facilitates testing that all
...
keywords are shown in the documentation. (Two keywords were found to
be missing while testing the change.)
FossilOrigin-Name: d3cdc4b12be7f1ed2249ad210482200868956d12
2010-01-02 03:21:35 +00:00
drh
07096f68ae
Move the query flattener turn-off from a pragma to an sqlite3_test_control()
...
call. Make provisions (not yet implemented) to turn off other optimizers
using the same call.
FossilOrigin-Name: 4a97c623f4e190134de4b2ca406e311034a74797
2009-12-22 23:52:32 +00:00
drh
d68eee04b4
Extensive edits to the comments in the sqlite.h.in source file to identify
...
testable statements of truth about the C-language interface.
FossilOrigin-Name: ea884e1ed8dba1aa0f3cf68fc71923954983f6c6
2009-12-11 03:44:18 +00:00
drh
1860e3f98f
Remove "const" from parameter of sqlite3BtreeFactory() to avoid a compiler
...
warning.
FossilOrigin-Name: eb7a544fe49d1626bacecfe53ddc03fe082e3243
2009-11-04 13:30:01 +00:00
drh
75f8d8be1a
All SQLITE_MAX_VARIABLE_NUMBER to exceed 32767. The sizes of some structures
...
increase when the compile-time parameter is configured this way.
FossilOrigin-Name: 16a24b4485420bdf30d3c8e22cfbaf008e07df02
2009-11-03 01:22:07 +00:00
dan
937d0dea4f
Add the experimental sqlite3_reoptimize() API.
...
FossilOrigin-Name: 9bd6f3d8864d422fe42074688b191915b27ad8ea
2009-10-15 18:35:38 +00:00
dan
1da40a381f
Check in implementation of foreign key constraints.
...
FossilOrigin-Name: d5d399811876391642937edeb9e8434dd9e356f5
2009-09-19 17:00:31 +00:00
drh
f4cfac9d63
Bug fix in the SQLITE_OPEN_PRIVATECACHE option added a few minutes ago.
...
FossilOrigin-Name: f3a0f23bc77f8c73924f1d371afae9a0f65bae67
2009-09-09 15:29:41 +00:00
drh
f1f12688d8
Added SQLITE_OPEN_SHAREDCACHE and SQLITE_OPEN_PRIVATECACHE flags as
...
possibilities to sqlite3_open_v2(), to override the global shared
cache mode setting. Ticket [9fd0bc36639c15]
FossilOrigin-Name: f509eb8b488bb39deda4ca88f66ed40c6784af02
2009-09-09 14:17:52 +00:00
drh
417168ade2
Add the SQLITE_LIMIT_TRIGGER_DEPTH option to sqlite3_limit().
...
FossilOrigin-Name: d7dc8b433691745b3842282569f1573d1e057963
2009-09-07 18:14:02 +00:00
shane
cea72b2dc2
Warning cleanup from the MSVC compile.
...
FossilOrigin-Name: 26cd015c0ee1c18dd37f11b47ce35cfa320b3514
2009-09-07 04:38:36 +00:00
dan
5e1a278879
Fix a problem in main.c. SQLITE_NoRecTriggers -> SQLITE_RecTriggers.
...
FossilOrigin-Name: 5ac69ed608affb4104b4665560a3a490ea5af217
2009-09-01 17:28:29 +00:00
dan
5bde73c4eb
Change "PRAGMA disable_recursive_triggers" to "PRAGMA recursive_triggers". Also a fix for compiling with OMIT_TRIGGER defined.
...
FossilOrigin-Name: e016cca36390451d5d1c6e0d1b3cdbd6d869be1a
2009-09-01 17:11:07 +00:00
dan
65a7cd1631
More fixes and comment updates.
...
FossilOrigin-Name: 38a9327bad1a01e3d7a47fad44ece2f6c7e88643
2009-09-01 12:16:01 +00:00
dan
76d462ee78
Fixes for new triggers scheme.
...
FossilOrigin-Name: 9eb91efda5241609ff18ff15ef5eaa0e86788eab
2009-08-30 11:42:51 +00:00
drh
f8d4e8bd3f
Set the "type" correctly of built-in BINARY collating sequences for UTF16.
...
FossilOrigin-Name: 167644f33c949b532655c2297aedf13f93876396
2009-08-20 02:49:30 +00:00
dan
3d6e060b48
Move error simulation code from the sqlite3_os_init() functions into a wrapper.
...
FossilOrigin-Name: 67ad21abf88abb7a3e2eacddcaf1ab5d54149807
2009-08-17 15:52:25 +00:00
dan
e1ab219309
Add tests to check that sqlite recovers from an error in sqlite3_initialize() correctly.
...
FossilOrigin-Name: 904a371c6c9d3f20332b37767b06161fa0a78113
2009-08-17 15:16:19 +00:00
drh
9ac06509f1
Enhanced documentation and minor code tweaks in preparation for hardening
...
the sqlite3_initialize/shutdown interfaces against initialization failures.
FossilOrigin-Name: 98c49e6135ae6268a80de88f8b0284f88ef32e1d
2009-08-17 13:42:29 +00:00
drh
47baebc2a6
Incorporate fossil-scm version information into the build. Add the
...
SQLITE_SOURCE_ID macro to the header. Add the sqlite3_sourceid() interface.
Add the sqlite_source_id() SQL function.
FossilOrigin-Name: 302dabe98f50b472bccd65c58504bc8a330049c4
2009-08-14 16:01:24 +00:00
drh
dfc926410e
Always provide a name for the TEMP database even if SQLite is compiled using
...
SQLITE_OMIT_TEMPDB. (CVS 6908)
FossilOrigin-Name: 0ba17c04834c0a44c8690169c0096c1d9cf325e4
2009-07-20 11:32:03 +00:00
drh
c046e3edeb
Added the SQLITE_TESTCTRL_RESERVE option to sqlite3_test_control().
...
Simplifications to btree.c to facilitate structural coverage testing. (CVS 6894)
FossilOrigin-Name: cfbeda1b3126503e9631471ce4713e25b007859f
2009-07-15 11:26:44 +00:00
drh
9ed7a9953e
Remove the priorNewRowid field from the sqlite3 structure. Use the
...
last_insert_rowid as the initial value when searching for a new random
rowid in the OP_NewRowid opcode. (CVS 6824)
FossilOrigin-Name: 96729b2d499f029bfaec6648a592e8ec697d9521
2009-06-26 15:14:55 +00:00
drh
4c8555fd47
Improved handling of oversize string and blob errors. Other simplifications
...
in support of full coverage testing. (CVS 6813)
FossilOrigin-Name: 8b34076668f0f712de0fbbe9bc2e68d42797e1b2
2009-06-25 01:47:11 +00:00
drh
8bfdf72136
Reorganize and cleanup the prepared statement object. Remove code that has
...
been commented out for ages and is no longer relevant to anything. (CVS 6786)
FossilOrigin-Name: 37ae5f5e8feb34a8e6e8b34aa18df1e9a1ce55cb
2009-06-19 14:06:03 +00:00
drh
6860da015f
Remove the actual checks that verify that memory pools (such as set up
...
using SQLITE_CONFIG_HEAP) are 8-byte aligned. But document that 8-byte
alignment is required. (CVS 6742)
FossilOrigin-Name: e9b55ccc8b6d4f21c9c8f8e7ba053475833fc833
2009-06-09 19:53:58 +00:00
drh
39bf74a288
Require that the buffer specified by SQLITE_CONFIG_HEAP be 8-byte aligned. (CVS 6739)
...
FossilOrigin-Name: 18b78068cc94de51f081824c93f7b14c7c35726d
2009-06-09 18:02:10 +00:00
shane
cf6973963a
Fix compiler warnings with MSVC build. (CVS 6699)
...
FossilOrigin-Name: 0791588520603d106aa0b8ce24d68b740b7b80c8
2009-06-01 16:53:09 +00:00
drh
b093719a17
Make sure sqlite3_shutdown() completely disables the default pager cache
...
mechanism in pcache1.c. Ticket #3872 . Also fix some comments associated
with configuring the page cache. (CVS 6668)
FossilOrigin-Name: 6240992cef5cb867d7a638f1906d05aa8efd0652
2009-05-22 10:53:29 +00:00