drh
a792dc5c4a
Make sure an OOM error on sqlite3PagerPagecount() is detected and reported
...
out to the interface.
FossilOrigin-Name: 8aecf302a5aac66e43a8cc6c4e0d917f74e9e0de
2010-03-31 23:20:04 +00:00
drh
8d8626fe2b
Report corruption if a database contains a reference that is out of range
...
according to the filesize-in-header database size.
FossilOrigin-Name: a91db0b1cd0b0fbadc5c8fe2eb8863629b411d87
2010-03-31 20:29:06 +00:00
drh
afc266a76a
Clarification of the implementation of SQLITE_STMTSTATUS_FULLSCAN_STEP.
...
No logical code changes - just commenting and layout changes to improve
readability.
FossilOrigin-Name: 06b9ca32255572a699dc51f46f848d0bf01255e1
2010-03-31 17:47:44 +00:00
dan
67a6a40cf9
Clear the column cache before populating aggregate accumulator registers. Fix fo
...
r [883034dcb5].
FossilOrigin-Name: ffc23409c7fb45dc5a8722fad26e26d207bb3213
2010-03-31 15:02:56 +00:00
drh
d3d986d329
Documentation enhancements for the sqlite3_log() interface. No functional
...
changes to code.
FossilOrigin-Name: ba13a11108d7852c61f959cc8a5fc39c25202cae
2010-03-31 13:57:56 +00:00
drh
4b4580b701
Include shell.c and sqlite3.def in the amalgamation ZIP archive.
...
Ticket [e063139eb3f8]
FossilOrigin-Name: 0077ed5cf4e56eb81cfa850fc98e6b033708fc03
2010-03-31 11:52:57 +00:00
drh
97b59a56d2
Increase test coverage following the introduction of the new
...
filesize-in-header logic.
FossilOrigin-Name: dbc2c3c0144d2c76aec04f80892302c532947dc8
2010-03-31 02:31:33 +00:00
drh
b1299158c7
Continuing refinements to the filesize-in-header enhancement.
...
FossilOrigin-Name: 79e22b95038c50b9b7f35e09262805ff6338b59b
2010-03-30 22:58:33 +00:00
drh
bf59283ba2
Add a NEVER macro around a test in btree.c that can not longer be true.
...
FossilOrigin-Name: c117f99236a009778bb7878da464918554391f0a
2010-03-30 15:51:12 +00:00
dan
7ba4597135
Do not crash when compiling an "INSERT INTO tbl DEFAULT VALUES" when tbl has either BEFORE or INSTEAD OF triggers attached to it. Ticket [f3162063fd].
...
FossilOrigin-Name: ca359a3e8048bd11605c41c4b48134c0343e543b
2010-03-30 12:40:32 +00:00
drh
d454214ddd
Change an #if into an #ifdef.
...
FossilOrigin-Name: 371bab5d6534860ce908e52129c64a49946be33a
2010-03-30 11:57:01 +00:00
drh
4b11b0897a
Pull the experimental file-size-in-header changes into the trunk.
...
FossilOrigin-Name: 0092b36c7bbd04bf3826de7805e8a14739390f31
2010-03-29 21:22:00 +00:00
drh
25a80ad0b1
The btree layer now tracks when a database is empty at the start of a
...
transaction and rolls back to that state.
FossilOrigin-Name: 01ef6c1944507c188a83a434ff00e98ad767f744
2010-03-29 21:13:12 +00:00
drh
5e0ccc216d
Fix issues with the io.test script. There is still a problem with a
...
ROLLBACK TO not working on an initially empty database files. And much
more testing is needed.
FossilOrigin-Name: 09786e2a51817d572a01ae7f3621f03fd27fc363
2010-03-29 19:36:52 +00:00
drh
dd3cd977cc
Experimental changes that cause SQLite to use bytes 28..31 of the database
...
header to determine the database size, rather than using the actual database
size. This allows database space to be preallocated.
FossilOrigin-Name: b844ac6fcb72595a71e5c5283ec461309a87ba79
2010-03-27 17:12:36 +00:00
dan
c26c00495f
Increase the estimated cost of using a virtual table as the outer loop of a join when there exists an ORDER BY clause that is not satisfied by the virtual table. Fix for [775b39dd3c].
...
FossilOrigin-Name: 9e075e70f0e2a1ad302d17150cd58f91669a97a6
2010-03-27 09:44:42 +00:00
shaneh
1141ae2463
Fix OOM error on ANALYZE with STAT2 enabled with zero-length data. Ticket [cbd054fa6b].
...
FossilOrigin-Name: c33b38b59f733494ca0bce3f59a669fe7ed76b9f
2010-03-26 01:54:33 +00:00
dan
6d3cb2fbae
Fix for [9861b74ab9]. Correctly handle strings with zero tokens in the fts3 offsets() function.
...
FossilOrigin-Name: d37034f7fc46b83be681247fde97823736c994cc
2010-03-24 15:57:33 +00:00
drh
280799b4ff
Attempt to suppress a warning from Borland Code Guard.
...
FossilOrigin-Name: be278979917336e7186d7830876180154b5280ba
2010-03-24 11:55:08 +00:00
drh
7bca0a3660
More commenting and documentation enhancements in FTS3.
...
FossilOrigin-Name: 892e286709c4a72aae364b85dd43bea525bb1b4d
2010-03-23 18:24:06 +00:00
drh
d6291c9155
Fix up obsolete comments in FTS3 to conform to the latest nomenclature.
...
Add new comments to better explain FTS3 operation.
FossilOrigin-Name: 3e4a0082170155b5b779afd075a3ee650530ca68
2010-03-23 15:46:41 +00:00
drh
486ff4897e
Close the auxiliary database db2 at the end of the crash8.test script.
...
FossilOrigin-Name: 0fbdc431e832200efd87efd68456d5906397a219
2010-03-23 15:29:49 +00:00
dan
e07b606522
Add an extra test case for crash recovery.
...
FossilOrigin-Name: f2326dad4e47b2657be302e194970967960eb1c0
2010-03-22 17:38:11 +00:00
dan
bb23e7f91b
After a rollback that writes or truncates the database file, sync the database file before invalidating the journal contents.
...
FossilOrigin-Name: b21b911f233842357af9ccc14525bbd48a38edb1
2010-03-22 17:13:53 +00:00
drh
acd63a5a62
Disable the "init.test" test script when compiled with SQLITE_THREADSAFE=0.
...
FossilOrigin-Name: ad68fa65bbd6b82e69fe8c36e4c459ea2ced0f8c
2010-03-22 15:47:38 +00:00
dan
98f0c3619f
Change the formatting of the preprocessor macros surrounding the compileoption interface in sqlite.h.in. This is so the documentation produced by parsing this part of sqlite.h.in is formatted similarly to the docs for the deprecated interfaces (with the #ifndef visible on the webpage).
...
FossilOrigin-Name: 161958d11f2ef6ce4d7ba69afea03e0a6764cc1b
2010-03-22 04:32:13 +00:00
drh
f3609eeba7
Put an ALWAYS() around a condition in pcache.c that must always be true in
...
the current implementation.
FossilOrigin-Name: 88810cd091b33f2c56f842e32cafbac5d34d7412
2010-03-19 19:23:51 +00:00
dan
3f0d9d3846
Have the xUpdate() method of the rtree module virtual table implementation set the *pRowid output variable when inserting a row. Fix for [dd3ba6063a].
...
FossilOrigin-Name: f31d22489d44701c89cb13c663dfa1a6cc04f900
2010-03-19 19:02:27 +00:00
drh
f92a4e35c5
Store the SQLite version number of the last writer in bits 96..99 of the header.
...
FossilOrigin-Name: 146d4f5d3459235d8b2d27a5d77beb7645f75185
2010-03-19 16:55:47 +00:00
drh
e9c2d34c5b
Make sure the in-journal boolean vector is cleared and released when ending
...
a transaction. This fixes an obscure problem with the previous check-in.
FossilOrigin-Name: 69d749d93d6565b848ce5c07f2738d144c6564bf
2010-03-19 16:52:53 +00:00
drh
ba726f4939
Do create, open, or initialize the rollback journal until something actually
...
needs to be written into the journal. That way, expensive filesystem
operations are avoided if the transaction ends up being a no-op.
FossilOrigin-Name: b78e58ae1570ab4d66a69db445a752c6456038a0
2010-03-19 15:48:13 +00:00
dan
3b6f4c06ac
Rewrite a couple of queries used internally by FTS3 to take advantage of the "SELECT max(x) FROM ..." optimization.
...
FossilOrigin-Name: b7e42ae77443b33e0ab83265064830594094dc7c
2010-03-19 06:59:19 +00:00
drh
71663ad0c1
Mark internal routines as "static" in FTS3.
...
Ticket [b1552d0fa7].
FossilOrigin-Name: 39b34ac4a7bd06144b3630c0ad71bad0615418b6
2010-03-18 16:34:44 +00:00
drh
3a3dd3ac8d
Improved error message when the right-hand operand of MATCH in FTS3 is
...
not a valid search expression. Ticket [170872f1c3].
FossilOrigin-Name: bea9258643edfeb98ebf59d93fa18a14e4221fea
2010-03-15 20:53:01 +00:00
drh
9396a41e6e
Fix FTS3 so that it does not run illegal SQL and cause a spurious log
...
message. Ticket [42d45a693e6].
FossilOrigin-Name: f186b6a61909be1d65b76a6fbaa42f57bbd0d1e5
2010-03-15 19:27:55 +00:00
drh
ed37690afd
Store the database size in pages in bytes 28..31 of the header. Currently
...
this is for forensic use only, but it might be used in the future.
FossilOrigin-Name: 59f75bba028e1107ed41d447c27aef31a6656b68
2010-03-13 02:15:49 +00:00
drh
107b56e86d
Add assert()s to mem2.c (activated by SQLITE_MEMDEBUG) which verify that
...
memory alloctions that might have come from lookaside are always freed
using a lookaside-aware free routine.
FossilOrigin-Name: c2af2164cf7b279ebb3e08201561348be6e765df
2010-03-12 16:32:53 +00:00
drh
735b9cbb96
Move the ctime.c source module near the beginning of the list of files
...
inserted into the amalgamation so that #defines that are overridden in
other modules will not effect the values returned by
sqlite3_compiletime_used().
FossilOrigin-Name: bb591802fff5a99ae504509e812bb34e762eaef0
2010-03-10 23:13:53 +00:00
drh
63da089314
Add the SQLITE_DBSTATUS_CACHE_SIZE verb for sqlite3_db_status(). The
...
highwater mark does not yet work on this verb.
FossilOrigin-Name: 418c6d8113bc337556b0d47acfd6a7d865d1121f
2010-03-10 21:42:07 +00:00
drh
9f8da32662
Remove the "experimental" markings on most interfaces that have been around
...
for multiple releases.
FossilOrigin-Name: d670e8bd51c794e2d7ea365ca553c2b74cf5a3a3
2010-03-10 20:06:37 +00:00
drh
c92271c549
Fix typo in a comment in the sqliteInt.h. No changes to code.
...
FossilOrigin-Name: 1716821ddb992fd6d1330604d4f59586bf056b00
2010-03-10 14:06:35 +00:00
drh
1d2b77944d
Version 3.6.22
...
FossilOrigin-Name: 4ae453ea7be69018d8c16eb8dabe05617397dc4d
2010-03-09 19:31:43 +00:00
shaneh
942179f37a
Fix a test script issue affecting the TCL backup tests under Windows.
...
FossilOrigin-Name: 20c400e73a9b6586b97de61da0d9f3d9a01dbebc
2010-03-09 15:10:30 +00:00
shaneh
6d8096e675
Version 3.6.23 release candidate 4
...
FossilOrigin-Name: 3445eda0295940e00c33cc87aedaf586fa1b1b63
2010-03-09 14:41:57 +00:00
shaneh
1da207e676
Minor changes to silence compiler warnings on various MSVC builds.
...
FossilOrigin-Name: 115c978b6bbc110119a1b2f178cc30b33aaa27ef
2010-03-09 14:41:12 +00:00
drh
ed6adb447f
Version 3.6.23 release candidate 3
...
FossilOrigin-Name: 747baea5c32f9a5de4b46a1fd1b24bd509c9a85e
2010-03-09 13:12:40 +00:00
drh
0b2f8ba965
Check-in [87a6a9970b] did not completely disable FTS4. This check-in aims
...
to finish the job.
FossilOrigin-Name: 0259b6299e435b3c3a7ca33df8c38c8a5dc84a61
2010-03-09 13:02:09 +00:00
drh
c7594fc635
Version 3.6.23 release candidate 2
...
FossilOrigin-Name: 73f4d292dc66ac41456f2ebddada82c7f5633431
2010-03-09 12:35:50 +00:00
drh
40d238e09f
Disable FTS4 (which is incomplete and not ready for publication) to prevent
...
accidental use.
FossilOrigin-Name: 87a6a9970b8cea25fc5f8ff03d87762dd1166899
2010-03-09 12:35:21 +00:00
drh
e396bfe6fd
Version 3.6.23 release candidate 1
...
FossilOrigin-Name: 30e9f966e7bc517f69796828026c8b23337c356b
2010-03-09 05:01:49 +00:00
drh
3517324ddc
Add NEVER and assert macros and explanatory comments for unreachable
...
conditions.
FossilOrigin-Name: ffb6596e6c80e284c1542b03f2c7bbfce0bd87d9
2010-03-08 21:40:13 +00:00
dan
3b4aae569a
Correct an assert() in mem2.c (test code only).
...
FossilOrigin-Name: 1a88e31b03e090732243a70bec082b32ecf77c43
2010-03-08 15:17:53 +00:00
dan
01d3856428
Do not run the stmt.test script as part of the inmemory_journal permutation.
...
FossilOrigin-Name: 049cadf92bca5645a6f398eb83940344643fcacf
2010-03-08 10:32:38 +00:00
drh
29391c5b49
Make sure the dbFileVers field in the Pager object is properly initialized
...
even if there is an I/O error while reading its content off of disk.
FossilOrigin-Name: 81ff698f62c8133818a3db1997ae7427705da23f
2010-03-05 20:17:45 +00:00
dan
5fea90762a
Change a condition in sqlite3VdbeMemShallowCopy() to avoid accessing an unitialized variable (doing so was not dangerous, but caused a valgrind error).
...
FossilOrigin-Name: 4793c381c6ff4e4d25433298be30028721a9cb67
2010-03-05 18:46:12 +00:00
dan
89374d2309
Fix a one byte buffer overread in fts3.
...
FossilOrigin-Name: 6e3e014af91601ed1f3a9cbe23f7c4260a4d177f
2010-03-05 17:27:01 +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
f8b4d8c682
Adjustments to #ifdefs so that the #include of <sys/mount.h> is not included
...
twice, because that confuses the amalgamation builder.
FossilOrigin-Name: 27413fc8dd52b754b4be9344a66bb9e0d752d48e
2010-03-05 13:53:22 +00:00
drh
84a2bf67d8
Adjust some #ifdefs so that the build works on Mac both with and without
...
SQLITE_ENABLE_LOCKING_STYLE.
FossilOrigin-Name: 0cc981f1ccc2c99b87eb968590ad18b2d3ebf37b
2010-03-05 13:41:06 +00:00
dan
60d4a30453
Fix for [9abd6aa831]. Do not overread a buffer used for an %q or %w conversion with a precision specifier.
...
FossilOrigin-Name: 5e472896e02eed05c6c0886a48acd0bdc7a38731
2010-03-04 17:58:45 +00:00
drh
69ef70362a
Fix an uninitialized variable in printf when compiling with
...
SQLITE_OMIT_FLOATING_POINT.
FossilOrigin-Name: 14ad62b9a54dba5c5a2d4a994bcd4be6ab6e711f
2010-03-04 17:11:31 +00:00
drh
c05a9a8a57
Suppress harmless compiler warnings.
...
FossilOrigin-Name: fc2c63ac78ba7d48fe3232f88093e980ea34eaa9
2010-03-04 16:12:34 +00:00
drh
a64fa9123e
Increase the maximum length of an sqlite3_log() result string. Provide more
...
details on the statement abort log message.
FossilOrigin-Name: 5322d1df5ba981001d248b7fb2ee02281e4f9723
2010-03-04 00:53:32 +00:00
drh
ccd0489baa
Pull the latest Lemon updates from the lemon-update-2010 branch into
...
the trunk.
FossilOrigin-Name: 84d760bfc1d219fda99901061bb5db2cafe9eb1d
2010-03-03 22:43:37 +00:00
drh
7c0c460fff
Modify the sqlite3_log() interface and implementation so that it never
...
uses dynamic memory allocation - to avoid deadlocking when called while
holding the memory allocator mutex.
FossilOrigin-Name: 28d1bc98d60319b10af427072037a0121bc76259
2010-03-03 22:25:18 +00:00
icculus
7b429aa6a8
Fixed compiler warning on Visual Studio.
...
FossilOrigin-Name: 83495128c820e963c70d11c3196f81d8cf01f867
2010-03-03 17:09:01 +00:00
icculus
d286fa6691
Whoops, that shouldn't have been in the merge. Removed buggy code.
...
FossilOrigin-Name: 643728003218c9841425dffb6fe506763859fd37
2010-03-03 17:06:32 +00:00
icculus
d49c1aa7a9
Use Strsafe() instead of strdup(). Fixes Visual Studio complaining.
...
FossilOrigin-Name: 89d8f98ea6d4d8bf871e08a8d8d1f0d2fd11aec1
2010-03-03 17:00:15 +00:00
icculus
05ac70ee0a
Merged trunk to lemon-update-2010 branch.
...
FossilOrigin-Name: 88b466bae47d006c48eff42ab271f05ff56d5ed1
2010-03-03 16:54:58 +00:00
dan
3bbe761c9b
Fix some extra instances of the constants addressed by [83e47ca006].
...
FossilOrigin-Name: 0354ab279f0ea9915a14d1ed972b4aa6b5a27fd1
2010-03-03 16:02:05 +00:00
drh
0b2864cb34
Factor out constant expressions in sqlite3GetVarint() to work around
...
nuisance warning messages from the RVT compiler.
FossilOrigin-Name: 83e47ca0069de259e98798d84d88301a5b4b6d2e
2010-03-03 15:18:38 +00:00
dan
0f831771c3
Modify the command line tool to disable all mutexes. The command line tool is single-threaded.
...
FossilOrigin-Name: 00e5679047a0a96dc4396aae5e061909faf3b81d
2010-03-03 07:23:12 +00:00
drh
2ec050c5b1
When TEMP files are in memory, also put the massive TEMP file used by
...
the VACUUM command in memory.
FossilOrigin-Name: 9daf4e7d07769f25b3a579d80e7fada4e52344b1
2010-03-02 23:34:54 +00:00
drh
8bb76d39a0
Rename the sqlite_compile_option_*() SQL functions to sqlite_compileoption_*()
...
for consistency with the C/C++ interface.
FossilOrigin-Name: dd4962aa34c4dd118d2cb15465384636eacc64d5
2010-02-26 16:37:47 +00:00
drh
71caabf0cc
Remove the compile_option pragma (retaining compile_options - with an "s").
...
Updates to documentation.
FossilOrigin-Name: 733778df996a2dda7c31ff7b544cb6f9a6ed4c97
2010-02-26 15:39:24 +00:00
dan
2ed11e7b18
Avoid a buffer overwrite that can occur with a corrupt database if secure-delete is enabled.
...
FossilOrigin-Name: 7bdb1e05faceddbb0b8e3efee7d070ad8c4611a3
2010-02-26 15:09:19 +00:00
drh
383d30f483
Avoid incorrect compiler warnings by doing a couple of needless
...
variable initializations.
FossilOrigin-Name: 8f29490da62df07ea922b03cab52b6edd2669edb
2010-02-26 13:07:37 +00:00
drh
0d06d98980
Increase the version number to 3.6.23 in preparation for the next release.
...
FossilOrigin-Name: b5835d3e3d7f3fbf04431f9afe27dfef7b7f23c9
2010-02-26 12:58:50 +00:00
shaneh
84f4b2f237
Minor changes to silence some compiler warnings with MSVC.
...
FossilOrigin-Name: 4927c62d6214d93e582bf1266215ed3519630c15
2010-02-26 01:46:54 +00:00
drh
e294da02ba
Fix to the database connection validity checker. Other test coverage
...
enhancements.
FossilOrigin-Name: 0f6291bbbd31673e2a65f38c7fc364c33719d25e
2010-02-25 23:44:15 +00:00
drh
bee8065e37
Test coverage enhancements. Additional documentation detail on the new
...
sqlite3_log() interface.
FossilOrigin-Name: d986e9289388fd72257b26cb2f9c972177255cd4
2010-02-25 21:27:58 +00:00
dan
887d4b2b43
Add experimental fix for corruption detection problem. This may well be revised yet.
...
FossilOrigin-Name: 1cc4be7ebc463921827e61da724f0de946c061f6
2010-02-25 12:09:16 +00:00
shaneh
88ba618ee7
Fixed numbering of a few tests; minor tweaks on others.
...
Added a couple new tests to stress previous simplifications.
FossilOrigin-Name: 9b18dfd19e825b09c1d246c826e179b9892308df
2010-02-25 18:07:59 +00:00
drh
264a2d4de1
Minor simplifications to the compile-time option reporting functions and
...
pragmas to facilitate coverage testing.
FossilOrigin-Name: 633d874783a94f923ff8240f9153764033d37a89
2010-02-25 15:28:41 +00:00
drh
4611d925a9
Expire pragma statements when reset, even if they were not run to completion.
...
FossilOrigin-Name: 78351d289bba83e536b64666c566b7bfc57351da
2010-02-25 14:47:01 +00:00
drh
5e767c5793
Make sure the ON clause of a LEFT JOIN does not cause an index to be
...
used to speed access to a table to the left of the join.
Ticket [ebdbadade5]
FossilOrigin-Name: f0ae251abb9e8a8793f46a30b79b2ce541cf14d5
2010-02-25 04:15:47 +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
shaneh
915c8bdbbd
Changes to compile time option diags to report values for some defines.
...
Added test cases to TCL test suite (ctime.test).
FossilOrigin-Name: dd480f62afa56ff85c2dd57ee7a16eee427e823f
2010-02-24 19:36:10 +00:00
drh
cda455b7ff
Add a sqlite3_log() call on anonymous constraint failures.
...
Fix the output of test cases having to do with improved reprepare reporting.
Fix the VACUUM command to report more helpful error messages when things go
wrong.
FossilOrigin-Name: 69a493182fd77bec91598516ee42c11a6db1d039
2010-02-24 19:23:56 +00:00
drh
7823006011
Fix an incorrect ALWAYS() macro in vdbeapi.c. Fix the output of a few
...
test cases that changed due to better error propagation out of reprepare.
FossilOrigin-Name: a8c984c1d6cb6e2fc95a07eb32befeea122e8ed3
2010-02-24 18:40:39 +00:00
drh
31caa42afd
Remove an unused variable from rtree.
...
FossilOrigin-Name: 8e60d3995a1ea940de9751dd3bbd7ef41b0bb00a
2010-02-24 18:25:58 +00:00
drh
a6129fa79a
Enhancements to the way errors are reported up when an automatic
...
statement reprepare fails.
FossilOrigin-Name: 1a6d4bb130382564093b6370818ae4a7633f4074
2010-02-24 17:15:19 +00:00
drh
5a29d9cbc5
Fix an assertion fault that occurs when two different virtual tables are
...
used in a single UPDATE statement.
Ticket [d2f02d37f52b].
FossilOrigin-Name: ff61e0fd802c46c2d84c4b0c0bc8a0f34959bb25
2010-02-24 15:10:14 +00:00
drh
78e0fcf914
Fix the stmt.test test script so that it works with SQLITE_TEMP_STORE=3.
...
FossilOrigin-Name: 8bf710ce6dfab0e6fd4de7d6d3157008cc70d192
2010-02-23 21:08:40 +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
dan
39547b418b
Fix a segfault that can occur if a malloc fails in ATTACH in shared-cache mode.
...
FossilOrigin-Name: e37137376a2b23062e2625b5285299b33630b326
2010-02-23 11:05:26 +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
dan
440ac39bc0
Fix a segfault that can occur if a malloc fails in ATTACH in shared-cache mode.
...
FossilOrigin-Name: 875f8fa32708b8dbf314fd7056fac2fefdacfa36
2010-02-23 10:56:15 +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
127f9d75e2
Add the ".log" command to the shell. This shows that some errors are logged
...
multiple times and other errors are never logged at all.
FossilOrigin-Name: 6d910245ad0097521cf1619449cc3d202137b8b8
2010-02-23 01:47:00 +00:00
drh
5bd1d051e8
Remove the ".genfkey" command from the shell. We've had foreign-key support
...
in the core since 3.6.19. Anyone who still needs the simulated foreign-key
triggers can always generate them with an older version of the shell.
FossilOrigin-Name: c4401fc93b66c5339422d7e765a4a32b1ef96bdb
2010-02-23 01:01:58 +00:00
drh
4ec84f35e2
Fix an assertion-fault/segfault problem that comes up when trying to
...
VACUUM an auto-vacuumed database with a large schema.
Ticket [da1151f97df244].
FossilOrigin-Name: 86d50ce57feb78440956192e37a03686ffa1e196
2010-02-22 23:17:42 +00:00
drh
a0f3509606
Merge in the massive clean-up and ANSI-fication of Lemon carried out
...
by Ryan Gordon. There are no functional changes to SQLite itself - Lemon
still generates exactly the same parsing automaton from exactly the same
grammar.
FossilOrigin-Name: 1e8b842039cc06b57a321226633c55b94eb8dcd7
2010-02-22 19:37:44 +00:00
drh
a756466349
Log all error messages if logging is enabled.
...
FossilOrigin-Name: a8076aede33c07e9a2aaa05be8a888f37b45e41c
2010-02-22 19:32:31 +00:00
shaneh
195475d839
Changes to pragma integrity_check to check rowid order. Tests of same in corruptE.test.
...
FossilOrigin-Name: cae47c5b09cb122689bcb020a66ce14982cc4aa8
2010-02-19 04:28:08 +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
dan
da730f6eb4
Allow statements like "REPLACE INTO tbl(rowid) VALUES(...)" to run without a statement journal as long as there are no triggers, foreign keys or indexes.
...
FossilOrigin-Name: 0e4225804010cb0e3f254e2dbffc4fe0e7d982ce
2010-02-18 08:19:19 +00:00
icculus
866bf1e6a2
Repore error if the grammar has multiple %type lines for the same nonterminal.
...
FossilOrigin-Name: 721f33e7221c5fc907e9e293ac3242843f4fcfb7
2010-02-17 20:31:32 +00:00
icculus
d0d97b09c6
Fixed % formatting in some printf-style strings.
...
FossilOrigin-Name: f96add898f096cfc1e435c625ce74093d790b3c7
2010-02-17 20:22:10 +00:00
icculus
10163b7d82
Corrected error message (cut-and-paste bug).
...
FossilOrigin-Name: b3839f2aad00844c578d496c40481a39c018e4f6
2010-02-17 20:19:50 +00:00
shaneh
ad9f9f6693
Consistent use of #ifdef for SQLITE_HAS_CODEC to avoid confusion.
...
FossilOrigin-Name: 34a3413a5318050254b246ad859c91c134516a32
2010-02-17 17:48:46 +00:00
icculus
a3191195af
Removed unused variables.
...
FossilOrigin-Name: ca570a02f5c5215098050de4eb551b2dcd11b1fd
2010-02-17 05:40:34 +00:00
shaneh
147e176aff
Avoid using the internal printf routine for round(x,y) in the common case where y==0.
...
FossilOrigin-Name: d76ad8b3c494ffb4e670da0e92a1f8dbf7f48daf
2010-02-17 04:19:27 +00:00
shaneh
35c1a793ce
More rounding tests.
...
FossilOrigin-Name: 3863638b8cd8d41cf4abf8b0d618892de845e91f
2010-02-17 03:57:58 +00:00
shaneh
030ea31797
Remove duplicated assignment in realloc.
...
FossilOrigin-Name: c419955df0ad0507ecb3869786d48458366d4e8f
2010-02-16 22:06:30 +00:00
shaneh
4a0b43caad
Added additional rounding tests.
...
FossilOrigin-Name: b8ee76bc1fd355110149bd9135dd31a5724c2ac6
2010-02-16 22:00:35 +00:00
icculus
8e15802812
Removed %expect directive, on drh's advice.
...
FossilOrigin-Name: b43ac3309e77dc8ea2952bf62da6eaad5aef6653
2010-02-16 16:09:03 +00:00
icculus
15a2cec1ed
Patched to compile. Accidentally removed va_list declaration.
...
FossilOrigin-Name: 673d470c0c14106da05461d355a0c09e5f62851d
2010-02-16 16:07:28 +00:00
dan
2b0ef4725f
Change a C++ style comment in os_unix.c to use normal C style commenting.
...
FossilOrigin-Name: 7a1933097f2a95bd495c1621fca99e8952a1b25a
2010-02-16 12:18:47 +00:00
dan
5dcb3937b6
Fix for [e9a9fde1f4]. When opening an existing rtree, determine the node size by inspecting the root node of the r-tree structure (instead of assuming it is a function of the page-size).
...
FossilOrigin-Name: ebc9433fddf78ef7b4237686951d8d79c1c98f03
2010-02-16 10:59:40 +00:00
drh
9a6ffc845b
Fix the ALTER TABLE RENAME command so that it converts FOREIGN KEY constraints
...
in ATTACH-ed and in TEMP tables as well as in the main database.
Ticket [13336e9c3c8c3f].
FossilOrigin-Name: ab197d0aaf18016ac2dd3674f49bea5f1556451c
2010-02-15 18:03:20 +00:00
drh
622d288790
When creating a trigger on a main database table when there is a TEMP table
...
with the same name, make sure the trigger is bound to the main table.
Ticket [985771e11612].
FossilOrigin-Name: ec914af32675e472694270d46f3ba2214eb2fe90
2010-02-15 16:54:55 +00:00
drh
a8c62df904
Fix a compiler warning in shell.c. Updates to comments in trigger.c.
...
FossilOrigin-Name: c727601eecd85a26dbd4fc36823d77bec34da3c3
2010-02-15 15:47:18 +00:00
drh
2d8d7cebe1
Fix a typo in the documentation for the OP_OpenPseudo opcode.
...
FossilOrigin-Name: 9acfb0694059c80b2efc08a60232d4be91575c32
2010-02-15 15:17:05 +00:00
icculus
1c11f74a8a
Removed the 80-char line formatting for ErrorMsg(), on dhr's suggestion.
...
FossilOrigin-Name: 132ea4e5d7f69fc307904f5086a72d8532e5aac6
2010-02-15 00:01:04 +00:00
icculus
9e44cf1a03
Make Lemon able to compile as C++ code.
...
FossilOrigin-Name: 75a1060b29eb4122487152b068e7d1073eb0ccab
2010-02-14 17:14:22 +00:00
icculus
d191282111
Added option to not clip error output.
...
This is useful for IDEs and other tools that benefit from full path
information, so they can jump directly to the error line in the source code.
FossilOrigin-Name: 90602030d18152a934644db119a291aa38fe3fd4
2010-02-14 05:42:46 +00:00
icculus
f5ad824071
Delete output files if this is a failed run.
...
Otherwise, the fail will stop a Makefile from progressing, but if you
immediately run the build again, Make will think the output files are up to
date, since they are newer (albeit incomplete/incorrect).
FossilOrigin-Name: e38c08d9cdeb0476ac1a77cd3f29f547a8205835
2010-02-14 05:34:42 +00:00
icculus
42585cf73a
Added %expect directive, to consider a certain number of conflicts "correct."
...
This has the side effect of changing the process exit code to never overflow.
FossilOrigin-Name: d8bab8cf0bc3fbd4c489c31a65d724dda2944d83
2010-02-14 05:19:56 +00:00
icculus
3e143bdfaf
Added -T option, to specify a template filename on the command line.
...
The default is still "lempar.c", though.
FossilOrigin-Name: e6cbe1e5ee80db282a41951b805b7bd8b13adf28
2010-02-14 00:48:49 +00:00
shaneh
1f4222f84c
Merged tracing and initialization changes from mutex_unix.c.
...
FossilOrigin-Name: 942aa1f6a91655356cc32a8185cb447331d405dc
2010-02-13 02:31:09 +00:00
drh
af034ed685
Enhancements to the secure_delete pragma to make it easier to use.
...
FossilOrigin-Name: 2bb38bb96ff6b9fb91dd1cf214041cf113ac5508
2010-02-12 19:46:26 +00:00
drh
5b47efa662
All the secure-delete setting to be changed at run-time using a pragma.
...
The SQLITE_SECURE_DELETE compile-time option determines the default setting.
FossilOrigin-Name: f72f8a870a0fc98a9f2b564ffafe7946bbce506e
2010-02-12 18:18:39 +00:00
dan
56f2996b48
Fix a segfault in fts3 that may occur if the snippet, offsets or matchinfo functions are used in a query that does not contain a MATCH clause.
...
FossilOrigin-Name: 14ab536a96f81595ab8c3dcd4b72075f1a827c8b
2010-02-10 05:33:17 +00:00
drh
309e6555a5
Make sure file descriptors are closed before unlinking in VxWorks.
...
FossilOrigin-Name: f64b81f13de4875343c752e7183bf61032dc9594
2010-02-05 18:00:26 +00:00
shaneh
6885de360d
Avoid truncating non-in-memory sub-journals when releasing a savepoint for a small performance improvement.
...
FossilOrigin-Name: 27dc5b1c52eaa5f99cf44ee31204f62598fbf011
2010-02-05 16:28:00 +00:00
drh
6658cd9a74
Remove the use of 64-bit math in the offset computations of
...
the OP_Column opcode for a small performance improvement.
FossilOrigin-Name: 61a2c8d4d64c28119e9f06eb42f9c0437ba7a7bd
2010-02-05 14:12:53 +00:00
drh
a963896796
Fix a performance glitch that appears for large transactions.
...
FossilOrigin-Name: 26cb1df73504d5d883cf0967e57b46aa062d0b00
2010-02-04 17:38:31 +00:00
drh
b4a1fed2ea
Add a new full-text search variant that tracks the total number of documents
...
and document sizes, to make ranking search results easier. Currently
called FTS4.
FossilOrigin-Name: 1b6e6094c88214e02c9e3638932997ac20bfe413
2010-02-03 19:55:13 +00:00
drh
0ae0bfd486
Fix a C++-ism that snuck into sqlite3_finalize().
...
FossilOrigin-Name: fb96f2a2c63a061a90733448c4af14384893d409
2010-01-31 15:14:37 +00:00
drh
7c9c98684c
If an OOM occurs while setting the page size for the TEMP database, be sure
...
that error gets reported back out to the interface layer.
FossilOrigin-Name: 6487e70a1e18bb01ee692e250b41c8652e34a87c
2010-01-31 14:18:21 +00:00
shaneh
959dda6d94
Tweaks for consistency to the SEE and CEROD API declarations in sqlite3.h.
...
FossilOrigin-Name: 299f74567b1b97a1fdc0a620ef382cfd24941809
2010-01-28 19:56:27 +00:00
drh
10a76c90e4
Make the TEMP file tables use the page size set for the main database.
...
Ticket [b80eeab588c4].
Also copy over the changes from apple-osx check-in [7c3bede3f2].
FossilOrigin-Name: 5dcfb0c9e420d27e54a299b3991b98776651a507
2010-01-26 01:25:26 +00:00
dan
d3789b98a7
Fix two similar problems in fts3 that meant that an OOM error could cause a memory leak.
...
FossilOrigin-Name: 701ef64b3dbf45e52043e79e528002bd4b7a21e2
2010-01-22 15:48:18 +00:00
drh
5cb7434c72
Fix a segfault that can occur when the LHS of a LIKE operator has an
...
undefined collating sequence. Ticket [1258875e07553].
FossilOrigin-Name: a82e6b4585b9ddba581204976cd5ea8704339185
2010-01-21 23:11:24 +00:00
drh
4b5db5ac9c
Redesign the string to numeric value caster so that it is more likely to
...
work on unusual floating point hardware.
FossilOrigin-Name: 8bb1104c6f02c88eb09ed345890be71dee099485
2010-01-21 01:53:07 +00:00
dan
14d4cc4356
Fix a problem with handling OOM errors in fts3.
...
FossilOrigin-Name: f9c54e95ecf1c36c4750bb151e91d81c1d1bd596
2010-01-20 14:25:37 +00:00
drh
7ed97b9de9
Move the Apple OS-X VFS changes into the trunk.
...
FossilOrigin-Name: 571594bfbe89d9949bdb8b07712e96d0a3467c6e
2010-01-20 13:07:21 +00:00
drh
87f5c5f16e
Manually copy over the rebustness fixes from the apple-osx branch.
...
FossilOrigin-Name: 095c74ea6260096f6a600fdc0edccf7ea24aace4
2010-01-20 01:20:56 +00:00
shaneh
b7977c5539
Fix a problem with the CLI where not all SQL commands were being echoed.
...
Added tests of same to tools/shell2.test. Ticket [eb620916be].
FossilOrigin-Name: 7080ae3bc3828168483ac23d5b8976d67ea5089e
2010-01-18 18:17:10 +00:00
dan
1d0f43f0ae
Fix test numbering in fts3snippet.test.
...
FossilOrigin-Name: 34f6854685f00158bc536dd53ac5bc20e19fe071
2010-01-15 17:33:49 +00:00
dan
3996a06236
Add coverage tests for fts3_snippet.c. Also fixes related to the same.
...
FossilOrigin-Name: 5e9d8ccae9731f380527463ef87ddcd216b4b721
2010-01-15 17:25:52 +00:00
dan
0153c35db5
Add a test to e_fts3.test for the matchinfo example in fts3.html.
...
FossilOrigin-Name: e5336edc55313afac11ea085257cb6e75a0287a7
2010-01-14 11:45:03 +00:00
dan
ceafa47b41
Fix some matchinfo related test problems in fts3rnd.test.
...
FossilOrigin-Name: da7abe05887d1ad52552d8ce3a153a0a76f96c5a
2010-01-14 11:17:05 +00:00
drh
a2460e0730
Comment cleanup in sqliteInt.h.
...
FossilOrigin-Name: 67c3aea563e019083f0ed87b57982a0379637d4f
2010-01-14 00:39:26 +00:00
drh
85c8f291e3
Make the sqlite3IsNaN() function a macro that evaluates to FALSE when
...
compiled with SQLITE_OMIT_FLOATING_POINT.
FossilOrigin-Name: 56f232d562bc239103a5afd2e64c4b926a20de08
2010-01-13 17:39:53 +00:00
drh
90038f8b07
When SQLITE_OMIT_FLOATING_POINT is defined, the floating-point formats in
...
the sqlite3_*printf() functions should pull an int64 off of the parameter
list and ignore it.
FossilOrigin-Name: 3fd6f9ad06b786116ca18c1e812363d30cd3060e
2010-01-13 16:43:27 +00:00
drh
c5a7b51c69
When SQLITE_OMIT_FLOATING_POINT is defined, make sure the result of a
...
mathematical operation is always tagged as an integer.
FossilOrigin-Name: e12da0d316fcc34a75554d59fe6d11d9f0e059e2
2010-01-13 16:25:42 +00:00
drh
52d14521fa
Make the doubleToInt64() routine a pass-through when using OMIT_FLOATING_POINT.
...
FossilOrigin-Name: 417167182efaa1da74008952137de3e00c23494e
2010-01-13 15:15:40 +00:00
dan
33d58bcee9
Add tests to backup.test to verify that SQLite behaves as expected when the source database is modified mid-backup.
...
FossilOrigin-Name: 985d3bec07430536485056bcd2ae0471791601ed
2010-01-13 14:08:01 +00:00
drh
44dbca83c7
Comment out unused code when SQLITE_OMIT_FLOATING_POINT is selected.
...
Added testcase() macros to boundary conditions in util.c routines.
FossilOrigin-Name: dfc6595d347ea87923a857778b68751103f535d2
2010-01-13 04:22:20 +00:00
drh
7ec5ea942e
Make the sqlite3_result_double() interface work the same as
...
sqlite3_result_int64() when SQLITE_OMIT_FLOATING_POINT is defined.
FossilOrigin-Name: 61df5986600b6c9e6d5c42efc0067a27fe54251f
2010-01-13 00:04:13 +00:00
drh
6a9c64b363
Make sure internal queries are well ordered, even when the
...
reverse_unordered_selects pragma is in effect.
Ticket [eb942c64a157].
FossilOrigin-Name: 0209f17180065d9c213b6c437be1c3c40660665f
2010-01-12 23:54:14 +00:00
drh
2b1e690ff1
Fix the implementation of CURRENT_TIMESTAME and CURRENT_DATE when
...
SQLITE_OMIT_DATETIME_FUNCS is defined.
FossilOrigin-Name: eb98265b59db59965b468a7070739921da55efc4
2010-01-12 19:28:20 +00:00
dan
f596da5cc6
Update comments in fts3_snippet.c.
...
FossilOrigin-Name: dd9689b7c31861484f8d8062478ae73d3c940902
2010-01-12 17:57:30 +00:00
drh
13573c71d8
Use #ifdefs to disable unused code when SQLITE_OMIT_FLOATING_POINT is defined.
...
FossilOrigin-Name: 66bab8561926963a87f15ad559cba36545c9892c
2010-01-12 17:04:07 +00:00
drh
ab2f1f9560
Add a few documentation evidence comments to the built-in function
...
implementations.
FossilOrigin-Name: 8bd0f8147dbf75367243b3eecfb705da6e794ab7
2010-01-11 18:26:42 +00:00
dan
9a34020f05
Modify snippets code to run more efficiently. And to avoid a bug relating to snippets based on full-text queries that contain duplicate terms.
...
FossilOrigin-Name: a2b1183d9e9898d06d623b342bbb552e85a9b3f6
2010-01-11 12:00:47 +00:00
dan
1a54b8ecfa
Fix handling of an OOM error in the fts3 offsets() function. Fix a couple of snippet related test cases in e_fts3.test.
...
FossilOrigin-Name: 14dc46a74aafe44c0bf7dffd26268395b2c5edb2
2010-01-09 07:33:54 +00:00
drh
819443e506
Update comments in fts3.c to more accurately describe the doclist format.
...
FossilOrigin-Name: e424a0307359fee6875424c10ecad1a10acfba0e
2010-01-08 23:01:32 +00:00
shaneh
0a7905295c
Added option to dump pages.
...
FossilOrigin-Name: 08c545f03082421166a21274b39e07bb348c17e6
2010-01-08 04:50:22 +00:00
shaneh
d61fa23290
Minor tweaks to restore_jrnl.tcl utility script.
...
FossilOrigin-Name: b97aca1200d959a1e7c08dd4e9dbce4724342119
2010-01-07 22:02:34 +00:00
shaneh
ea6800c5c4
Small tool that attempts to repair a journal header.
...
FossilOrigin-Name: 05b18b5f6a38f513ff49656faada725eb44715b7
2010-01-07 21:49:48 +00:00
drh
1d9da70ad7
Fix the expression comparison logic to take the COLLATE operator into account.
...
Ticket [360c6073e197]
FossilOrigin-Name: 44bb1bfe5dedd8054ddd933941ee4112ed8d3b68
2010-01-07 15:17:02 +00:00
dan
93a696f61b
Changes to test code so that testfixture compiles when OMIT_SHARED_CACHE and OMIT_UTF16 are defined.
...
FossilOrigin-Name: d6ee5ff6c815e3aadd92d331560b529394eae661
2010-01-07 11:27:30 +00:00
dan
3174598a64
Fixes to problems in FTS3 snippet() function found by th3 tests.
...
FossilOrigin-Name: 3b5ccd2682176929f4da8a3f39a7e8f58b179f18
2010-01-07 10:54:28 +00:00
drh
8dc3e8f3e6
Another attempt at fixing the table generator in lemon. Again, this does
...
not effect the SQLite grammar.
FossilOrigin-Name: e22c090f35b3a2bac64781d33aa1123ed765dbbf
2010-01-07 03:53:03 +00:00
dan
c06013dca7
Fix a segfault that can occur following an OOM in the FTS3 snippet() function
...
FossilOrigin-Name: c7e5966e3b031672f149d0b6e1f75f9bc40868fa
2010-01-06 18:36:27 +00:00
dan
b023b04fcb
Change the fts3 snippet function to return (hopefully) more relevant snippets in less time.
...
FossilOrigin-Name: 8a208223a74d451f60d9cd707d63fb7d157d1737
2010-01-06 17:19:21 +00:00
drh
cf3e518506
Fix an issue with lemon generating incorrect grammars. This issue does
...
not effect SQLite.
FossilOrigin-Name: 077a6bee2dd4668a5b13c37aa7d4c052350ec782
2010-01-06 13:07:30 +00:00
drh
ac0e8fe946
Version 3.6.22 Release Candidate 2
...
FossilOrigin-Name: 28d0d7710761114a44a1a3a425a6883c661f06e7
2010-01-05 15:30:36 +00:00
shaneh
bb6b9878d7
Removed compiler warnings in MSVC.
...
FossilOrigin-Name: 4ecb4725b76042ac414caf90039d5d0a5f8f7068
2010-01-05 14:18:54 +00:00
drh
3918795951
Make sure new pages are zeroed even when loading a freelist page using the
...
noContent option. This prevents a harmless valgrind warning.
FossilOrigin-Name: e47e213369a2652d7eb6bddd58617959e21ca82b
2010-01-05 13:40:35 +00:00
dan
4564cedd80
Fix a problem in the shell tool. In some cases sqlite3_errmsg() was being called before sqlite3_finalize(), causing error messages to be more generic than they should be.
...
FossilOrigin-Name: e5d07045fabe0803715cfb291aa9e971235cb08a
2010-01-05 04:59:56 +00:00
drh
10f864e8ef
In the debugging memory allocator, initialize new memory allocations to
...
pseudo-randomness in an effort to find problems with memcmp() of structures
that have uninitialized pad bytes.
FossilOrigin-Name: 6462817b2f817a6105449b0ea3e1e336e42571d1
2010-01-05 03:30:15 +00:00
drh
9061ad10bc
Fix a case in os_unix.c where two structures that might have uninitialized
...
padding bytes are compared using memcmp().
FossilOrigin-Name: e02f25560216c7c96c5e1c7e71a8531650b3a96f
2010-01-05 00:14:49 +00:00
drh
6070f7eed4
Version 3.6.22 Release Candidate 1
...
FossilOrigin-Name: 9d8ab0f1f5ea4f05a685ea6541f501532514e8c5
2010-01-04 13:30:15 +00:00
dan
a98af17af6
Add experimental implementation of FTS3 functions matchinfo() and snippet() (not enabled by default).
...
FossilOrigin-Name: 51f7ee844057086789dcfcdcba7daf45343cae62
2010-01-02 19:02:02 +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
c79c761f84
Add evidence marks associated with autoincrement.
...
FossilOrigin-Name: 0e918c54893c361fb005295847f89aadcbfae35d
2010-01-01 18:57:48 +00:00
drh
5cfa584831
Add comments and an assert() to help clarify the operation of the
...
sqlite3VdbeList() routine used to implement EXPLAIN.
FossilOrigin-Name: e1ccdb93d79a6f7b16f1f59cc3ad78f8d02eae84
2009-12-31 20:35:08 +00:00
shaneh
f33a7a8cef
Minor changes to test scripts to support various SQLITE_OMIT options.
...
FossilOrigin-Name: 97f8a886b6314b044a0522a88f569798fdfb3ef9
2009-12-31 19:48:29 +00:00
shaneh
46aae3c0da
Changes to remove warnings in MSVC build.
...
FossilOrigin-Name: 6cf76c2ae25d6e58926637ecd42eed6b300b1a25
2009-12-31 19:06:23 +00:00
drh
9ede952ab5
Change evidence marks to track requirement number changes in the foreign-key
...
documentation.
FossilOrigin-Name: 6b4fcd81e775ff4c5d7bc454378555cf73cf5772
2009-12-31 15:51:38 +00:00
drh
faceaf1ffd
Change the version number to 3.6.22.
...
FossilOrigin-Name: 96919a46bbd63cb1794c8eb96b6ad23ecc09ba6b
2009-12-30 14:19:11 +00:00
drh
f49f352320
Adjustments to column cache handling in order to restore 100% branch
...
test coverage.
FossilOrigin-Name: cc6b959bc1f968e08eea1afd387201d70a0c1e80
2009-12-30 14:12:38 +00:00
drh
27ee406e2c
Remove some code in the column cache that is no longer used. Replace it with
...
an assert().
FossilOrigin-Name: 1f890efb7863bd743b9f6ef841e0c0c4e67d76e1
2009-12-30 01:13:11 +00:00
drh
c82b7513bf
Remove obsolete comment text from expr.c. No functional code changes.
...
FossilOrigin-Name: 84058be0beb799bc989d73a8d4cd8791ab709395
2009-12-30 00:12:39 +00:00
drh
25e978df92
Within the special new.* and old.* tables of a trigger, recognize all the
...
original table names even if those names overload the "rowid", "oid", or
"_rowid_" special names. Ticket [34d2ae1c6d0].
FossilOrigin-Name: 1a0e5fa9f0ff792c678c99d49960601a0cef925b
2009-12-29 23:39:04 +00:00
dan
8718183ea5
Fix a bug triggered by optimizing an FTS3 table when there are no segments on disk but pending terms in the hash table.
...
FossilOrigin-Name: a3b50e4f80ca2dacc1f72435b8c72d55ffdb64e7
2009-12-29 10:32:36 +00:00
drh
b6da74ebd5
Immediately purge entries from the column cache when the associated register
...
undergoes an affinity change. Ticket [eb5548a849]. Enhance the
SQLITE_TESTCTRL_OPTIMIZATIONS setting of sqlite3_test_control so that it
can disable the column cache for testing purposes, in an effort to prevent
future problems of a similar nature to this one.
FossilOrigin-Name: ea4e57e1c1b6663ceb12872e31a8503f6c14e3d8
2009-12-24 16:00:28 +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
dan
3540c1f7b8
Add the experimental FTS3 matchinfo() function. Provides details of the match that may be used for result ranking and other purposes.
...
FossilOrigin-Name: 37a1de02d1d8a34604f1bee896eaf579d4ba149a
2009-12-22 18:56:19 +00:00
drh
7b688ede64
Add a pragma to disable the query flattener - for use during testing.
...
FossilOrigin-Name: 1d8550e5c88db0ea76aea579c1a5bf99d48fbe43
2009-12-22 00:29:53 +00:00
dan
bf3e3a06cf
Change many comments in e_fkey.test to include the full text of the corresponding statement in foreignkeys.html.
...
FossilOrigin-Name: 4b489ecb250ea0e80d5bf8806f07259e1107f8ad
2009-12-21 08:53:18 +00:00
dan
e61fc3b6a8
Fix a problem in FTS3 phrase queries. Add tests to check that it really is fixed.
...
FossilOrigin-Name: 956de051f43dfc2f178a7820981da4bf69927190
2009-12-20 15:00:19 +00:00
shaneh
c7d526e92b
Modified statement machine in sqlite3_complete() to return 0 on empty string.
...
Added/updated tests for same. Ticket 356c885b0b.
FossilOrigin-Name: 76eca7295cf7df4bef013af6c8c37251300cd383
2009-12-17 22:17:38 +00:00
shaneh
4e7b32f37f
Fixed some TCL test cases to work if SQLITE_OMIT_TRIGGER is defined.
...
FossilOrigin-Name: 85e3c73497d72d09becf728efe81041277ca1730
2009-12-17 22:12:51 +00:00
shaneh
ca7dfda1d4
Updated and added new test cases for CLI.
...
FossilOrigin-Name: 29e3c8da1bd3971215036e5f5cfa5b25c6caa81f
2009-12-17 21:07:54 +00:00
shaneh
13b3602e1c
In shell.c (CLI), modified local_getline() to remove '\r' as well as '\n' from end of lines.
...
FossilOrigin-Name: b1b48be1cf55f3179eab8824cf5fee8100518845
2009-12-17 21:07:15 +00:00
shaneh
d77f56efe5
Fix typo in comment of prepare.c.
...
FossilOrigin-Name: 333c3ffe6d4d2293d01958812b9c02b0bf9796a4
2009-12-17 21:05:42 +00:00
drh
702b919a67
Disable trace when recursively running commands while vacuuming.
...
FossilOrigin-Name: 69a1348a3c88ffbf401cf72bbec8b4a76557bd11
2009-12-17 03:49:56 +00:00
drh
6695f47e93
Change the REGEXP function in ICU to require exactly 2 arguments.
...
FossilOrigin-Name: c34cf23efb92d9bbb7cf4245d372e47182771f63
2009-12-17 02:13:39 +00:00
drh
b057e56f22
Remove unreachable code that was added by the fix to the "(xANDy)OR(z)" bug
...
in the previous check-in.
FossilOrigin-Name: 04915562a0c2cb377bc7baa0c06c5d9ac376563c
2009-12-16 23:43:55 +00:00
drh
c01a3c1775
Ensure WHERE clause terms involving tables on the right end of a join
...
are not prematurely evaluated when tables on the left end of the join
make use of the OR-clause optimization.
Fix for ticket [31338dca7e].
FossilOrigin-Name: 2c2de252666662f5459904fc33a9f2956cbff23c
2009-12-16 22:10:49 +00:00
dan
27298ffde4
Modify some comments in e_fkey.test. No changes to code or tests.
...
FossilOrigin-Name: 1ba4f412325fc2ce552ad7feecf93891f7f95059
2009-12-16 14:49:15 +00:00
drh
d3479b94e3
Add a few simple evidence comments to the tokenizer. No functional changes.
...
FossilOrigin-Name: 0daec3099d439ce8a8779260b12975f262037bc8
2009-12-14 17:42:12 +00:00
dan
c007646318
Handle an unhandled OOM error code that occurs in fts3 with SQLITE_TEST defined.
...
FossilOrigin-Name: 82b069998e10b1a9a1d5e6bd85877d7b654c78bd
2009-12-14 15:17:27 +00:00
dan
971742058f
Fix a broken assert() in fts3_write.c. Also fix a couple of compiler warnings in fts3 code.
...
FossilOrigin-Name: a730a05b39c45138765df98d34b9db1ab4e72152
2009-12-14 14:49:57 +00:00
drh
7a98b853da
Additional corrections to documentation comments. No functional code changes.
...
FossilOrigin-Name: b3740b0aa0a7c6932e33e02b37baed5a5960a0bd
2009-12-13 23:03:01 +00:00
drh
df6473aa7a
Minor documentation updates. No functional changes.
...
FossilOrigin-Name: 6ae7e40ba0f710609cf1bc8baa54e7839eb7a2d7
2009-12-13 22:20:08 +00:00
drh
9be37f691b
Fix some documentation comments in sqlite.h.in. No functional code changes.
...
FossilOrigin-Name: c16b9bec77c8b9120b728f8431648d95175a83b8
2009-12-12 23:57:36 +00:00
dan
ca6be31b69
Tests to cover a few extra branches in fts3.c.
...
FossilOrigin-Name: 06b72b007393dc34d75a8bb16ce0e4507d5f8faa
2009-12-12 19:15:27 +00:00
dan
55be7449f9
Further fts3 coverage tests.
...
FossilOrigin-Name: d2a8c0f683271f5fb8c9badfb13e4e46fd78db71
2009-12-12 16:04:32 +00:00
drh
350e41dca2
Rename tkt-d82e3f3721.txt to use the (correct) .test suffix.
...
FossilOrigin-Name: 68cccd62b71f7b55bf7f2f56dc8507cbe80229ba
2009-12-12 13:58:18 +00:00
dan
45bcd6c274
Extra tests for coverage of fts3 code.
...
FossilOrigin-Name: eee921a99e69a9cd868a89de620bf47c4e26e4b5
2009-12-12 13:16:09 +00:00
dan
f5fff2a7b2
Add coverage test cases for fts3.
...
FossilOrigin-Name: 8fcb0478c82507403165719724b62a308cb83b57
2009-12-12 09:51:25 +00:00
drh
fb43403641
Additional changes to C-language interface documentation.
...
FossilOrigin-Name: 1342916fd350d06e1c1f3d7d380249f0c9282c7b
2009-12-11 23:11:26 +00:00
dan
601cd9aa24
Change the fts3 test interface used to configure the advisory node size paraemeter.
...
FossilOrigin-Name: 87fc0ce151c89beb5a43b65c0b1706f340c0c173
2009-12-11 16:03:45 +00:00
dan
4f887abc4c
Rationalize some code in fts3 used by optimize operations, queries of the pending-terms hash table and segment merges. Add the "INSERT INTO tbl(tbl) VALUES('optimize')" syntax.
...
FossilOrigin-Name: 29476da353df4c67fe744c1c5f466ba5b9c1a54b
2009-12-11 12:29:04 +00:00
dan
1548f210ba
Add comment to fts3rnd.test to explain how the test works.
...
FossilOrigin-Name: 6b740c7cd57d618623ed028be4213dfef860054a
2009-12-11 07:07:36 +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
shaneh
ef4114dd24
Avoid declaring and freeing test variables if SQLITE_TEST not defined.
...
FossilOrigin-Name: c2d22960f652264c48ec41b9ca4047aa142d86f7
2009-12-10 21:11:28 +00:00
dan
dcf3cc1f91
Remove some unused macros and types from fts3.c.
...
FossilOrigin-Name: 83a80efe8a6c3d53a7f80b4c5f4e0f40aa0aa52f
2009-12-10 18:38:54 +00:00
dan
0502e56415
Fix handling of "WHERE col MATCH ? AND docid = ?" clauses in fts3.
...
FossilOrigin-Name: 6cbbae849990d99b7ffe252b642d6be49d0c7235
2009-12-10 18:29:04 +00:00
dan
2c11d597c7
Fix an OOM related problem in the snippet() and offsets() functions of fts3.
...
FossilOrigin-Name: 61efff414254f209f1c69728ae2da3b3888b7290
2009-12-10 18:20:31 +00:00
dan
b893721a45
Changes to fts3 to avoid flushing data to disk within a SELECT statement.
...
FossilOrigin-Name: 48c0db0eb2d134bb302bb5eca6beb0ec46736257
2009-12-10 16:04:25 +00:00
drh
0edb3cf53d
Only declare the sqlite3_mutex_held() and sqlite3_mutex_notheld() interfaces
...
in the header file if NDEBUG is not defined.
FossilOrigin-Name: ee9b1c05a7f12d3d668b804bd11ae0def984b66e
2009-12-10 01:17:29 +00:00
drh
c29c5aa1fd
Restore the incorrect legacy ON INSERT syntax to the parser as a no-op.
...
That way, older databases that actually use this meaningless syntax will
still be readable.
FossilOrigin-Name: 54b955c36ba5c139a63c6031855305b764d3fa6c
2009-12-09 21:43:36 +00:00
drh
81c1655775
Added test cases for the multi-way USING and NATURAL JOIN fix.
...
Ticket [f74beaabde].
FossilOrigin-Name: 0b34ab25624ae4b6c5fa7775328ff0e637d68bfc
2009-12-09 18:22:25 +00:00
drh
2179b43465
The USING clause and NATURAL JOIN look at all tables to the left when
...
searching for a match, not just the one table to the immediate left.
Tables further to the left are preferred.
Fix for ticket [f74beaabde]. Still need to add test cases to complete
the ticket.
FossilOrigin-Name: b558e96f0a3cd2cbbe86e44293246a4730960d52
2009-12-09 17:36:39 +00:00
dan
18ff7fa6b4
Improve test coverage of fts3.c.
...
FossilOrigin-Name: 56b6432f8622d53ffd3a4d9a2244114f8531ed71
2009-12-09 14:39:41 +00:00
dan
6d67e33776
Mark fts3ReallocOrFree and fts3InitVtab as static. Ticket [ff44d82f3b].
...
FossilOrigin-Name: a9038306c33c88120d8bef27209d8f0641c85c9b
2009-12-09 05:30:36 +00:00
drh
0e3c512bff
Change to order of two branches in vtab.c in order to a restore 100% test
...
coverage.
FossilOrigin-Name: fdfdc777c59a108496c7381c8b267b38485e2c13
2009-12-08 22:16:15 +00:00
drh
19875c8240
Add comments to better explain the two-pass memory allocation approach
...
for prepared statements.
FossilOrigin-Name: 0e5e18ea12c70559d4c63981c0bb5f9430c5bcbb
2009-12-08 19:58:19 +00:00
dan
84db21ec6a
Add tests to improve coverage of fts3. Associated bugfixes.
...
FossilOrigin-Name: f0eac4175aee6c50ee68acc253f76fbe44574250
2009-12-08 19:05:53 +00:00
drh
4800b2ee95
Avoid pointer aliasing in the allocSpace() routine in vdbeaux.c.
...
FossilOrigin-Name: d6ae27512229d95502c584b17bb2cbdba401f80a
2009-12-08 15:35:22 +00:00
drh
1e15c031ca
Begin updating API documentation to use the new MD5-hash based
...
automatic requirements numbering. Comment changes only. Many similar
changes will follow.
FossilOrigin-Name: 973c5c86eed31dcce54d14e71938f2e255f5f1c7
2009-12-08 15:16:54 +00:00
drh
972a23119e
Allow zero-length names for tables, columns, and indices.
...
Fix for ticket [78e04e52eaf].
FossilOrigin-Name: 7b1cfd65a6f7c85ef8f6e4622973457cff9d007c
2009-12-08 14:34:08 +00:00
drh
4413c43762
Add test cases for ticket [abe728bbc311].
...
FossilOrigin-Name: 4eb9bf0b93a564844f133691936593245aa792fc
2009-12-08 13:44:21 +00:00
drh
b290e1c75e
Avoid dereferencing a null pointer when doing a multi-database comment where
...
one or more of the databases is an ATTACH-ed TEMP database.
Ticket [abe728bbc311d].
FossilOrigin-Name: f43e37e0a4cc7c15c996f4404dc775636396567d
2009-12-08 13:36:55 +00:00
drh
2ba3cccf22
Add evidence marks for the abs() and soundex() SQL functions.
...
FossilOrigin-Name: 003f3ed10cdb64b73d6df00e28260dd3491e1f16
2009-12-08 02:06:08 +00:00
drh
9286c07daa
Version 3.6.21 release candidate 3.
...
FossilOrigin-Name: 1ed88e9d01e9eda5cbc622e7614277f29bcc551c
2009-12-07 16:39:13 +00:00
dan
7bf44fc018
Remove a redundant line from fts3.
...
FossilOrigin-Name: cd50acf37fd1e3b388f98fb2df7ed03cff454b24
2009-12-07 16:26:52 +00:00
dan
1a0edc1559
Add extra tests for parsing of whitespace in tokenizer declarations,.
...
FossilOrigin-Name: 5030ba2e308df6aeef2ed6b2e153f7baf2c81262
2009-12-07 16:23:42 +00:00
shaneh
0d935576a4
Move some SQLITE_TEST code down to avoid mixing code and variable declarations.
...
Fix a test for high-order bit handling in sqlite3Fts3InitTokenizer().
FossilOrigin-Name: fad43d290f9489726aaa2e999a17ea17ed78b27b
2009-12-07 16:18:37 +00:00
drh
e6656ed33f
Version 3.6.21 release candidate 2.
...
FossilOrigin-Name: 78f6baffb0289a173b0bb56bc54bf0f32e6c957d
2009-12-07 14:48:51 +00:00
dan
ff32e39c8e
Add some tests for OR, AND and NOT operations to fts3rnd.test. Add tests to check that errors are returned when bad arguments are passed to fts3 functions snippet, offsets and optimize. Minor fix for the same
...
FossilOrigin-Name: 5811df3f0412598d189d46b58de4deff24573651
2009-12-07 12:34:51 +00:00
drh
00ce39458d
Enhanced detection of database corruption in btree.c:allocateSpace().
...
FossilOrigin-Name: 5a511f98877f0f7f12d336b7831f3da901856b02
2009-12-06 03:35:51 +00:00
drh
dc9b5f8ee3
Fix to check-in [f221f31eff]: Make sure local variable rc is declared even
...
when compiled without SQLITE_DEBUG.
FossilOrigin-Name: 7a9a35327c55452e858335933ce11669fc888aeb
2009-12-05 18:34:08 +00:00
dan
d1f7e92624
Add test case for the obscure corruption detection added by the previous commit.
...
FossilOrigin-Name: f221f31efff83651b9af295b98cfe98bcba3ad54
2009-12-05 18:16:11 +00:00
dan
89e060e462
Catch an obscure case of database corruption.
...
FossilOrigin-Name: 0f9b17a6da42b4da667bbbc00f713effe92a66b5
2009-12-05 18:03:50 +00:00
dan
28f372f6d9
Fix another bug in 3-way NEAR queries.
...
FossilOrigin-Name: 3bb13a06521b54194c9f3eb44e0dc42bacf016a4
2009-12-05 14:29:22 +00:00
dan
6e053f9c23
Fix some problems with FTS3 and 3-way NEAR queries.
...
FossilOrigin-Name: 23dc6fb5b28712d1ba18dc7ddb3f2ef3b469d611
2009-12-05 11:37:19 +00:00
drh
8e14c59611
Add the SQLITE_4_BYTE_ALIGNED_MALLOC compile-time option which tells some
...
assert() statements that the underlying system only requires 4-byte alignment
of 8-byte data objects like double or int64 and that system malloc() only
guarantees 4-byte alignment of returned pointers.
FossilOrigin-Name: 08faee686eb2fabe0dde51231ee55880e78541e8
2009-12-04 23:10:12 +00:00
drh
44a1d92050
Remove an assert() in btree.c:releasePage() that is not necessarily true
...
when the btree is recovering from an OOM that occurs in the middle of
a balance().
FossilOrigin-Name: 04fc9c7661dd24d080f965e7eae9010a2d346e6a
2009-12-04 22:51:39 +00:00
dan
165b67cb36
Fix a problem involving a 3-way NEAR query.
...
FossilOrigin-Name: 507890a9139875b1b594225c432c714f67312c0e
2009-12-04 19:07:24 +00:00
drh
476bda7de4
In the OSTRACE debugging macros in os_unix.c, identify the VFS currently
...
in use.
FossilOrigin-Name: 082b8da005128f47f63e95b6b702bf4517221b2a
2009-12-04 14:25:18 +00:00
dan
acf28fbdd8
Modify [2ad1461f25] to avoid leaving a prepared statement in "active" state following an OOM error in FTS3.
...
FossilOrigin-Name: 69c21ee46aeeb624fd8638b17ff7259a3e5f9a46
2009-12-04 14:11:33 +00:00
drh
406a15ad8b
Fix an FTS3 problem where an OOM error was not being propagated back
...
out to the top-level interface.
FossilOrigin-Name: 2ad1461f255c2499367b706a5ec65b44c1fc1618
2009-12-04 13:42:59 +00:00
dan
19a99d7eef
Reset the state of the asynchronous IO module at the end of the tkt-94c04eaadb.test script.
...
FossilOrigin-Name: e8ae7e98977ff2a47237ad64f8a9a800a6d2797c
2009-12-04 08:40:59 +00:00
dan
64eac557f3
Do not run fts3rnd.test as part of quick.test.
...
FossilOrigin-Name: 3bb64842acdca2a4e81f1c72130a90c23b0804f1
2009-12-04 05:41:03 +00:00
drh
a43be915c2
Clear a conflicting TCL variable in the fts3rnd.test test script.
...
FossilOrigin-Name: f9047b2e88a26ed52a54c527cca2a8c1123805d1
2009-12-04 01:44:42 +00:00
drh
c9b9b8aab7
Fix an assert() in btree.c that might have fired on a corrupt database file.
...
FossilOrigin-Name: 5ab2b3e300b70bc04cdead69275f8f734ea2d885
2009-12-03 21:26:52 +00:00
drh
313aa5735a
Remove a NEVER() from btree.c that could occur in a very obscure tested
...
evaluation with an I/O error on fstat().
FossilOrigin-Name: d5861d9ffecca499d79d722b5f742ffe3a5aff44
2009-12-03 19:40:00 +00:00
dan
e2e5145441
Fix an incorrect assert() in fts3.c. Add further fts3 tests.
...
FossilOrigin-Name: 75863c2d55e0801add5b8dcf88d575c5c870af04
2009-12-03 17:36:22 +00:00
shaneh
e585b8f05c
Updates to FTS3 to correct compiler warnings under MSVC.
...
FossilOrigin-Name: 37495b55ffbdc2db4482367ac7d8e32d4d71d58e
2009-12-03 06:26:46 +00:00
shaneh
5e17e8b7dd
Fix a couple of compiler warnings under MSVC.
...
FossilOrigin-Name: e3aa0870fce0666bf8c67ad6ec23e135d03b604a
2009-12-03 04:40:47 +00:00
shaneh
5e0098513e
Fix cut-and-paste error affecting a couple of attach tests on Windows.
...
FossilOrigin-Name: 59e2e2c6301e189a1a6601c681bbb0937a5cd14e
2009-12-03 04:32:06 +00:00
drh
a94cc4206a
Add links from C/C++ interfaces to their equivalent SQL functions. Comment
...
changes only - no changes to code.
FossilOrigin-Name: acce10f77125b5ab05d10ec10aef68dffa4e826a
2009-12-03 01:01:02 +00:00
drh
c12075b3b2
Change an error message in FTS3 to avoid using an uninitialized variable.
...
FossilOrigin-Name: 620a8a2b38f5f2ad3db304b2bc88360285c174db
2009-12-02 20:25:57 +00:00
dan
19125aaf68
Fix an uninitialized value read in sqlite3async.c.
...
FossilOrigin-Name: 1cf2136c39239a6fea6ac2a555f55865dd517d93
2009-12-02 18:16:56 +00:00
drh
614d265038
Fix compiler warnings in test_hexio.c.
...
FossilOrigin-Name: 6a2e0725c20520aa90abb2bc04037ee7acebb930
2009-12-02 18:03:57 +00:00
dan
2432e561c4
Modify a test in fts3b.test to reflect the fact that the docid field may now be updated.
...
FossilOrigin-Name: ef5b7450292e6f89c2b36427a9cd6f8050ad16f4
2009-12-02 16:09:16 +00:00
dan
bc7c039ce2
Clear the Pager.dbModified flag when unlocking the database. Assert that it is clear when locking the database.
...
FossilOrigin-Name: d17ec16b7c5051c904c09580a856593b2fb85edc
2009-12-02 14:44:32 +00:00
drh
9f3962e7b5
Make sure a variable is cleared before use in the where8.test script.
...
FossilOrigin-Name: b34365296d65310bb015901d18ed463e73d47cbe
2009-12-02 02:49:49 +00:00
drh
fd7c9912b4
Add testcase() macros to make sure boundary cases in BEFORE UPDATE triggers
...
are well tested.
FossilOrigin-Name: 27175caa28919fe145d369f27f52346b8bbadb1e
2009-12-01 22:09:25 +00:00
drh
d8267b8925
Fix a faulty function prototype in test_intarray.c.
...
FossilOrigin-Name: 110956a6505a9f17d08142d47003cf3bc4e515d3
2009-12-01 18:46:06 +00:00
dan
6bd3b2aa64
Use #include "sqlite3.h" instead of <sqlite3.h> in fts3Int.h.
...
FossilOrigin-Name: 7737db490ceba02c29c36fe181b4e7895b40aa75
2009-12-01 17:08:09 +00:00
dan
8c4499764b
Add typedefs for i16 and u8 to fts3Int.h when not building via the amalgamation method.
...
FossilOrigin-Name: fa56c1c47296c2f9ba1de9450d421dd06fde5a6a
2009-12-01 17:05:50 +00:00
dan
63d18b478c
Add tests for the remaining examples in fts3.in.
...
FossilOrigin-Name: e381cd5229b30168769330cb201bae2689e1a549
2009-12-01 15:04:33 +00:00
drh
cfa35664a5
Reorder function declarations in mutex_os2.c. This is a blind change - we
...
have no capability of testing on OS/2.
Ticket [97214a34d814]
FossilOrigin-Name: c40e4ef094bb9d58f14354602785ccc228f8bc2a
2009-12-01 14:31:18 +00:00
drh
65e8c82e1a
Changes to the TCL interface header to allow it to be compiled independently
...
from the amalgamation.
FossilOrigin-Name: 58113932d93926b4aa037a7487105a55f883cd0a
2009-12-01 13:57:48 +00:00
dan
3acb07d6c3
Open a savepoint within the FTS3 optimize() function.
...
FossilOrigin-Name: 4924fbb244bd1b7103e29e045812cb1c4d2d81c8
2009-12-01 13:48:13 +00:00
dan
612b1d5cd0
Fix a segfault that can occur when querying an empty FTS3 table. Also restore the rowid/docid conflict handling to work as it did in version 3.6.20.
...
FossilOrigin-Name: c022f66b5a65aa54d5ebd55cfe941118a2042280
2009-12-01 12:00:22 +00:00
drh
ff3f307cd0
Test coverage improvements in the FTS3 porter stemmer.
...
FossilOrigin-Name: 6d112bfd53998b8f6693d3f2edbcd5ab4cdf5fb1
2009-11-30 19:48:16 +00:00
dan
63b94d64c3
Add test cases for examples recently added to documentation file fts3.html.
...
FossilOrigin-Name: 498922cc356316a3ec59320529b685728e407746
2009-11-30 08:55:03 +00:00
drh
0a62730d3f
Updates to snippet() and offsets() functions of FTS3 so that they work
...
sanely following an OOM fault.
FossilOrigin-Name: b939a37a8ce296785a300e79ab9d3d87ad91343f
2009-11-28 21:33:21 +00:00
drh
9287d93c17
Change FTS3 to detect when the RHS of the MATCH opertor encounters an OOM
...
during string format conversion and report back an SQLITE_NOMEM error.
FossilOrigin-Name: 31eed4f8f95f0799d634eccbd9e09cb58172d250
2009-11-28 17:23:47 +00:00
drh
44c1e5a13c
Remove all benign OOM failure opportunities from the FTS3 hash table
...
implementation. All OOM faults cause SQLITE_NOMEM to be returned.
FossilOrigin-Name: 80754d383a0e890ea3f315dab941b9f166481ddd
2009-11-28 17:07:42 +00:00
dan
8e9f6aedae
Add a test case for creating an FTS3 table with no module arguments or opening/closing brackets in the CREATE VIRTUAL TABLE statement.
...
FossilOrigin-Name: a9cba7ea0a06efa7a63a3069b219cc30fb127e98
2009-11-28 15:35:16 +00:00
drh
1e6349900d
Initialize a variable (unnecessarily) to avoid a compiler warning.
...
FossilOrigin-Name: db65fd5913aae4d83d2c2bc243653175be3c3d35
2009-11-28 13:46:51 +00:00
dan
81fa6dc319
Fix a bug introduced by the fts3 refactoring (segfault when creating a table with zero module args). Also a fix to handle an OOM error.
...
FossilOrigin-Name: eada284bc10cafcab9beb3473bb0c70b3b4de2f9
2009-11-28 12:40:32 +00:00
dan
c473b48b23
Change the test numbers in e_fkey.test so that they are in order.
...
FossilOrigin-Name: ca73be44cc2dab5edc48292c467adc8362ddf645
2009-11-27 18:31:40 +00:00
dan
f6d7b055fa
Remove a C++ism accidentally added to fts3.c.
...
FossilOrigin-Name: 97d332416069d2fbce323740b276d0e7523eeee5
2009-11-27 12:14:47 +00:00
dan
bb5f168f2e
Move [7d30880114] to the trunk. Add optimizations to reduce the number of opcodes used for BEFORE UPDATE triggers.
...
FossilOrigin-Name: 1b7c5250ccb63182324bfc3f1ea28f17b6db357a
2009-11-27 12:12:34 +00:00
drh
5f18a221a1
Simplifications to the sqlite3_trace() bound parameter substitution logic.
...
FossilOrigin-Name: cb4b928648504ce29d751834e9ee3b5278dfca65
2009-11-26 14:01:53 +00:00
drh
f7829ad0e9
Make sure the new fts3Int.h header file is added to the amalgamation.
...
FossilOrigin-Name: f25558f333637b83f98a649acbb8a0d5dbada9ba
2009-11-25 22:42:22 +00:00
drh
d65311b980
Support zeroblob in trace output.
...
FossilOrigin-Name: 5086bf8e838c824accda531afeb56a51dd40d795
2009-11-25 21:05:09 +00:00
drh
c1bd1b33a5
Get trace with parameter insertion working for UTF16 databases.
...
FossilOrigin-Name: 01d5451af0bd2743eb74b98f2e77dd2c75f403b6
2009-11-25 19:35:23 +00:00
drh
c7bc4fde3c
Initial check-in of code that inserts tokenizations of the values
...
for bound parameters into the output of sqlite3_trace().
FossilOrigin-Name: 545cfb3b63f482036ae152e6ebcce86d373585a8
2009-11-25 18:03:42 +00:00
drh
8965b50edf
Enhance the %q, %Q, and %w printf conversions so that the precisions
...
specifies the length of the input.
FossilOrigin-Name: 3ba773132d3baeb87acaee538b8fb0b0f4293673
2009-11-25 16:53:37 +00:00
drh
5ff44379b3
Fix a tracing macro in the VDBE in the VColumn opcode.
...
FossilOrigin-Name: cb74b81bb0322efdd66146d7de466c14564b18fd
2009-11-24 16:26:17 +00:00
drh
7ab641fb01
Fix SQLITE_SECURE_DELETE so that it overwrites content on the root pages
...
of tables and indices that are dropped using the truncate optimization.
FossilOrigin-Name: 02ef972a56aab1e61786000283193165d3968842
2009-11-24 02:37:02 +00:00
drh
a62bb8d4d7
Make sure registers computed for the VFilter opcode are marked invalid
...
after the VFilter opcode finishes. Ticket [16fbf14cb2].
FossilOrigin-Name: 83dc7d38c2695d1b2a7d4866a4df9be9e41d1abe
2009-11-23 21:23:45 +00:00
drh
1ac399e8eb
Rearrange the order of two branches in order to restore 100% branch coverage
...
after recent changes to in-memory database processing.
FossilOrigin-Name: 6ce6ff4402241d5c76acd0c60c85097dfcd7fd7c
2009-11-23 15:59:27 +00:00
dan
f6963f99dd
Change so that deleting an Expr structure requires only one frame per level in the expression tree, not two.
...
FossilOrigin-Name: a4380ab326e4b0de29271c824d041193e86b7139
2009-11-23 14:39:14 +00:00
drh
fc7e7c7c84
Bump the version number to 3.6.21.
...
FossilOrigin-Name: 39214aee6553db76309851e7aa74fcc02d4f59b7
2009-11-23 13:17:26 +00:00
dan
7eee299243
Add some missing comments to fts3 files. No source code changes.
...
FossilOrigin-Name: b6402b2065b844acb3f1bb94ad964568706bcb86
2009-11-21 03:03:21 +00:00
drh
bfcb4adaf8
Fix a bug in transaction rollback during backup when the CODEC is enabled
...
that can result in a corrupt backup file. This is only a problem when
SQLITE_HAS_CODEC is defined.
FossilOrigin-Name: f3398fc4db765e2c63d425d570c4469a84b3328c
2009-11-21 01:33:50 +00:00
drh
8c30f72deb
When moving pages as part of autovacuum on an in-memory database, make sure
...
that the source location is journalled so that a ROLLBACK can occur.
Part of the fix for ticket [564d412f15a00]
FossilOrigin-Name: 2f42f91fe65b0b21671936013df08037091f0cc6
2009-11-20 18:48:35 +00:00
dan
e6828f5503
Merge leaf accidentally created by [1c4984c62f].
...
FossilOrigin-Name: cae949ce971ca216e0f8880b2f93866619fa05be
2009-11-20 10:23:12 +00:00
drh
456e4e4fba
Fix a bug in LIMIT 0 for compound SELECT statement.
...
The problem was introduced by recent enhancements and has not appeared
in any release.
FossilOrigin-Name: c6ed7e2a73a7a65cfa914ffcad4f603b6b7a22a8
2009-11-20 16:13:15 +00:00
drh
3278315768
If the root pages numbers of the internal schema are adjusted due to
...
autovacuum on a DROP TABLE statement and that statement later aborts (for
example, due to an OOM error) then reset the internal schema at the
conclusion of the statement.
Partial fix for ticket [564d412f15a].
FossilOrigin-Name: e493b093f8ca722c3160b32a16fb615023978dc9
2009-11-20 15:02:34 +00:00
drh
98829a65cd
Avoid unnecessary page cache allocations when move a page while autovacuuming
...
an in-memory database, since the allocation might fail making it impossible to
rollback the transaction.
FossilOrigin-Name: 9a429349ccc2fa9acd28365a86578f602e87dafb
2009-11-20 13:18:14 +00:00
dan
ac88760aac
Add a test to make sure a database can be attached to a single handle twice if not in shared-cache mode.
...
FossilOrigin-Name: 1c4984c62f393f41f9182ea82546c16d02efa46f
2009-11-20 10:18:06 +00:00
dan
d1414c58e5
Improve comments and other things in fts3_write.c.
...
FossilOrigin-Name: 1cf0e3cc14bad22867e740736c2886dc1c4a48dc
2009-11-20 05:05:19 +00:00
dan
d313865550
Minor optimizations to fts3 code.
...
FossilOrigin-Name: b456eacbbb16513d1b27e90015ea58a6dc92cc3b
2009-11-20 02:24:15 +00:00
dan
bf50c46e4c
Merge leaves [7cd178a72a] and [598727e6da].
...
FossilOrigin-Name: 4115c0c286052e32cb81f77a644d530c1766206f
2009-11-19 18:30:14 +00:00
dan
8f4a4f24dd
Fix a performance regression introduced while reworking the fts3 code.
...
FossilOrigin-Name: 7cd178a72ab99c94fdacffb19aad819ae600e57d
2009-11-19 18:28:45 +00:00
drh
88376ca791
Remove an unreachable branch from the OP_Affinity suppression logic.
...
FossilOrigin-Name: 598727e6dae87f133c658fa125684f6ad978be60
2009-11-19 15:44:53 +00:00
dan
c4c54eed2e
Merge fts3-refactor into the main trunk.
...
FossilOrigin-Name: 551dbe30eab5855756e6356f6ba050f5d1791ef8
2009-11-19 15:26:54 +00:00
dan
16708c4a0d
Fix some fts3 related issues with the autoconf and amalgamation build systems.
...
FossilOrigin-Name: 3b17924754343c0163464dabf01a9c46ffccef28
2009-11-19 15:25:25 +00:00
dan
91b71c1ab2
Merge with [4bd4330709].
...
FossilOrigin-Name: 7a46d1ebe348ce9f1e8732617a8e280f152fe979
2009-11-19 14:57:14 +00:00
drh
cd7f457e6d
Fix a bug introduced with recent optimizations: The unary minus operator
...
is TK_UMINUS, not TK_MINUS.
FossilOrigin-Name: 4bd43307090258f8652c995b056101c51b81274a
2009-11-19 14:48:40 +00:00
dan
44e0d68c44
Merge the fts3-refactor branch with the trunk.
...
FossilOrigin-Name: c8d2bd37a4c16154912a0831690584011dc230cb
2009-11-19 02:52:57 +00:00
dan
5dc842ddf7
Fix problems introduced into fts3 as part of the refactoring.
...
FossilOrigin-Name: fa0998e19d984ee57f4f506c34eb858026cc49c3
2009-11-19 00:15:27 +00:00
drh
f25a5071a6
Performance improvement by avoiding unnecessary calls to memset().
...
FossilOrigin-Name: 85940468e6f93f7c493fbc129f13cf6233c5d0c0
2009-11-18 23:01:25 +00:00
dan
bd61689382
Add some missing comments and fix some other issues in fts3 code.
...
FossilOrigin-Name: 2fe579e778b75fbf503c02e01e5424c1926f2b49
2009-11-18 15:35:58 +00:00
drh
2f2855b638
Suppress more instances of unnecessary OP_IsNull and OP_Affinity opcodes.
...
FossilOrigin-Name: bf6c0bd1c5568c6292ea0a64c8a5071e1bd3079a
2009-11-18 01:25:26 +00:00
drh
3c65721a5b
Enhancements to the VDBE opcode loop to reduce the number of machine-code
...
instructions evaluated by about 10%.
FossilOrigin-Name: 9744ffb3f5bc6d8fd59fbb6577a0d549411cd967
2009-11-17 23:59:58 +00:00
drh
039fc32e84
Code generator tries to avoid pointless OP_IsNull and OP_Affinity opcodes.
...
FossilOrigin-Name: ebb0c8a3e977dc741704e733b5a5d931d9b27028
2009-11-17 18:31:47 +00:00
dan
f13b704ee6
Improvements to the way fts3 reads the full-text index.
...
FossilOrigin-Name: 45c051e78651d8204c17cecdda2bde705698881f
2009-11-17 12:52:10 +00:00
drh
68ff78b1b0
Make sure the output of sqlite3OsFullPathname is initialized even if the
...
fails due to I/O or OOM errors.
FossilOrigin-Name: e4943adb83819dee06e2e9da25ff6d967ca170de
2009-11-16 23:36:33 +00:00
drh
f6a82030a8
Fix a reference to freed memory that can occur following an OOM error in
...
where.c.
FossilOrigin-Name: 929b6047391411c6f539e47afe6b63d16e352ccb
2009-11-16 22:54:50 +00:00
drh
372726336b
Back out part of the change in [23ea2b700fd6d28d] since TH3 reveals some
...
problems in OOM situations.
FossilOrigin-Name: 15d215d62df72c1bf1e605629692ee40d96546a6
2009-11-16 21:28:45 +00:00