drh
c8ac0d1649
Fix an unsafe VM register deallocation.
...
FossilOrigin-Name: cfba2c8dadbf1fa6f1602a327933570820a3b134
2013-02-16 02:41:01 +00:00
mistachkin
4600255a88
Check for a NULL handle prior to manually calling winClose.
...
FossilOrigin-Name: 843e1c543aabab8cd62f28742d5818887d36bcb7
2013-02-15 04:21:01 +00:00
drh
c95e01da22
Verify that the schema has not changed before running PRAGMA table_info,
...
index_list, index_info, and foreign_key_list.
FossilOrigin-Name: 82952d08f3e3aa80a7f51e80dbc89742cb4a09f0
2013-02-14 16:16:05 +00:00
mistachkin
9ce59a947f
On WinCE, fill in the winFile structure after winceCreateLock has succeeded.
...
FossilOrigin-Name: ec13544ce336e8a02b34d574ced5912b06c82c0e
2013-02-13 22:54:03 +00:00
drh
4207a3fb9b
Add recent API additions to the extension mechanism.
...
FossilOrigin-Name: 7e10a62d0eb1cb2bdafb6752b78a9d368e9f21f5
2013-02-13 14:04:28 +00:00
drh
a4b05e2874
Allow an index to be used for sorting even if prior terms of the index
...
are constrained by IN operators.
FossilOrigin-Name: 2cef8b68f0e1216cf68bb7dd45a5a9a330748070
2013-02-13 01:00:35 +00:00
drh
25129243b7
Improve memory allocation error handling on WinCE.
...
FossilOrigin-Name: cdbca259da80df901837034d2616da434cb82216
2013-02-12 22:20:01 +00:00
drh
785097da6b
A bug report coming from from Firefox
...
([https://bugzilla.mozilla.org/show_bug.cgi?id=840377 ])
describes an infinite recursion. We are unable to reproduce the problem.
Nevertheless, this check-in should prevent the problem from ever occurring
again.
FossilOrigin-Name: b7222a2bd035e7a32dc9416b25a488d9d017aad1
2013-02-12 22:09:48 +00:00
mistachkin
7e87eae901
Improve memory allocation error handling on WinCE.
...
FossilOrigin-Name: 09dfc0c915ec2f0c5f633a3485d47cad15eec4dc
2013-02-12 09:46:48 +00:00
drh
a173eab75f
Add extended error codes for all SQLITE_CONSTRAINT errors.
...
FossilOrigin-Name: 939d8282748b00a7032cdd72e5d3bf3086ebfc97
2013-02-11 13:47:39 +00:00
drh
433dccfb52
Rename SQLITE_CONSTRAINT_RAISE to SQLITE_CONSTRAINT_TRIGGER. Put the
...
extended constraint error codes in alphabetical order. Add many test cases
for the extended constraint error codes.
FossilOrigin-Name: 3f67437536591a1b0742a25b983707933aaa16d5
2013-02-09 15:37:11 +00:00
drh
d91c1a1768
Add extended error codes for constraint errors.
...
FossilOrigin-Name: 5461104668a49529577f21df97f6a0e7d8f0c679
2013-02-09 13:58:25 +00:00
drh
5edf8435d3
Fix a potential NULL-pointer dereference following an OOM error
...
in the query planner logic for virtual tables with OR-connected terms.
FossilOrigin-Name: 71b6c26053fdf2a5a84116e005bad1f2ca873a66
2013-02-08 23:18:18 +00:00
drh
3667033bfc
Make sure the virtual tables that take advantage of IN operators sort the
...
RHS of the IN operator in the correct order according to the ORDER BY
clause.
FossilOrigin-Name: b016b7546d6fbfba06019398b9ac239b0cbe9086
2013-02-08 20:39:02 +00:00
drh
2d96b934c8
Loop through the elements on the RHS of an IN operator in reverse order when
...
the ORDER BY clauses specifies DESC.
FossilOrigin-Name: f78395c8896666bb1359b83fbcd58d5e3dbc39d3
2013-02-08 18:48:23 +00:00
drh
c3e552ff5c
Allow the "a=?1 OR a=?2" to "a IN (?1,?2)" transformation to work on virtual
...
tables again. This was formerly restricted because virtual tables could not
optimize IN terms. (See check-in [fad88e71cf195e].) But IN terms are now
used by virtual tables (as of check-in [3d65c70343]) so the restriction can
now be removed.
FossilOrigin-Name: a917c1f09254b54e03e31b119cc49c551269d82e
2013-02-08 16:04:19 +00:00
drh
1b8fc65b92
Allow an index to be used for sorting even if prior terms of the index
...
are constrained by IN operators.
FossilOrigin-Name: 98bf668ab1a8683b46ee8c94cb60f8215aabc517
2013-02-07 21:15:14 +00:00
drh
928d9c6209
Fix harmless compiler warnings.
...
FossilOrigin-Name: 4a7b4ee011fea911b981206c242e3d5553303b52
2013-02-07 09:33:56 +00:00
mistachkin
2bfe1df01b
Add the ability to skip defining the localtime() function when being compiled for WinCE.
...
FossilOrigin-Name: e1640876df7ed6fb4e84292e5ce1f78635df64ab
2013-02-07 05:12:25 +00:00
drh
28a3bcba0a
Remove some debugging logic accidently left in the limit.test module.
...
FossilOrigin-Name: 7d346250e8a212880c4635a455cc9c98a1395c4c
2013-01-30 01:46:06 +00:00
drh
547180baf0
Fix LIMIT and OFFSET so that they work and do not leak memory even on
...
complex queries involving deeply nested views of UNION ALL compounds.
Ticket [db4d96798da8]. Secondary to ticket [d58ccbb3f1b7].
FossilOrigin-Name: 497ee36cb8d07c936e6896135163c5cd7e94bdde
2013-01-29 23:55:50 +00:00
drh
e096205a7f
New debugging pragmas: PRAGMA vdbe_debug=ON is short-hand for the sql_trace,
...
vdbe_listing, and vdbe_trace pragmas. PRAGMA vdbe_debug enables tracing of
sqlite3VdbeAddOp() calls. None of this is active unless compiled with
SQLITE_DEBUG.
FossilOrigin-Name: ae565ff3e0836b0cb45cc0ba7f27fa8cb2d21d77
2013-01-29 19:14:31 +00:00
drh
47f2239fc1
Fix an issue with the SQLITE_TESTCTRL_EXPLAIN_STMT and compound queries with
...
multiple terms.
FossilOrigin-Name: a6499c2521637931661ed4d3afc4f96f91c69785
2013-01-28 22:52:34 +00:00
drh
d2a5623866
Issue an error message and quit (rather than overflowing a reference counter)
...
if the number of references to a table exceeds the maximum due to nested
UNION views. Fix for ticket [d58ccbb3f1].
FossilOrigin-Name: c2462a95ed8e1e69886681400d673207d906bf1b
2013-01-28 19:00:20 +00:00
drh
173ba0998c
Cause the command-line shell to issue an error message if you give something
...
that does not look like a boolean value to a dot-command that wants a boolean
argument.
FossilOrigin-Name: b4d94947fc11bd63180cbc27554b3bbb60abe7ff
2013-01-28 18:18:26 +00:00
drh
7c37e2f674
Add a single test case to fts4unicode.test to verify that title-case
...
maps to lower case.
FossilOrigin-Name: 955a9459dabad231aa8d6282676975ab7fba244e
2013-01-26 19:31:42 +00:00
drh
ef4c035275
Fix the test_spellfix.c extension so that it can be made loadable at run-time.
...
Add spellfix to the shell when building using the build-shell.sh script.
FossilOrigin-Name: 7813b17d8b9fe48ddc841fe1c4bb75f7747073de
2013-01-25 19:11:31 +00:00
drh
d3ac7d9b51
Enhance the command-line shell so that adding a non-zero numeric argument
...
to the ".exit" command causes an immediate exit without cleaning up. This
can be used (for example) to cause journal files to be left behind.
FossilOrigin-Name: 8ba951d1b76a0fb0ffd9bc6cec1be3ddba80538a
2013-01-25 18:33:43 +00:00
drh
1590d10bc9
Add btree-page decoding logic to showwal.c. Commands of the form:
...
"showwal $FILE 123bmc" show the content of the btree page in frame
123. "b" means decode the btree. "c" means show cell content.
"m" means give a map of the btree page.
FossilOrigin-Name: 93b159da5d2570946fdcd7da120bf7eb82b840f3
2013-01-25 15:59:55 +00:00
drh
03c41c0bc9
Further improvements to showwal.c: Reset the checksum after each frame so that
...
only individual checksum failures are shown. And only show failures, not
correct checksums.
FossilOrigin-Name: 4e2bf57549a8d50fc0993386c724eb4a2b35c9fe
2013-01-25 15:31:44 +00:00
drh
d63ce044d1
Enhance the "showwal" utility program to show checksum failures on frames.
...
FossilOrigin-Name: a7f6d19816cbfc50060a9d1c0c402cdd23bd16de
2013-01-25 15:09:41 +00:00
drh
bc46f02c5d
Improved parsing of the arguments to the ".backup" command in the
...
command-line shell.
FossilOrigin-Name: f1127e87b90c7ba049404ec68cb4e99009c22185
2013-01-23 18:53:23 +00:00
drh
25fe97ae88
Fix a double-free() call that can occur
...
when SQLITE_ENABLE_TREE_EXPLAIN is defined.
FossilOrigin-Name: 5bfb5967d70433bf41d39b57506b7ec167a1b6a0
2013-01-23 18:44:22 +00:00
drh
afe1dd84af
Fix a typo in a comment in the test_regexp.c test file.
...
FossilOrigin-Name: 68346af70bc43baf791227a381e54f9aca802c72
2013-01-20 00:18:49 +00:00
drh
b064dc33bc
The \xXX escape in the test_regexp.c must be followed by exactly two hex
...
digits.
FossilOrigin-Name: 82957495aa0729468a020c2a0a45ed60019b6e07
2013-01-18 03:35:14 +00:00
drh
f218ee2dd4
Enhance the query planner to exploit transitivity of join constraints.
...
FossilOrigin-Name: 38852f158ab20bb4d7b264af987ec1538052bec3
2013-01-17 17:20:49 +00:00
drh
28fc473ce6
Improved error messages on the RTREE virtual table. Make the "fs" virtual
...
table used for testing available on windows.
FossilOrigin-Name: c0b90d75a86b01f7fafec755cbe046c14d725341
2013-01-17 17:05:28 +00:00
drh
eb5bc9261c
Add the ability to disable transitive constraints using the
...
sqlite3_test_control(SQLITE_TESTCTRL_OPTIMIZATIONS) interface.
FossilOrigin-Name: 593d67c8b0908daf7a70b2a310ed85515d384cbf
2013-01-17 16:43:33 +00:00
drh
63db0392ae
Avoid unnecessary collating sequence and affinity restrictions on the use
...
of transitivity. Add test cases to show that the restrictions are not
needed.
FossilOrigin-Name: 56549f45666b53876012df5c2bdf813474e10925
2013-01-17 16:18:55 +00:00
drh
738fc79dcf
Make more aggressive use of transitivity in optimizing queries. Add a test
...
case.
FossilOrigin-Name: d96762841a461e192fb2f317d684d000376350dd
2013-01-17 15:05:17 +00:00
mistachkin
806c00666f
Enhance RTree virtual table creation error messages that involve the getNodeSize() function.
...
FossilOrigin-Name: 652233d646236d3fbca629813b20d075f00f3ed6
2013-01-17 03:18:38 +00:00
mistachkin
413c63ba81
Make the 'fs' virtual table module portable to Windows.
...
FossilOrigin-Name: dd473cae5b6ea02b73168b30365f0af5556ee24d
2013-01-17 03:18:14 +00:00
drh
58eb1c0af1
Improved comments explaining the operation of the findTerm() utility routine
...
in where.c. Increase the maximum number of levels of transitivity from 4
to 11.
FossilOrigin-Name: fe152f8b048c9a18f99fa6096ff0e68dd630c318
2013-01-17 00:08:42 +00:00
drh
7fe18b4105
Fix the activate_extensions pragma so that it is a no-op when the required
...
argument is omitted.
FossilOrigin-Name: 6195ebd83323eaad92a0aa095cce1094bf8e2ba6
2013-01-16 20:33:02 +00:00
drh
7a5bcc0f08
Enhance the query planner to exploit transitivity of join constraints in
...
a multi-way join.
FossilOrigin-Name: 13171eb5dc19733276fbfd5515d75b70a9f5f5d7
2013-01-16 17:08:58 +00:00
drh
3bd5ab8638
Improvements to query planning for joins: Avoid unnecessary calls to
...
"optimal scan" checks in cases where table reordering is not possible.
Make sure optimal scan checks are carried out for CROSS JOINs and LEFT
JOINs.
FossilOrigin-Name: d5ebb7877885839e93eee3b322624d4c4215c1c4
2013-01-16 00:46:09 +00:00
drh
ea84a65e4e
Fix a missing word in a comment. Enhance the "wheretrace" debugging output
...
to show the estimated cost of each table option while planning the join order.
FossilOrigin-Name: ac4e119a87497f2e422ff1cb711112ed8594bfa9
2013-01-15 18:49:07 +00:00
drh
5d5cf01ee0
Clarification to a comment in where.c. No code changes.
...
FossilOrigin-Name: 04507c176330a06b09dcafa35ec0ca7498f5ace7
2013-01-15 16:15:28 +00:00
dan
9f5ff37120
Add another test for the fts4 content= option.
...
FossilOrigin-Name: 7e6007a0002f6989bd489abeba8db52acb4a6854
2013-01-11 09:58:54 +00:00
dan
9fe27de651
Check in an extra test for the fts4 "content=" option. No code changes.
...
FossilOrigin-Name: 0d0e5ab8f16c890629ec1120c78168ef6be9e419
2013-01-09 15:44:23 +00:00