Commit Graph

8514 Commits

Author SHA1 Message Date
dan e25ac099f1 Further improvements to coverage of fts3.c. Fixes for bugs revealed by the same.
FossilOrigin-Name: 918b609290127f54326c638d82837d117398eade
2010-10-25 19:01:25 +00:00
dan ddf80eb8ce Test coverage improvements for fts3.c.
FossilOrigin-Name: a8b1d99899678b72c2a487909eabed321593d55f
2010-10-25 12:47:43 +00:00
dan 74c3e78cad Add test for matchinfo when a phrase includes some common tokens.
FossilOrigin-Name: 80a54ebc41e4224ab93d92cb390524db1c398155
2010-10-25 09:01:57 +00:00
dan 378d0ab97b Fixes for the matchinfo() function related to FTS4 common token handling.
FossilOrigin-Name: deb80eac9112d21835dfd3cee08ed8f09d975bf7
2010-10-23 19:07:30 +00:00
dan cfff8343ae Add new test file fts3defer2.test.
FossilOrigin-Name: 5a4d5bfcaeb78a81713f138b01c0ea45a15c4d6c
2010-10-22 19:03:33 +00:00
dan 789cb8f5cf Add missing comments and fix compiler warnings in new FTS3/4 code. Other minor fixes too.
FossilOrigin-Name: 1c9c70fec3c88319f7b2efe5316694a6ce0ab1a5
2010-10-22 16:44:39 +00:00
dan ca3b8f9c86 Merge trunk changes into experimental branch.
FossilOrigin-Name: fd1e5cade04961c2f5438a1dfcc2e15eafb4503f
2010-10-21 15:49:47 +00:00
dan 06b5db0e39 Fix some segfaults that could occur in obscure circumstances where error messages contained characters that could be mistaken for printf format specifiers.
FossilOrigin-Name: f91471e7234db490f97298b1ccb8d6c7fc45b089
2010-10-21 15:12:44 +00:00
drh 3edd8a555d Fix a typo-bug that prevented --disable-amalgamation from working in
Makefile.in.  Also fix an overly long line in Makfile.in.

FossilOrigin-Name: 2c3c4ba035e548e97101142692133cf685da16bc
2010-10-21 12:34:29 +00:00
drh 020efb1666 Add new WHERETRACE macros for better diagnostics of the query planner.
Added a new test case for the performance regression fixed by the previous
check-in.

FossilOrigin-Name: 1e0db99797be2821716de7138931ebd5cf8fa63b
2010-10-21 03:13:58 +00:00
drh 75ad260c2d Fix the query planner so that it uses the multi-index OR-clause solution if
that is the lowest cost estimate.  A prior bug cause the multi-index solution
to be ignored in some circumstances.

FossilOrigin-Name: 28ba6255282b1419b8b165e8461018d257b1f6c2
2010-10-21 02:05:06 +00:00
dan 4e76cc3650 Updates to FTS4 to improve performance and make more accurate cost estimates for prefix terms.
FossilOrigin-Name: d0a450ce78e99f55c862f26f9332786660007a0a
2010-10-20 18:56:04 +00:00
dan 4f7c5e684a Experimental changes to fts4 to try to selectively avoid loading very large doclists.
FossilOrigin-Name: 5ae0ba447a561e3b6637b52f9b83a9fc683d2572
2010-10-19 14:07:59 +00:00
drh 075ed30a9f Avoid taking locks on unused database connections when committing a
read transaction.

FossilOrigin-Name: c0ee614fd988f445c4884a37f494479bdd669185
2010-10-14 01:17:30 +00:00
drh 94bb2ba619 Check-in [d3c95e3a4e08d0] was incorrect. This is the correct fix for
sqlit3_bind_blob().  Ticket [860399cc408f2dd5f4]

FossilOrigin-Name: ea8c2f5f8a890dcb422e9e46298ae6ca378c74b7
2010-10-14 01:16:32 +00:00
drh 6fec9ee34c Fix the sqlite3_bind_blob() interface (and its kin) so that the destructor
is invoked if the binding fails.  Ticket [860399cc408f2dd5f41aed44b]
Update the documentation to explain which interfaces invoke their
destructors on failure and which do not.

