drh
13449892ef
Rewrite the aggregate handling logic so that it runs in O(1) space.
...
This is the first cut at the code. Many regression tests fail. (CVS 2662)
FossilOrigin-Name: 17039ec3ff4396862beedf4a8af89654b2140f58
2005-09-07 21:22:45 +00:00
drh
d81bd4e209
Fix bugs introduced by checkin (2656) and do some modest code enhancements. (CVS 2657)
...
FossilOrigin-Name: 7b56763a8b514834198d2392639d6d726b17d901
2005-09-05 20:06:49 +00:00
drh
0342b1f542
Sorting is now done using a sorting index rather than loading the entire
...
result set into memory and doing a merge sort. The old merge sort technique
was a carry-over from SQLite version 1. The new method uses a bounded amount
of memory and scales to much larger result sets. There are still errors:
some 39 regression tests fail. (CVS 2653)
FossilOrigin-Name: 09db0a24241f9248584250d1728117b8a3159626
2005-09-01 03:07:44 +00:00
drh
5d9a4af9af
Minor code enhancements. (CVS 2642)
...
FossilOrigin-Name: 4ab994a87ee844f453d693555abd61b51bb44a0e
2005-08-30 00:54:01 +00:00
drh
87abf5c033
When the left-hand side of an IN operator is constant and the right-hand
...
side is a SELECT, recognize that the IN operator is not constant.
Ticket #1380 . (CVS 2624)
FossilOrigin-Name: fc9e04609b6968fc5039a6f9f808aac681f4fc41
2005-08-25 12:45:04 +00:00
drh
978468d488
Remove a stray C++ style comment causing problems for some compilers. (CVS 2621)
...
FossilOrigin-Name: aa7dd3f2c72335fe7778c021e4b6bbbc4ec322df
2005-08-24 16:54:05 +00:00
drh
6c8c6cec1f
Handle empty blob constants correctly. Ticket #1373 . (CVS 2615)
...
FossilOrigin-Name: 5cada745ac9bf18a65d21705a398b2bb8bd1aaa2
2005-08-23 11:17:58 +00:00
drh
f14fd03899
Additional tests for better coverage. (CVS 2602)
...
FossilOrigin-Name: 4281a838f2f531af24b008d2834e8318798472c5
2005-08-19 03:03:51 +00:00
drh
c182d16302
General code cleanup resulting in smaller footprint. (CVS 2595)
...
FossilOrigin-Name: 98338abf9e8cfbf8efa81cff0e40ea37e34fd9b2
2005-08-14 20:47:16 +00:00
drh
bb7ac00bf0
Improved error message when a #NNN parameter appears on user input.
...
Additional coverage testing. (CVS 2582)
FossilOrigin-Name: 3c00f5982ae61dfcd26c33ccdb81736628dbfce5
2005-08-12 22:58:53 +00:00
drh
d2687b7731
Optimize LIKE and GLOB operators in the WHERE clause. Code passes all
...
regression tests but still needs additional tests. (CVS 2581)
FossilOrigin-Name: 3edbe8d6217fd1180883e6b9f1e5b9011a39f80d
2005-08-12 22:56:09 +00:00
drh
6c30be8e51
Optimizer now converts OR-connected WHERE-clause terms into an IN operator so
...
that they can be used with indices. There are known problems with the
ORDER BY optimization in this and in several prior check-ins. This
check-in is not recommended for production use. (CVS 2569)
FossilOrigin-Name: d23c8bf81e508722e92ff1b9c8bc98dc026a31f2
2005-07-29 15:10:17 +00:00
drh
29dda4ae65
Split the OP_Integer opcode into OP_Integer and OP_Int64. This allows
...
comments to be added to OP_Integer. Cleanup in the optimizer. Allow
terms of the FROM clause to be reordered automatically. (CVS 2556)
FossilOrigin-Name: e2f822ac82d0a5a59de0b63cce65d4fd6c178ff1
2005-07-21 18:23:20 +00:00
drh
fe05af87f8
In where.c, split out the code that selects an index into a separate
...
subroutine. (CVS 2554)
FossilOrigin-Name: c30cbba9ead1b4d07f225b1e8a65d5d5230ea45d
2005-07-21 03:14:59 +00:00
drh
57dbd7b324
Allow the IN operator to take a list of arbitrary expressions on its
...
right-hand side. The expressions no longer need to be constant. The
current implementation seems to work but needs more testing and optimization. (CVS 2542)
FossilOrigin-Name: ba56478dd8bc2135749966ff55831fd497883781
2005-07-08 18:25:26 +00:00
drh
9170dd7e1c
Change the name of the OpenTemp opcode to OpenVirtual which is more
...
descriptive of what it does. (CVS 2541)
FossilOrigin-Name: 3bb9ce5f20d0a6bc19df31df9b8e82044c3e6004
2005-07-08 17:13:46 +00:00
drh
eb55bd2fe9
Allow the DEFAULT value of a column to be obtained by calling a
...
function that has constant arguments, such as julianday('now'). (CVS 2534)
FossilOrigin-Name: d273766ef2442eb87971b07f9ecf5682c88298ee
2005-06-30 17:04:21 +00:00
drh
487e262f44
Remove the blob(), text() and numeric() functions added in (2524) and
...
replace them with the standard CAST operator.
Ticket #1287 . (CVS 2527)
FossilOrigin-Name: 17631785f9ee8ab280c82677eb53886912e085bc
2005-06-25 18:42:14 +00:00
drh
288d37f1b4
Allow parameters to be introduced by characters ':', '$' and '#'. This
...
is an experimental change. (CVS 2523)
FossilOrigin-Name: f3427a139c3bd4faf9134ec6290b3eb829c0a19f
2005-06-22 08:48:06 +00:00
drh
f0863fe568
Update older opcode names to be more meaningful in light of the latest
...
code design. (CVS 2506)
FossilOrigin-Name: 36f2da1f8d8d434f861ecad55c9d86549751c954
2005-06-12 21:35:51 +00:00
drh
ed8a3bb108
Reference count Table structures so that they are not deallocated too soon.
...
Ticket #1210 . (CVS 2498)
FossilOrigin-Name: e73d25c7419d580c47925494621df26d2fb9f27e
2005-06-06 21:19:56 +00:00
drh
873fac0cae
Avoid ambiguous column name errors when the column name is in the USING clause
...
of a join. Ticket #743 . (CVS 2495)
FossilOrigin-Name: 6a51bdeeff8312fa54fa2b1200f823428f35d605
2005-06-06 17:11:46 +00:00
drh
355ef36114
Naming the join columns in the result set of a natural join does not result
...
in an "ambiguous column name" error. Ticket #1217 . (CVS 2494)
FossilOrigin-Name: 265fb6079c0a4b7a93f063939436db494ff1d56c
2005-06-06 16:59:24 +00:00
drh
97903fef77
Remove the config.h file from the build. Ticket #1224 . (CVS 2480)
...
FossilOrigin-Name: 3e64f1ab417f371e9875915303b898c5b45f0807
2005-05-24 20:19:57 +00:00
danielk1977
fd9a0a45a7
Move a few things around to make building without the parser easier. (CVS 2479)
...
FossilOrigin-Name: 5fadb464eb77b4b998d8555f83401769960ea904
2005-05-24 12:01:00 +00:00
drh
b71090fdfb
The REGEXP operator is recognized. It tries to invoke a function named
...
regexp() which does not exist in the native build. But users who want to
can add an appropriate regexp() function using sqlite3_create_function(). (CVS 2478)
FossilOrigin-Name: 42a626ace126f730f33ecb6c41ac5679d6766a31
2005-05-23 17:26:51 +00:00
drh
15ccce1c0d
Make sure that the use of a double-quoted string literal does not trick
...
the optimizer into using a correlated subquery when a static
subquery would suffice. (CVS 2477)
FossilOrigin-Name: ef4059e3afa1a61a9e59df00cdfedc57d8df9fec
2005-05-23 15:06:39 +00:00
drh
f8db1bc03b
Remove some vestigal code. Add the experimental sqlite3_transfer_bindings()
...
API. (CVS 2446)
FossilOrigin-Name: 88b39436f00d645cdb6333a7413c698c42227d3f
2005-04-22 02:38:37 +00:00
danielk1977
e94ddc9e43
Assorted fixes to the handling of various malloc() failures. (CVS 2413)
...
FossilOrigin-Name: e7844a01c248e8d9204ea9214bec84c81dc07f32
2005-03-21 03:53:38 +00:00
danielk1977
d5d565235b
Fix some memory leaks that can occur if a memory allocation fails. (CVS 2388)
...
FossilOrigin-Name: 9a358fc33d726d0b5782bf65b50f61f2bd096d56
2005-03-16 12:15:20 +00:00
danielk1977
aee18ef8e2
Support for a future ALTER TABLE command to add columns with default values. (CVS 2367)
...
FossilOrigin-Name: 9d5abc1ddf6da37563c12d5a0401b89bb4e51c59
2005-03-09 12:26:50 +00:00
danielk1977
a1cb183d04
Fix a problem with sub-queries and the flattening optimization. Also handle an extra case of database corruption. (CVS 2324)
...
FossilOrigin-Name: f7858d8830cdd0f57b8f9bc73068d29a7062b8ac
2005-02-12 08:59:55 +00:00
danielk1977
a58fdfb162
Fix for correlated subqueries where the parent is an aggregate. Ticket #1105 . (CVS 2318)
...
FossilOrigin-Name: f0d3ca10c5bccf8fca7143028ebb3e604c0e3f20
2005-02-08 07:50:40 +00:00
danielk1977
a2dc3b1a5e
Allow expressions (including variables) in LIMIT and OFFSET clauses. Ticket #1096 . (CVS 2316)
...
FossilOrigin-Name: 515e5033a5482f55e7edb66d69ff3da7e234ff2e
2005-02-05 12:48:48 +00:00
danielk1977
6a67fe8edf
Remove code for SQL cursors. (CVS 2312)
...
FossilOrigin-Name: 2eb90870556c90b8d85da3d5eb7554f74ec922c2
2005-02-04 04:07:16 +00:00
danielk1977
6c18b6e0f4
Have the optimization introduced in (2170) deal with OP_NullRow as well as OP_Column and OP_Recno. Fix for #1086 . (CVS 2290)
...
FossilOrigin-Name: 356d31e03fe856642c5637f5ea5665947ff681fc
2005-01-30 09:17:58 +00:00
danielk1977
b3bce66232
Modify sub-query handling. Tickets #1083 and #1084 . (CVS 2286)
...
FossilOrigin-Name: b1b50f315873a8614920d1e3af4a07fb29a7ff6a
2005-01-29 08:32:43 +00:00
danielk1977
940fac9dc5
Minor changes to avoid warnings on some compilers. (CVS 2267)
...
FossilOrigin-Name: 4daf1d1f9d4d32397d785d660394c5579c296b1f
2005-01-23 22:41:37 +00:00
danielk1977
93758c8dcc
Exclude a few more lines of code using OMIT macros. (CVS 2253)
...
FossilOrigin-Name: c6fc49e61033419e78b6b10638d57f4942087961
2005-01-21 08:13:14 +00:00
drh
fe2093d73e
Bug fixes and enhancements entered while on jury recess. (CVS 2246)
...
FossilOrigin-Name: 38401dfbd5e3b50dd4e7a11562a7770347cebdf4
2005-01-20 22:48:47 +00:00
drh
51522cd34a
Added the SQLITE_OMIT_SUBQUERY compile-time option and the EXISTS operator.
...
Regression tests are currently failing with an assertion fault. (CVS 2245)
FossilOrigin-Name: d30fdf0f2c24cb74b48fab9b83fba4e4b2fe878a
2005-01-20 13:36:19 +00:00
danielk1977
5338a5f74d
Remove a few more lines of code when SQLITE_OMIT_** macros are defined. (CVS 2244)
...
FossilOrigin-Name: 417bbba93ad7ed5c03d9db6afc12e170155bd152
2005-01-20 13:03:10 +00:00
drh
3119bc421a
Expression generator bug fix. (CVS 2239)
...
FossilOrigin-Name: 39cf97a902523b1e3953da8fca6983119700d682
2005-01-20 01:51:25 +00:00
drh
1398ad3639
Continued refactoring of the name resolution logic and query optimizer. (CVS 2236)
...
FossilOrigin-Name: d8b2a7e09187564fe66a2b4bf0992c6a017146cf
2005-01-19 23:24:50 +00:00
drh
79d5f63fa2
CREATE TABLE ... AS ... uses short names for columns. Ticket #1036 . (CVS 2232)
...
FossilOrigin-Name: b1d4c42d2be07adda68d31c570ba7cf8b115c3ad
2005-01-18 17:20:10 +00:00
drh
73b211abed
Refinements to the name resolution logic. Change the name of the
...
keywordhash.c file to keywordhash.h. (CVS 2229)
FossilOrigin-Name: 0142ae6f0004bf18a1c2d8e49c09d2a9a27d6369
2005-01-18 04:00:42 +00:00
drh
626a879a25
Infrastructure changes to handle name resolution differently. This is needed
...
to fix various long-standing problems with column names in joins. It will
also make the implementation of correlated subqueries easier. (CVS 2228)
FossilOrigin-Name: 4a7534396a72ccb300303df28798bb2c50293782
2005-01-17 22:08:19 +00:00
drh
018d1a4929
Test coverage improvements. (CVS 2215)
...
FossilOrigin-Name: 92f9d2b2f480fccfa6e8b70a1d19058b92a4ea8f
2005-01-15 01:52:31 +00:00
danielk1977
2c3365493b
Fixes to 'configure' build system. Also extra coverage for main.c. (CVS 2204)
...
FossilOrigin-Name: 8378455f32c3010ccc28181048c746ecb8a9fa67
2005-01-13 02:14:23 +00:00
drh
51669863a8
Improvements to the query optimizer. This is a work in progress. (CVS 2169)
...
FossilOrigin-Name: 9b86993ff721b577b920c7c67fb41d3d4355fe88
2004-12-18 18:40:26 +00:00