danielk1977
7751940d6e
Fixes for failures in fuzz_malloc.test. (CVS 4334)
...
FossilOrigin-Name: d3e502263808c1fe0487fda02f16adcbb1279183
2007-08-30 11:48:31 +00:00
danielk1977
a1644fd863
Modifications to the malloc failure tests to test transient and persistent failures. (CVS 4321)
...
FossilOrigin-Name: e38ef81b85feb5bff2ad8448f3438ff0ab36571e
2007-08-29 12:31:25 +00:00
danielk1977
1e5369531e
More work on refactoring of malloc() interfaces. There are still many errors. (CVS 4233)
...
FossilOrigin-Name: 77b1671351fe94b0ebc126a63140643deae2aa64
2007-08-16 10:09:01 +00:00
drh
174357527a
Half-way through a major refactoring of the memory allocation.
...
I have not even attempted to compile so I am certain there are
countless errors. (CVS 4231)
FossilOrigin-Name: deb7ecd65f7b83eaf0ba610eeef3b0ede61db1c3
2007-08-16 04:30:38 +00:00
drh
309be02483
Get the min/max optimization working with descending indices. Ticket #2514 . (CVS 4161)
...
FossilOrigin-Name: a80a3c9d0a5e0a8a3d67bd841e2076893fd5e9aa
2007-07-18 18:17:11 +00:00
danielk1977
034ca14f81
Allow virtual tables to mark columns as 'hidden'. Hidden columns do not show
...
up in "*" expansion, the implicit column list of an INSERT statement, or the results of a "PRAGMA table_info" statement. (CVS 4127)
FossilOrigin-Name: 7f887a6a00fdd6efc3740bd8a1731bb1abde087c
2007-06-26 10:38:54 +00:00
danielk1977
f3b863ed07
When expanding '*' in the result set of a SELECT, quote the expanded identifiers. Fix for #2450 . (CVS 4111)
...
FossilOrigin-Name: d5b7224f37db1729dd042d48765d7a79247e1bde
2007-06-24 06:32:17 +00:00
drh
5bd1bf2ebc
Fix a memory leak that was discovered by the tests that were added to
...
cover ticket #2339 . (CVS 4069)
FossilOrigin-Name: 1d10a489340718cc708e11e28e7bb31c67e00ad8
2007-06-15 15:31:49 +00:00
drh
0325d8731b
Add the SQLITE_MAX_COMPOUND_SELECT compile-time parameter for limiting
...
the number of terms in a compound select statement. Set the default limit
to 100. (CVS 4046)
FossilOrigin-Name: 0d71ad4591eae9de8749fb2da6455ac661587f7a
2007-06-07 10:55:35 +00:00
danielk1977
9afe689ea4
Extend out-of-memory testing with fuzzily generated sql some. One fix for a problem found by the same. (CVS 4044)
...
FossilOrigin-Name: d2282e64f1320913797dfb4dae4db0428a15a200
2007-05-31 08:20:43 +00:00
danielk1977
a670b22641
Fix a problem with ORDER BY and compound SELECT queries. (CVS 3995)
...
FossilOrigin-Name: af76928fc5891f9a222ac0c39f8b443a9707b9e3
2007-05-14 16:50:48 +00:00
danielk1977
fa2bb6da24
Fix a bug in "flattening" optimization. Occured if the parent of the flattened sub-query is also the parent of a sub-query that uses a compound op (i.e. UNION, INTERSECT etc.). (CVS 3994)
...
FossilOrigin-Name: 1c33829c9ebcf1ff1bd21b161c73a642471b613a
2007-05-14 15:49:43 +00:00
danielk1977
1e4eaeb515
Prevent sub-queries with "LIMIT 0" from leaving an extra value on the vdbe stack. Also updates to fuzz.test. (CVS 3993)
...
FossilOrigin-Name: b1d1b16e9857a1c05f60cf2ae15f5a534b0dd0ac
2007-05-14 14:04:59 +00:00
drh
4f07e5fbdf
Remove terms with operator TK_AS from the expression tree. Ticket #2356 . (CVS 3991)
...
FossilOrigin-Name: 5627ff74be9242418434a06fe5c104d1f9128cab
2007-05-14 11:34:46 +00:00
danielk1977
fc9760654a
Add code to enforce the MAX_EXPR_DEPTH limit. (CVS 3968)
...
FossilOrigin-Name: 2c9c94a24d52a1c9f5d1b32cbdff794a2dd74126
2007-05-10 10:46:56 +00:00
drh
e305f43f17
Make sure compound queries inside a subquery only return a single result
...
column. Ticket #2347 . (CVS 3967)
FossilOrigin-Name: 66954bdd81dabfb60306de8480b5477a4acb1d9e
2007-05-09 22:56:39 +00:00
drh
e5c941b83b
Add more code to enforce the limits specified in limits.h. (CVS 3946)
...
FossilOrigin-Name: c59d436095b5258d7132a432c0cb6cd5a7990d85
2007-05-08 13:58:26 +00:00
drh
ad91c6cd40
Do not flatten subqueries that are part of a compound SELECT and which
...
have both an ORDER BY and a LIMIT clause. Ticket #2339 . (CVS 3932)
FossilOrigin-Name: 9600a998043c6dd1d5ecb03d1ee9a9273910243d
2007-05-06 20:04:24 +00:00
drh
5bb3eb9b9a
Eliminate all uses of sprintf() and strcpy(). These were not being
...
misused. But getting rid of them removes a library dependency. And
it avoids warnings from the OpenBSD compiler. Ticket #2336 . (CVS 3916)
FossilOrigin-Name: ba4845b32bdf38e623c4f7246e6e327715bbba4b
2007-05-04 13:15:55 +00:00
drh
f68d7d17a1
Use memmove() instead of memcpy() when moving between memory regions that
...
might overlap. Ticket #2334 . (CVS 3905)
FossilOrigin-Name: 678d672b73cc7b7f563c15daee3831cb5bbd890e
2007-05-03 13:02:26 +00:00
drh
5ea2df9107
Fix a memory leak introduced by (3842) associated with ticket #2296 . (CVS 3848)
...
FossilOrigin-Name: cdc7608b8d590b2ca19be37f94f2cd17423ba8ac
2007-04-16 17:07:55 +00:00
danielk1977
a04a34ff1a
Ensure sqlite3_finalize() can be called from within the xDisconnect() method of virtual tables. (CVS 3845)
...
FossilOrigin-Name: 8d6c3bfc4dfdd380a2915d778e256d3e49d22d72
2007-04-16 15:06:25 +00:00
drh
94ccde58d0
Match ORDER BY terms to columns using names in compound queries. Make sure
...
this works for subqueries, especially in the right-hand side of an IN
operator. Ticket #2296 . (CVS 3842)
FossilOrigin-Name: cfc6f933dc60ca88ae848f7f0c402e820437c2ff
2007-04-13 16:06:32 +00:00
drh
994c80af27
Changes toward fixes for tickets #2296 and #2291 . (CVS 3838)
...
FossilOrigin-Name: 0dd3e2e47b09156838edfa4dea0d82f9cf22d94d
2007-04-12 21:25:01 +00:00
drh
6c1426fd14
Get the column affinities right when processing an IN operator where
...
the right-hand side is a subquery with an ORDER BY clause. Ticket #2295 .
This bug has likely been present since version 3.0.0 and it has just now
been noticed, so it seems to be a obscure case. (CVS 3837)
FossilOrigin-Name: 4062ddf3c7f4fd150292304fa33ca76dc35571a1
2007-04-12 03:54:38 +00:00
drh
77a2a5e73c
Changes to increase test coverage. (CVS 3819)
...
FossilOrigin-Name: fd4da6b13499af2397d52cb0f25f8ff6f2192431
2007-04-06 01:04:39 +00:00
drh
61fc595fdd
Fix some warnings about unused and uninitialized variables. (CVS 3788)
...
FossilOrigin-Name: 18aec1ddfb08b74f0ef9cf1215eac7af71449db3
2007-04-01 23:49:51 +00:00
drh
e4d9081307
Change BtreeMoveto so that it can be biased to the right or to the center.
...
Use a right bias when appending and a center bias when searching. This
gives about a 15% reduction in calls to sqlite3VdbeRecordCompare. (CVS 3741)
FossilOrigin-Name: ad4a6b1a91bcefd8a4c75e8dc99c1153c72c31a3
2007-03-29 05:51:49 +00:00
danielk1977
a41c7497e8
Disable the "SELECT max(rowid) ..." optimization for virtual tables. Ticket #2250 . (CVS 3669)
...
FossilOrigin-Name: ddb4d0af5770c7030fe6e92119972c9508724b9a
2007-03-02 07:27:00 +00:00
drh
8103b7d2b7
Make sure the INSERT xfer optimization does not trigger if the CHECK
...
constraints on the two tables are not identical. Ticket #2252 . (CVS 3660)
FossilOrigin-Name: 6fc18275230563437f2985eac3795e4dfe8eb9de
2007-02-24 13:23:51 +00:00
drh
945498f3f2
Make sure that integer values are converted to real when pulled from
...
a REAL table column by GROUP BY. Ticket #2251 . Also make sure default
values are correctly expanded. There may be other places in the code
where this issue comes up - we need to look further. (CVS 3659)
FossilOrigin-Name: e11bbf174c5a2fa75e3d1dd450c8b2a18f40e4da
2007-02-24 11:52:52 +00:00
danielk1977
0817d0dfc2
Use OP_VColumn instead of OP_Column when querying virtual tables for values to save in aggregate context records. #2230 . (CVS 3644)
...
FossilOrigin-Name: cb78f7cb0f0bf0c799a929fd6ea30f25e2a7b5d0
2007-02-14 09:19:36 +00:00
drh
8b4c40d8ac
First cut at adding the COLLATE operator. Regression tests pass (or at least
...
the quick set does) and a few new tests have been added. But many more
tests are needed. Rules for combining collations need to be worked out. (CVS 3624)
FossilOrigin-Name: 85cca7cd252d46ba71d302a89bc67c56146ec552
2007-02-01 23:02:45 +00:00
drh
485f00391b
Add code to select.c for printing the contents of parse-tree structures.
...
The code is normally omitted. You must compile with -DSQLITE_TEST
or -DSQLITE_DEBUG to enable it. (CVS 3606)
FossilOrigin-Name: 1b26d6875612a0ed25d6e293f005ea4966692759
2007-01-26 19:23:33 +00:00
drh
0ee5a1e763
Fix a (harmless) assertion fault on nested views where the inner views
...
are compound selects. Ticket #2192 . (CVS 3605)
FossilOrigin-Name: 942e7193bbf1ffe9a703891d175e016631e2ad5c
2007-01-26 19:04:00 +00:00
drh
61dfc31d80
Query optimizer enhancement: In "FROM a,b,c left join d" allow the C table
...
to be reordered with A and B. This used to be the case but the capability
was removed by (3203) and (3052) in response to ticket #1652 . This change
restores the capability. (CVS 3529)
FossilOrigin-Name: 7393c81b8cb9d4344ae744de9eabcb3af64f1db8
2006-12-16 16:25:15 +00:00
drh
f6bbe022c7
Make sure the names of all expressions in compound SELECT statements used
...
as subqueries are correctly resolved. Ticket #2018 . (CVS 3477)
FossilOrigin-Name: b886eaa334150262ce4d1a1d0470ca4cf623a396
2006-10-13 15:34:16 +00:00
drh
2564ef9781
Make sure memory does not leak when patching up column names so that
...
they are unique in a join or view. Tickets #1952 and #2002 . (CVS 3451)
FossilOrigin-Name: fcde639119c309c699ee9dd60ed60fd6e9c8c077
2006-09-29 14:01:04 +00:00
drh
1e31e0b25b
Make sure sufficient memory is allocated to hold the collating sequence
...
pointers for all columns of an ORDER BY clause even if the ORDER BY
clause contains more columns than where originally in the table.
Ticket #1911 . (CVS 3344)
FossilOrigin-Name: 924ea730f4dd384d7ef3deca357befd064dac70a
2006-08-11 19:08:27 +00:00
drh
206f3d96d1
Prevent memory leak and possible NULL pointer deference after malloc
...
failure. Ticket #1886 . (CVS 3329)
FossilOrigin-Name: b1f326e6959ef3be11f772e80f5ab6dd65b2d065
2006-07-11 13:15:08 +00:00
danielk1977
fbbe005a59
Fix a problem with virtual tables and joins. (CVS 3278)
...
FossilOrigin-Name: 643e63e5883eec109a91a44dae62b58650646575
2006-06-21 07:02:33 +00:00
danielk1977
93626f4869
Fix some problems with virtual tables and joins in where.c. (CVS 3277)
...
FossilOrigin-Name: 3e19a7d8eabcd2fa71ced3f76c5f9bc1f3900b81
2006-06-20 13:07:27 +00:00
danielk1977
4b2688ab31
Modifications so that compilation and testing with the various OMIT macros defined works. (CVS 3276)
...
FossilOrigin-Name: c6ea353bd9f5fe6c9cc3349d2034ada283f9c80e
2006-06-20 11:01:07 +00:00
drh
9c41938ff8
Rework the way UPDATE works for virtual tables. (CVS 3262)
...
FossilOrigin-Name: 2119e7bf5577350e4e1236ea729568085620a826
2006-06-16 21:13:21 +00:00
drh
b9bb7c187e
Progress toward CREATE VIRTUAL TABLE. Still not even close to working... (CVS 3211)
...
FossilOrigin-Name: 898ec36b4102aaa03979f8f5c510936e57e2ae48
2006-06-11 23:41:55 +00:00
drh
f42bacc2f1
Get LIMIT 0 working on subqueries. Ticket #1784 . (CVS 3177)
...
FossilOrigin-Name: 7f3ef7ddba22d69a23e656836ba76738c9652b4d
2006-04-26 17:39:34 +00:00
drh
18e87cff0a
Allow constant terms in the ORDER BY or GROUP BY clauses. Ticket #1768 . (CVS 3173)
...
FossilOrigin-Name: d83e0230c0c4909cb035e266beffc0967526d9c1
2006-04-11 14:16:21 +00:00
drh
30bcf5dbaf
Return the correct declared column type, origin column name, origin database
...
name, etc. from aggregate queries. Ticket #1726 and #1755 . (CVS 3169)
FossilOrigin-Name: e64809f0ae98ce9d152cf030cae72bf3df3e2403
2006-04-07 13:50:37 +00:00
drh
923782530b
SQLite now always chooses the column names for compound selects using
...
the left-most select. This makes SQLite work like other SQL database,
but it also is a change from historical behavior and may break some
scripts. Ticket #1721 . (CVS 3153)
FossilOrigin-Name: 80cda9f7ce83f2de6cd2fdaf6150bbc35b670fee
2006-03-26 01:21:22 +00:00
drh
f8875400e4
Miscellaneous code cleanup. (CVS 3143)
...
FossilOrigin-Name: 8f60139f688903f0e635b0a904ab9ca401fbe71f
2006-03-17 13:56:34 +00:00