danielk1977
fc02882ba9
Add the ioerr3.test file, that found an error in br3317. The error is not present in this branch. (CVS 4640)
...
FossilOrigin-Name: d3efec148968538e225f5716359a6a25e8941362
2007-12-19 09:20:41 +00:00
drh
cbd2da9ce9
When SQLITE_MAX_SQL_LENGTH is 0, disable the limit. Make the default 0.
...
Once again build the sqlite3 CLI from individual source files so that
it can be built on systems that lack tclsh. Tickets #2845 and #2846 . (CVS 4636)
FossilOrigin-Name: 07aeca3b9c51e538ba7939950a970f62e51bd3ea
2007-12-17 16:20:06 +00:00
drh
49df6b749c
Fix an out-of-memory NULL pointer defer in the code generator. Ticket #2843 . (CVS 4630)
...
FossilOrigin-Name: b821b6ed176b4259e1d4b56c8eb548933b6f530a
2007-12-14 15:12:21 +00:00
drh
85b623f2f9
Change all instances of "it's" in comments to either "its" or "it is",
...
as appropriate, in case the comments are ever again read by a pedantic
grammarian. Ticket #2840 . (CVS 4629)
FossilOrigin-Name: 4e91a267febda572e7239f0f1cc66b3102558c36
2007-12-13 21:54:09 +00:00
danielk1977
b9fdb2c2f7
Add test cases for errors in "IN(SELECT ...)" expressions where the SELECT statement is a compound SELECT. No faults found. (CVS 4626)
...
FossilOrigin-Name: 49b67adfe9f15dfac34cb30f965920bf61bceee7
2007-12-13 18:24:21 +00:00
drh
43f6e06460
Additional test cases for tkt2822. Fix a related bug in printf(). (CVS 4624)
...
FossilOrigin-Name: 8f184e40ff79c3c5ef98337615f58a4a6d0249dd
2007-12-13 17:50:22 +00:00
danielk1977
61116ae1ca
Return an error if the user attempts to rename a view. Related to (but not a fix for) #2831 . (CVS 4623)
...
FossilOrigin-Name: 19d56d997f50be81ac2baace16b7e7a1b674301a
2007-12-13 08:15:30 +00:00
danielk1977
01874bfc51
Adjust the test suite to account for recent changes related to #2822 . Most changes are related to English language error messages only. (CVS 4622)
...
FossilOrigin-Name: 2f88b9b3e3c9abc3ae4a5dcef82707dd74f8aace
2007-12-13 07:58:50 +00:00
drh
1e281291fb
ORDER BY in a compound SELECT will first match against the left-most SELECT.
...
If there is no match there, it begins working its way to the right. (CVS 4621)
FossilOrigin-Name: 56063ec84b130bcdb0e90bc76fabca394d0d867f
2007-12-13 03:45:07 +00:00
drh
9a99334d54
Towards getting ORDER BY to match against the correctin columns.
...
This version only looks at the left-most column in a compound SELECT.
That is the correct thing to do, but not what SQLite has historically done. (CVS 4620)
FossilOrigin-Name: bbddf16ac9539c7d48adfc73c5a90eecb8df6865
2007-12-13 02:45:31 +00:00
drh
9019f4a65f
Minor cleanup changes on the OP_StackDepth opcode. Added the
...
sidedelete test for additional testing of ticket #2832 . (CVS 4619)
FossilOrigin-Name: c0689409320de1532be0c0cae12b4b716f6bffb9
2007-12-12 22:24:12 +00:00
danielk1977
c32a93fe95
Remove an (explain) accidentally left in tkt2832.test. (CVS 4618)
...
FossilOrigin-Name: 48947e2b75d39c5be0d08fe1c7b888d9065f9116
2007-12-12 18:05:20 +00:00
danielk1977
967573d56a
Fix some problems similar to #2832 , but caused by triggers instead of an OR REPLACE clause. (CVS 4615)
...
FossilOrigin-Name: ee98ae17187296f7b0181c3d4d2b942d5cd4bc8f
2007-12-12 16:06:23 +00:00
danielk1977
2d78617d66
Test file containing minimal example of bug #2832 . (CVS 4614)
...
FossilOrigin-Name: ed2e61a9fab6a9a102031c10bc6f89e78b4c7447
2007-12-12 14:46:58 +00:00
danielk1977
ae271d6a38
Fix test numbering in tkt2822.test. Ticket #2830 . (CVS 4611)
...
FossilOrigin-Name: 8fe8e9c460e0f8ebc4267de96b0c971cb6370861
2007-12-12 04:38:26 +00:00
danielk1977
70517ab9a1
Further modifications to do with ORDER BY and compound SELECT queries. Related to ticket #2822 . (CVS 4606)
...
FossilOrigin-Name: 0d9b0e6e3a8f8a66956878084085842e94c3cb2f
2007-12-10 18:51:47 +00:00
danielk1977
284f4aca32
Fix compilation/testing with OMIT_SUBQUERY defined. Ticket #2828 . (CVS 4603)
...
FossilOrigin-Name: 0b34a18651764e650faba983be8593992ab2f4a9
2007-12-10 05:03:46 +00:00
drh
4c77431448
Better resolution of ORDER BY terms in compound queries. Candidate
...
solution for ticket #2822 . Needs more testing and documentation
before going final. (CVS 4602)
FossilOrigin-Name: 62a78d212c53a9cb1759d03134653a75f3a086b6
2007-12-08 21:10:20 +00:00
drh
9213d9e5fb
Strengthen the tests for aggregate functions in GROUP BY clauses.
...
Changes to test cases only. No changes to code. (CVS 4601)
FossilOrigin-Name: 4be8e6765bf8bc48747b2542f2ed77066fb9dcb9
2007-12-08 18:01:30 +00:00
drh
464fc33a82
Fix a leaking database connection in the vacuum2 test script.
...
Ticket #2827 . (CVS 4596)
FossilOrigin-Name: f29deb5f0bfcd6d00795aeb66dece717a6c1768a
2007-12-06 17:41:27 +00:00
drh
ddac25c732
Add the ability to change the autovacuum status of an existing database
...
by setting the auto_vacuum pragma then running the VACUUM command. (CVS 4592)
FossilOrigin-Name: bdfc19e838b369a8c5d5d23663fad690f55ba3d7
2007-12-05 01:38:23 +00:00
drh
77658e2f0d
Make sure statement journals are initiated when doing DROP operations
...
(since the DROP might fail after sqlite_master changes). Also make
sure statement journals are initiated if there are pending SELECT
statements. Ticket #2820 . (CVS 4591)
FossilOrigin-Name: bf34284ff0c60ae6e735e09bb29cd48b158e8dce
2007-12-04 16:54:52 +00:00
danielk1977
fe91033907
When parsing CREATE INDEX statements from the sqlite_master table, do not search the temp database schema for the corresponding table. Only consider the database for which the schema is being parsed. Ticket #2817 . (CVS 4587)
...
FossilOrigin-Name: e6f02aa5ae6da0befdf98fdd5884345f3cb7f5ea
2007-12-02 11:46:34 +00:00
danielk1977
21de2e755c
When using an index to scan a database table, read column data from the index in preference to the table. This increases the likelihood that the table will not be required at all. (CVS 4580)
...
FossilOrigin-Name: 061608c72ac0a96eacf3b64d638235e4739f96ba
2007-11-29 17:43:27 +00:00
danielk1977
9a96b66810
Optimisations for expressions of the form "<value> IN (SELECT <column> FROM <table>)". (CVS 4579)
...
FossilOrigin-Name: 56d0e32677744df8570b519fae1c04da4ea4984d
2007-11-29 17:05:18 +00:00
drh
ade8648301
Add the {quote: StrAccum} object
...
for accumulating strings. Revamp xprintf to use
the new object. Rewrite the group_concat() function to use the new object.
Productize and test the group_concat() function. (CVS 4578)
FossilOrigin-Name: 221aee72be040769e8026b91648f03c6366a8821
2007-11-28 22:36:40 +00:00
drh
4aa2bfe67d
Preset the legacy_file_format pragma to the value of the primary
...
database so that a VACUUM will not unknowingly alter the setting.
Ticket #2804 . (CVS 4574)
FossilOrigin-Name: f731fa6bb398d8af621af17dc0677dd0f715c4a7
2007-11-28 13:43:16 +00:00
drh
f32fabfd75
Add test cases to verify that the file format is preserved across
...
VACUUM. Ticket #2804 . (CVS 4572)
FossilOrigin-Name: 57400f50c600a59b56ba6eadfdc740235c194cd6
2007-11-27 23:36:59 +00:00
drh
039edbb479
Use the hexio test utility rather than TCL's binary I/O to avoid
...
32/64-bit problems in io.test. Ticket #2803 . (This is a change
to the test harness only - not to SQLite.) (CVS 4571)
FossilOrigin-Name: 07f7dde8a636aa05b917daa6b248c6f98654aab8
2007-11-27 23:11:45 +00:00
drh
543165ef97
Update the version number to 3.5.3. Fix some minor testing problems. (CVS 4563)
...
FossilOrigin-Name: f4c8f2d1918f24514f02cae9172c77f6957d32c1
2007-11-27 14:46:41 +00:00
drh
f998b730dd
Additional out-of-memory testing. Fix bugs caused by malloc failures in
...
where.c. Tickets #2794 , #2795 , #2796 , and #2797 . (CVS 4560)
FossilOrigin-Name: 5e02dbabcfa42173adff234c086df1e962824c92
2007-11-26 13:36:00 +00:00
drh
0f31c45c10
Fix a typo in a change to all.test from earlier today. (CVS 4557)
...
FossilOrigin-Name: 8c0b2157f2a2f8ecfa641a041279faf21aedd4e0
2007-11-23 18:19:22 +00:00
drh
613a0fe455
Changes fts3 to use only sqlite3_malloc() and not system malloc.
...
Ticket #2762 . (CVS 4554)
FossilOrigin-Name: 460af6bb668094c99a1d4dc1540b44b6d1d036b6
2007-11-23 17:31:17 +00:00
drh
48d1178ad8
Make sure that INSERT INTO ... SELECT ... always uses an ephemeral
...
intermediate table if the SELECT clause refers to the destination table,
even if the SELECT clause is compound or uses the destination table
in a subquery. This fixes a long-standing bug that can cause an
infinite loop for some SQL statements. (CVS 4552)
FossilOrigin-Name: 492b39b6a8bf4ad8792d7a7949f77827a5047fd8
2007-11-23 15:02:19 +00:00
drh
f4ce8ed048
Avoid a double-free in an out-of-memory situation with a USING
...
clause or NATURAL JOIN. Ticket #2789 . (CVS 4551)
FossilOrigin-Name: 596694752c5935ae50ad38d3b41bbda39ca999d8
2007-11-23 13:42:51 +00:00
drh
cfa063b377
Handle out-of-memory situations inside the query flattener.
...
Ticket #2784 . (CVS 4549)
FossilOrigin-Name: 2655a3f2d18fe16a36a6cf3776261ee0507e6912
2007-11-21 15:24:00 +00:00
danielk1977
932083c60f
Fix a crash that can occur after a malloc failure. Ticket #2775 . (CVS 4547)
...
FossilOrigin-Name: c91bc8d33306881cb2501070dccced92c82cf165
2007-11-16 14:55:46 +00:00
shess
cd7274ceb0
Don't do anything when input doclists are both empty. Ticket #2774 (CVS 4546)
...
FossilOrigin-Name: 75cb46f82a6a95dbe9e279dede299bafa2e91cae
2007-11-16 00:23:07 +00:00
danielk1977
b8b4bfa061
Fix a segfault that can occur after a malloc failure in an ANALYZE statement. Ticket #2772 . (CVS 4544)
...
FossilOrigin-Name: d05eb67dd6e171cfe8b9528aa3c7c953780d8c82
2007-11-15 13:10:22 +00:00
danielk1977
8e556520e9
Modify the Tcl interface to use sqlite3_prepare_v2(). (CVS 4542)
...
FossilOrigin-Name: 7bb00c7df672cb8988121f30e3bbdea9ad951603
2007-11-13 10:30:24 +00:00
danielk1977
3c4809a201
Where possible, transform the DISTINCT qualifier to a GROUP BY clause. GROUP BY clauses may be optimized by indices, DISTINCT qualifiers cannot. (CVS 4538)
...
FossilOrigin-Name: e56331234791cf3d830a30e4cfa66682bdf2eed1
2007-11-12 15:29:18 +00:00
danielk1977
390025053e
Allow collation sequence names to be quoted. Ticket #2744 . (CVS 4537)
...
FossilOrigin-Name: 06749ac7afeea4adbdeb9315f3819d5224534c66
2007-11-12 09:50:26 +00:00
drh
95c0775484
Fix the code generation for UPDATE and DELETE so that
...
BEFORE triggers that use RAISE(IGNORE) do not leave extra
values on the stack. Ticket #2767 (CVS 4535)
FossilOrigin-Name: 3391f4139ccfe62cc27739a06567c422ddae9c69
2007-11-11 18:36:34 +00:00
danielk1977
7eb42c8204
Reset the writer-thread halt criteria after halting the thread. (CVS 4528)
...
FossilOrigin-Name: ecbff972a1f5c7d846c322c435fa73584655b7f0
2007-11-05 17:01:08 +00:00
danielk1977
662278e4de
Fix some minor problems with malloc failure and in-memory databases. (CVS 4527)
...
FossilOrigin-Name: b752906e708e1c8c76084152f5829e16e8988ef2
2007-11-05 15:30:12 +00:00
drh
0152123730
Fix a bug in the misc1 test script. (CVS 4526)
...
FossilOrigin-Name: fa16996d99cdce9f652508e3a70b7e5747810823
2007-11-05 14:58:23 +00:00
danielk1977
6d64307b03
Handle "IS NULL" constraints on virtual table scans. IS NULL constraints are not passed to the virtual table layer. Ticket #2759 . (CVS 4523)
...
FossilOrigin-Name: 7027368c15b3270a139bea5612d7c03c2288dcc4
2007-11-05 05:12:53 +00:00
drh
0cf19ed817
Add comments, assertions, and test cases to demonstrate that the
...
problem described in ticket #2742 is not a real problem. (CVS 4510)
FossilOrigin-Name: c085d6dfc0f5849113986cb2a25e64d0c95b3dfb
2007-10-23 18:55:48 +00:00
drh
598f134020
Floating point and 64-bit integer constants store in the virtual
...
machine opcodes in binary, not as text. Performance improvement.
Ticket #2733 . (CVS 4507)
FossilOrigin-Name: 7e30fd6a09899842c922b044714dc66796e545d4
2007-10-23 15:39:45 +00:00
drh
9bc5449f9d
Make sure the sqlite3_vfs_register() and sqlite3_vfs_unregister() APIs
...
work right even if not VFS is currently registered. Ticket #2738 . (CVS 4505)
FossilOrigin-Name: c36500871e85b55cb0804d5c9e88fa6861a507a9
2007-10-23 14:49:59 +00:00