FossilOrigin-Name: d3c95e3a4e08d08028e9bc7f282074e32b9cf950
2010-10-12 02:13:32 +00:00
drh 88404c2a7d Make sure the sqlite3_create_collation() interfaces always return an error
code if they fail.  Ticket [a04e42a3fcacaffa3133436].

FossilOrigin-Name: 6464276ec1c0951a6edc59eb402ca3dd49629a18
2010-10-11 17:58:21 +00:00
drh 4e49c77f88 Further changes to extension loading to support compile-time options.
FossilOrigin-Name: f818fb6f73ada64eaf8785d9bb2d439b6d755461
2010-10-11 17:57:41 +00:00
drh fd7ebbf696 Make APIs added since version 3.6.0 accessible to loadable extensions.
FossilOrigin-Name: 76c64a35567880b49af076df61c9fee76e934f14
2010-10-11 13:12:04 +00:00
dan a975b59f94 Add tests to e_createtable.test.
FossilOrigin-Name: 38bec827f1a0603ad36d1dc1bc83430ae370df38
2010-10-08 16:09:43 +00:00
drh 14f7e16bc6 Version 3.7.3
FossilOrigin-Name: 2677848087c9c090efb17c1893e77d6136a9111d
2010-10-08 02:34:02 +00:00
drh 4c6a4788fb Update the CLI test script to expect a version number of 3.7.3.
FossilOrigin-Name: e55ada89246d4cc5f476891c70572dc7c1c3643e
2010-10-07 13:29:13 +00:00
drh 51e79a7a3f Update the configure script and Makefile so that they work with 3.7.3.
FossilOrigin-Name: 97b63a1168c761d4754d91062b73086f36069517
2010-10-06 20:25:00 +00:00
drh 5e87be8705 Fix long-standing bugs with the handling of LIMIT clausing in
compound SELECT statements with FROM clause subqueries.
Ticket [38cb5df375078d3f9].

FossilOrigin-Name: b0450120eabfe5455cea1ed04cec587a5540b6b7
2010-10-06 18:55:37 +00:00
dan 14d14607a5 Fix minor test suite problems causing errors on OSX.
FossilOrigin-Name: 759c954fee215a64f21fe13491515eebebbc6d01
2010-10-06 16:42:52 +00:00
dan d468ad6559 Fix a bug in test code that was causing a valgrind error. No changes to production code.
FossilOrigin-Name: f29da7bec68fa2cdd97c75b30f7ab25c96f8d49a
2010-10-06 09:57:33 +00:00
drh f7f55edb68 Do not embedded #if inside an assert() statement.
Fix for check-in [dca8763872a]

FossilOrigin-Name: d7d4a94fc1209fd32d7c8e20ac83eb169b81ee25
2010-10-05 18:22:47 +00:00
dan 96b958afae Have the pager change to at least WRITER_CACHEMOD state before marking any pages as dirty (instead of immediately after). Otherwise, if an error occurs, the pager may be left in WRITER_LOCKED state with dirty pages in the cache.
FossilOrigin-Name: 471a4efbb7e5e32b144b2e2128337a6af950b8f5
2010-10-05 17:02:47 +00:00
drh 4533cd052d If walLockExclusive() fails for reasons other than SQLITE_BUSY inside of
walRestartLog() then propagate that error back up to the application.

FossilOrigin-Name: 04dcba6b3379d2168609950ed919c8f743705333
2010-10-05 15:41:05 +00:00
drh e062d7b847 Avoid all memory allocation (and hence the possiblitity of OOM failure)
in sqlite3_value_double() and sqlite3_column_double().

FossilOrigin-Name: 4afdf9705a7c2b67aea31c5d51b9c295867d62d1
2010-10-05 12:05:32 +00:00
dan 0015739ae5 Fix an assert() failing on OSX.
FossilOrigin-Name: dca8763872aa6244cb1a0f519167b360a6372d0d
2010-10-05 11:33:15 +00:00
dan 0a9312d92d Prevent backcompat.test from mistaking directories for binary executables.
FossilOrigin-Name: 717a1e50f005714b1d5233f80697db14cd8af659
2010-10-05 08:13:44 +00:00
drh 547caad4c4 Fix a performance regression (relative to version 3.6.23.1) caused by the
query planner taking into account non-indexable WHERE clause terms to select
the outermost join loops when it should be selecting tables for the outermost
loop that do not benefit from being in an inner loop.

FossilOrigin-Name: ece641eb8951c6314cedbdb3243f91cb199c3239
2010-10-04 23:55:50 +00:00
dan b4eb82f6cf Fix a couple of test script problems.
FossilOrigin-Name: dd106901407a4d98644dd614e16e9fdc10cd7423
2010-10-04 16:06:11 +00:00
dan 072734ec6c Fix memsubsys1.test so that it works with TEMP_STORE>=2.
FossilOrigin-Name: 8ad88ee0c1145eb9f92267c31d7d787739718716
2010-10-04 15:47:30 +00:00
shaneh 4b03f21e4f Warning cleanup from MSVC.
FossilOrigin-Name: cde62657d6f410a3d6899cd7b4000d276fe3c813
2010-10-04 14:11:54 +00:00
dan 55f1da093c Fix broken evidence marks in e_expr.test.
FossilOrigin-Name: 37ff94cec8a50d42c18f2253541bbcb0a6dfd0c3
2010-10-04 11:01:17 +00:00
dan 7b755196eb Add tests for table-constraints to e_createtable.test.
FossilOrigin-Name: 70f511872e938e096537fb0ca097ccdd3b33becc
2010-10-04 10:45:32 +00:00
dan 57f7f4b815 Add tests for CHECK and UNIQUE constraints to e_createtable.test.
FossilOrigin-Name: fb8db5581d884e5eb380480bc08d2106bfb6a9fc
2010-10-01 19:04:37 +00:00
drh aa1cf5abc0 Add #ifndef USE_SYSTEM_SQLITE...#endif around the bundled SQLite library
for the TCL bindings.

FossilOrigin-Name: 8d85584a4e0761afa0ff1e9e69036f1a66ab22dc
2010-10-01 17:23:46 +00:00
drh 4f788ec41a Updates to the showjournal.c utility in order to bring it up to version 3.
FossilOrigin-Name: fa97d895463be6fd963c29b4525c2664193e36ec
2010-10-01 13:28:43 +00:00
drh d66ff0aeaa Merge experimental into trunk: Refactor the text-to-numeric conversion
routines to work without zero-terminators and in UTF16 as well as UTF8.
Avoid invalidating strings with doing affinity conversions.

FossilOrigin-Name: 07ee080ec4527fd2191f41231208da66b3f6b955
2010-09-30 20:33:40 +00:00
shaneh a03a0563c1 Fix some matching issues in enc4.test affected by TCL versions.
FossilOrigin-Name: dd6d61a967e3c0d98b78987f6f7bb9bdf090174e
2010-09-30 20:11:24 +00:00
dan a3f5108c1f Add further tests to e_createtable.test.
FossilOrigin-Name: 0a4528d629018eae0b0f3e173ebda666c2e2d502
2010-09-30 18:43:14 +00:00
shaneh 0246dced24 Fix memory leak in enc4.test script.
FossilOrigin-Name: bfc294ae437e02984c08d47bed7b7fb49b71a1c2
2010-09-30 18:30:17 +00:00
shaneh 9fc47111f0 Additional encoding tests.
FossilOrigin-Name: c7f9363617a66ee43a87816ad42aaf2b75f13ea2
2010-09-30 18:19:44 +00:00
drh 6b87056570 Remove unnecessary calls to memAboutToChange() in vdbe.c. An affinity
change no longer invalidates shallow copies.

FossilOrigin-Name: afb0fd0b0421c42630c5e6e5e8811aca634bc9d0
2010-09-30 18:12:01 +00:00
drh 025586a259 Do correct affinity transformations on floating point values which have
a decimal point at the beginning or end of the mantissa.
Ticket [3998683a16a7076e08f5].

FossilOrigin-Name: ca154f97a590745539b2cbfd77eb319fd7392a40
2010-09-30 17:33:11 +00:00
shaneh 5f1d6b616e Changes to remove sqlite3FitsIn64Bits().
FossilOrigin-Name: 43fef1cab6315f837782ea601d5a2aeb9843ab3c
2010-09-30 16:51:25 +00:00
drh 9351862b6d Fix the handling of default values for ALTER TABLE ADD COLUMN columns so
that is able to deal with negative numbers, including large negative numbers.
Ticket [8454a207b9fd2243c4]

FossilOrigin-Name: ce6cc16e3a151a0c67855abde1411422dfcc8828
2010-09-30 14:48:06 +00:00