Commit Graph

1162 Commits

Author SHA1 Message Date
paul
3837237959 Check for readline libs now adds appropriate curses or termcap lib when needed (CVS 927)
FossilOrigin-Name: 393dd91c252531bb5abfe424b86a5f7eb20edcfc
2003-04-22 08:04:49 +00:00
drh
f0f258b11b Add support for TEMPORARY triggers. Such triggers can write temporary or
permanent tables. (CVS 926)

FossilOrigin-Name: 58ddd587b0f5d565ae3b0ba3a1fa5c20d459f3fc
2003-04-21 18:48:45 +00:00
drh
881b890af4 Add more tests for the in-memory database. (CVS 925)
FossilOrigin-Name: 11cab41c4f02cdddc4fd3f57555573ac2814a81b
2003-04-20 23:45:23 +00:00
drh
b2fe7d8cb7 Added tests for the in-memory database backend. Also updated some comments
in other modules. (CVS 924)

FossilOrigin-Name: fb89adf4d1325c5ea471759ebfd8df7faa4f9a80
2003-04-20 17:29:23 +00:00
paul
2dc96f9eb8 Align config vars controlling in-memory DB with code (CVS 923)
FossilOrigin-Name: 921656db9e3df865aea6b1abe1bc40b1acbeeb47
2003-04-20 11:46:34 +00:00
paul
f00993a30a Reset pCur->eSkip on a MoveTo (CVS 922)
FossilOrigin-Name: d983accf4a702158f03742fb11959d0fd035a4b4
2003-04-20 11:41:04 +00:00
drh
ea1ba17cda Update comments. Remove unused field from the Index structure. (CVS 921)
FossilOrigin-Name: 7084e05093e72f6e5b65ff0b574336898396826f
2003-04-20 00:00:23 +00:00
drh
7bdc0c1def Modify the optimizer so that it does not assume that functions are
constant. (CVS 920)

FossilOrigin-Name: 767f1af236d115e8388e1dcc28a4df1be48d6c85
2003-04-19 17:27:24 +00:00
drh
37ea94b8c9 Bug in WHERE clause processing fixed. Ticket #298. (CVS 919)
FossilOrigin-Name: 9b619c98b586a207a87942640d3a94220ff8ab02
2003-04-19 16:34:04 +00:00
drh
9d10f1d0f6 fix a memory leak in btree_rb.c. (CVS 918)
FossilOrigin-Name: 1e3d0d094776c2a429fa2a3eebc036a0b6374862
2003-04-18 22:52:38 +00:00
drh
cab20050bb Fix for ticket #297 - bug in sqliteSortCompare(). (CVS 917)
FossilOrigin-Name: 4ded1965eb83dee0f28c27ba935d615c77331571
2003-04-18 17:45:14 +00:00
drh
a5f668327b The VACUUM command is now functioning (again). Need to do more testing. (CVS 916)
FossilOrigin-Name: 6e948d9aaea109c683ac4fcc4714e335b545d22b
2003-04-18 02:31:04 +00:00
drh
a69d91681d Fix triggers to work in an ATTACHed database. Ticket #295. (CVS 915)
FossilOrigin-Name: 1e5e00fb73c308378efd034cb291caf338c9fe84
2003-04-17 22:57:53 +00:00
drh
d4d595f94c Make sure the min() and max() optimizations work on empty indexed tables.
Ticket #296. (CVS 914)

FossilOrigin-Name: 98ef6110068e5ed3cd77a14b004f890b79b731f7
2003-04-17 12:44:23 +00:00
drh
8396566204 Change the shell to use the sqliteIsNumber() routine for determining if
values are numeric.  Modified os.c so that it should now work with DJGPP -
though I have no way of testing this. (CVS 913)

FossilOrigin-Name: 35caefe31750fd103b5f0231ad36f375771063eb
2003-04-17 02:54:13 +00:00
drh
95b5084409 Rollback if a commit hook fails. (CVS 912)
FossilOrigin-Name: 5cea7554ae9d36434cd7261b5b40f3d467b836f1
2003-04-16 21:03:13 +00:00
drh
027850b676 Fix the authorizer so that it correctly interprets attempts to read the
OLD and NEW pseudo-tables of a trigger. (CVS 911)

FossilOrigin-Name: f04bd43254b3ba3fccc842214115d4c298e28138
2003-04-16 20:24:52 +00:00
drh
bb07e9a34f Simplify the number processing code. Fix for ticket #281. (CVS 910)
FossilOrigin-Name: 4326b52a39cad4632dc2db37aa53a285a31af138
2003-04-16 02:17:35 +00:00
drh
144f9eadf6 Remove some unnecessary code and complication from the btree interface. (CVS 909)
FossilOrigin-Name: 35cc7c7d37d9ca486e7f300efe80a78a7f1064e2
2003-04-16 01:28:16 +00:00
drh
70ce3f0c58 Get triggers working on tables with INTEGER PRIMARY KEYs. Ticket #291.
This may also fix #159.  Still need to add tests so both bugs remain open
for the time being. (CVS 908)

FossilOrigin-Name: 0b996959b8d8bc2c82eab9cccc190befd0056505
2003-04-15 19:22:22 +00:00
paul
048bd5937b Added btree_rb.c (CVS 907)
FossilOrigin-Name: 93eb6c52aca8de15a88247ec986c36245527ec7b
2003-04-15 17:22:30 +00:00
drh
49449834fc Do not record the inserted rowid on when doing an INSERT within a trigger.
Ticket #290. (CVS 906)

FossilOrigin-Name: 96a717661a3b7108fe0cacb588d81fd8e91eb640
2003-04-15 14:01:43 +00:00
drh
f9a2e7bb8d Change lemon to use <stdarg.h> instead of <varargs.h> because GCC no longer
supports varargs.h.  Tickets #288 and #280.  Ironically, lemon originally
used varargs.h because stdarg.h was not supported by the compiler I was
using in 1989 (which was gcc if I recall correctly.) (CVS 905)

FossilOrigin-Name: 7902e4778ec86e25ad949ae7a6d55b63ac0e85f3
2003-04-15 01:49:48 +00:00
drh
13bff81537 Change some variable names and comments in the new in-memory database file
implementation.  Partial (non-working) implementation of the VACUUM command. (CVS 904)

FossilOrigin-Name: e76787f877c456abdc8bc88bfefc50eaeed68744
2003-04-15 01:19:47 +00:00
paul
b0208ccaa3 Support in-memory databases for temp tables (CVS 903)
FossilOrigin-Name: 96336bffde6c441af197a521ee9e56fdfd7efff8
2003-04-13 18:26:49 +00:00
drh
c11d4f9360 Split the implementation of COPY, PRAGMA, and ATTACH into separate
source code files. (CVS 902)

FossilOrigin-Name: 73359037ea639abb066c74db9c19e84bf1104006
2003-04-06 21:08:24 +00:00
drh
e1051c653e Move the implementation of VACUUM into a separate source file. (CVS 901)
FossilOrigin-Name: b123c165fd3d0a5a86ee8a7baa669105dafb481a
2003-04-06 20:52:32 +00:00
drh
73509eee84 Simplify the BTree interface by shortening names. Added two new methods
for accessing the current filename and for changing the name of the
database file. (CVS 900)

FossilOrigin-Name: 185d8dc8d0c26cef36aeba6992823e5124af4056
2003-04-06 20:44:45 +00:00
drh
a73af533de More testing of ATTACH and DETACH. (CVS 899)
FossilOrigin-Name: 51f515f28cb1cc3e8f0c3531724dc8876b25f18e
2003-04-05 16:56:28 +00:00
drh
2d4583473b Begin testing the new ATTACH and DETACH commands. (CVS 898)
FossilOrigin-Name: 7a0f8024a1323a15d0c83afe9302400736f01fe8
2003-04-05 03:42:26 +00:00
drh
f539f6a7e9 Fix for ticket #276. (CVS 897)
FossilOrigin-Name: 452128c6fd9a0d82bfab21374fc2041638d264db
2003-04-03 19:35:02 +00:00
drh
0d1a643aea Added experimental APIs: sqlite_begin_hook() and sqlite_commit_hook(). (CVS 896)
FossilOrigin-Name: 5efbf62313519d0a6e8b8f5dbb29d3ef428d73e8
2003-04-03 15:46:04 +00:00
drh
048c530c01 Use a intermediate table when inserting a TEMP table from a SELECT that
reads from that same TEMP table.  Ticket #275. (CVS 895)

FossilOrigin-Name: 087d1e83af12b3a9aedd4945f02774a1043b1eb4
2003-04-03 01:50:44 +00:00
paul
b95a8864c9 Add infrastructure to suport multiple btree implementations (CVS 894)
FossilOrigin-Name: 79b3aed2a74a67cbad631c4e2e4a43469d80c162
2003-04-01 21:16:41 +00:00
drh
738a68b250 Minor follow-on changes to the recent ATTACH patch. (CVS 893)
FossilOrigin-Name: 11378c5bf988412f8564cdc0314fc241793b292e
2003-03-31 13:36:09 +00:00
drh
665de47ac3 Minor follow-on changes to the recent ATTACH patch. (CVS 892)
FossilOrigin-Name: e80afe75b33d4eacb40ef6128cf688f7c3253984
2003-03-31 13:36:09 +00:00
drh
da93d238c2 Add the sqliteErrorMsg() function and use it to generate error message
text during parsing and code generation.  This simplifies the code
somewhat and makes it easier to handle names with a database prefix. (CVS 891)

FossilOrigin-Name: 1d3fc977211abdc7ba3fd51d661863e8ce5aef69
2003-03-31 02:12:46 +00:00
drh
1c2d84148a The ATTACH and DETACH statements are now coded but are still mostly untested. (CVS 890)
FossilOrigin-Name: c7c5e927a54f0fbc2ca625754787aff4d9c4eff1
2003-03-31 00:30:47 +00:00
drh
180487389b Remove the experimental sqlite_open_aux_file() API. It will soon be replaced
by ATTACH and DETACH SQL commands. (CVS 1732)

FossilOrigin-Name: 0a358844e40020557c1aeea5779b194670350930
2003-03-30 19:17:02 +00:00
drh
3aa31a16e6 Remove the experimental sqlite_open_aux_file() API. It will soon be replaced
by ATTACH and DETACH SQL commands. (CVS 889)

FossilOrigin-Name: b6d6e07f3a5cb493f2cf0675bc6061c5afe5c078
2003-03-30 19:17:01 +00:00
drh
9077ba8ee5 Remove the obsolete documentation on how to crosscompile version 1.0 of
SQLite. (CVS 888)

FossilOrigin-Name: ac0622bf5fca9c8907319a20158e991efdaa6402
2003-03-30 18:58:58 +00:00
drh
1dd8c40e8f Detect when a child node of a btree page has zero entries and report that
as a case of database corruption. (CVS 887)

FossilOrigin-Name: 66c80ae232a78ecb010280ab1aa684cb78b0662f
2003-03-30 18:41:22 +00:00
drh
0be9df076a Fix a memory leak in triggers and update tests to show the latest error
message text. (CVS 886)

FossilOrigin-Name: b90d9de32d10a71fe81f5bfd0cf57faae8c5c3b4
2003-03-30 00:19:49 +00:00
drh
812d7a21dd Regression tests now work - except for some changes in error message
text.  The library is now safe to use for experimental work. (CVS 885)

FossilOrigin-Name: 8a593e9c2d57e758739a7ef54fa40ca6a0071a9a
2003-03-27 13:50:00 +00:00
drh
0951d703f2 Fix a segfault in the trigger code. (CVS 884)
FossilOrigin-Name: 7672914b196cd55744edda8e5d8f1b7b86f898f9
2003-03-27 13:01:28 +00:00
drh
1694cab424 Changes to the "sqlite" structure that allow simultaneous operations on
multiple database files.  Many regession tests pass - but not all of them.
Do not use this version except for debugging SQLite itself. (CVS 1731)

FossilOrigin-Name: 9ac71c329e17a0934d2a824eacc33e9a2ebce7c3
2003-03-27 12:51:25 +00:00
drh
d24cc427b7 Changes to the "sqlite" structure that allow simultaneous operations on
multiple database files.  Many regession tests pass - but not all of them.
Do not use this version except for debugging SQLite itself. (CVS 883)

FossilOrigin-Name: d2fb2bb50cf1e13feb90995079f291384abd6ba9
2003-03-27 12:51:24 +00:00
a.rottmann
84e6335c0c Re-generated. (CVS 882)
FossilOrigin-Name: f0c5bcf72cf393ea4c5cd126d085cb959eebd5f2
2003-03-24 09:42:16 +00:00
a.rottmann
62507b650a Updated libtool. (CVS 881)
FossilOrigin-Name: b1ca4e13dcab92cc532f4051f24bf5b1be251463
2003-03-24 09:40:34 +00:00
a.rottmann
c7e9383a9e Added pkg-config support. (CVS 880)
FossilOrigin-Name: ec1c5a611307047dd0049353e989e75dcaffaa45
2003-03-24 09:39:32 +00:00
drh
113088ec68 Record the database name in addition to the table name for DELETE, INSERT,
and UPDATE statements. (CVS 879)

FossilOrigin-Name: a5d8fc95ee58dc3205a0bbbcadaa3b9c902a941b
2003-03-20 01:16:58 +00:00
drh
001bbcbb8f Modifications to the VDBE to support more than one database file. (CVS 878)
FossilOrigin-Name: 875da9eed981bfa27b98e95025f9fdbed74b4098
2003-03-19 03:14:00 +00:00
drh
9468c7f489 Do not allow an empty string to be inserted into an INTEGER PRIMARY KEY. (CVS 877)
FossilOrigin-Name: 2aba40bea5fc1c4aef8cfd4c790d40808821ca14
2003-03-07 19:50:07 +00:00
drh
2299706c2a Add more tests to make sure that sqlite_changes() works when using the
non-callback API.  Ticket #250. (CVS 876)

FossilOrigin-Name: 13e501d190e327cc6fc16e182819ea9d7bb9c566
2003-03-01 19:53:15 +00:00
drh
dde85d9e00 Get the non-callback API working with the EXPLAIN keyword and for PRAGMAs.
Tickets #258 and #257.  Update the API documentation on the sqlite_changes()
routine to explain how it works with the non-callback API.  Ticket #250. (CVS 875)

FossilOrigin-Name: 620e1065e978545dd7bf6fa6fad1e6b93918dbf8
2003-03-01 19:45:34 +00:00
drh
627a71efa7 Fix a memory leak associated with PRIMARY KEY in a CREATE TABLE statement
that fails.  Ticket #249. (CVS 874)

FossilOrigin-Name: 8e9dc567996c3301c14a1f055ff2265770cbc3e1
2003-02-26 13:52:52 +00:00
drh
e0194f2bbd Fix a memory leak associated with PRIMARY KEY in a CREATE TABLE statement
that fails.  Ticket #249. (CVS 1730)

FossilOrigin-Name: 66158843dfa073ffb8779a5170e091cebc018855
2003-02-26 13:52:51 +00:00
drh
50cceb36b6 When the right table in a LEFT OUTER JOIN contains an INTEGER PRIMARY KEY
make sure that key is NULL if there is no row in the right table that
matches the current row in the left table.  Tickets #246 and #247. (CVS 873)

FossilOrigin-Name: 6a45fe3bd7e19cf9c20fc6cb65b0269cdd704490
2003-02-20 01:48:12 +00:00
drh
e6da3c1816 Fix the parsing of the LIMIT clause when the limit and offset are separated
by a comma.  The offset comes before the limit in that case. Ticket #245. (CVS 872)

FossilOrigin-Name: 6ef91a364b2922f078b7de81816bca3f2ca0fe46
2003-02-20 00:44:52 +00:00
drh
30710453ca Version 2.8.0 (CVS 870)
FossilOrigin-Name: 5db98b3f4048fc8cd28d8fd225f2b0221ccf1d17
2003-02-16 22:49:47 +00:00
drh
be992ef9c9 Couple of last-minute changes before 2.8.0. (CVS 871)
FossilOrigin-Name: 8192c937d524fef703d7ba2eb608c3d74e20440f
2003-02-16 22:48:12 +00:00
drh
ad636221bb Update the speed comparison documentation to show the improved performance
of PostgreSQL after performance tuning. (CVS 869)

FossilOrigin-Name: 73c904e57a158820705daf5737e0fc825cfe1aea
2003-02-16 22:36:03 +00:00
drh
94e9203247 Added test code to check for file descriptor leaks. All regression tests pass
now on both win2k and linux. (CVS 868)

FossilOrigin-Name: 75ba78280f7ab6b6acce5878859312f3223ee898
2003-02-16 22:21:32 +00:00
drh
99ee360003 Fix more bugs. The new rollback journal implementation now passes all
regression tests under Linux. (CVS 867)

FossilOrigin-Name: d10adc1c5727d76320d5919be55e86d030e9c8bc
2003-02-16 19:13:36 +00:00
drh
4303feedd3 Fix the pager so that correct rollbacks occur when synchronous is turned off.
This check-in also included unrelated documentation updates. (CVS 866)

FossilOrigin-Name: 3ef0ad8a4f2696a58aff9d812f90038c2c63f3fc
2003-02-15 23:09:17 +00:00
drh
32c4a833e0 Update the documentation for the new journal format to be introduced in
version 2.8.0. (CVS 1729)

FossilOrigin-Name: dc53d92141c931fb133149355c3a1ea64030e676
2003-02-13 02:54:03 +00:00
drh
5527f8ff4a Update the documentation for the new journal format to be introduced in
version 2.8.0. (CVS 865)

FossilOrigin-Name: e05a7a552f694158ee449d8682f5c137f1c2f2ac
2003-02-13 02:54:03 +00:00
drh
4a0681ef1b Fix a bug in the rollback logic for the new journal format. (CVS 864)
FossilOrigin-Name: 7c22aa3f817e737cfd943d903856756468e8678b
2003-02-13 01:58:20 +00:00
drh
8ba1b31379 Added the new FULL option to the SYNCHRONOUS pragma. Still need to test it. (CVS 1728)
FossilOrigin-Name: 8968bc063607856775ad63b6594d40c55cf288c0
2003-02-12 14:09:43 +00:00
drh
973b6e333d Added the new FULL option to the SYNCHRONOUS pragma. Still need to test it. (CVS 863)
FossilOrigin-Name: 792a9e157dd066fcaffd4f5b373010151fb4ca61
2003-02-12 14:09:42 +00:00
drh
d8d66e8ca0 Fix a bug in the legacy journal format writing logic. (CVS 862)
FossilOrigin-Name: 6c927dd36c19ebb8bb8222b4d18ed67f4fe733e8
2003-02-12 02:10:15 +00:00
drh
968af52acf Modify the journal format to be more robust against garbage that might appear
in the file after a power failure.  The changes are mostly working but more
testing is still required.  This check-in is to checkpoint the changes so far. (CVS 861)

FossilOrigin-Name: 8ec5632536eea31197a3b1fd6abc57881a0cf1d7
2003-02-11 14:55:40 +00:00
drh
324ccefeb5 Make the shell run much faster for inputs where a single SQL statement spans
thousands of lines by avoiding the call to sqlite_complete() unless the
input ends in a semicolon. (CVS 860)

FossilOrigin-Name: e21afb82b53eade9ee267a97c58db0606f0c0a41
2003-02-05 14:06:20 +00:00
drh
bb999ef6fa Make the GROUP BY clause work even if there are no aggregate functions. (CVS 859)
FossilOrigin-Name: b68792315883eed8523f5e11856ec8378dc972c1
2003-02-02 12:41:25 +00:00
drh
17e9e29d1e When a CREATE TABLE ... AS SELECT statement fails, make sure the table name
is removed from the internal hash tables.  Ticket #238. (CVS 858)

FossilOrigin-Name: 65264780c553e8a00ec7a40cf76b89a11b245faf
2003-02-01 13:53:28 +00:00
drh
dcd997ea2e The sqlite_exec() function now returns SQLITE_AUTH when authorization fails.
Ticket #231. (CVS 857)

FossilOrigin-Name: d93c1aeb544a5b1056424945eb43854213b30e50
2003-01-31 17:21:49 +00:00
drh
88eee38afd Allow double-quoted strings as string constants in the IN operator. As a
side-efffect, allow the GROUP BY clause to refer to columns by their integer
column number.  Ticket #237. (CVS 856)

FossilOrigin-Name: 187d9c405891e543fc706f8ddb41f3966a842214
2003-01-31 17:16:36 +00:00
drh
3a84069da3 Additional testing and bug fixing with the non-callback API. Updated the
C/C++ interface document to describe the non-callback API. (CVS 855)

FossilOrigin-Name: af1e9299468aa70d7d91e7a5445ba391ccc8ff8b
2003-01-29 22:58:26 +00:00
drh
483750ba8a Better error messages on constraint violations. Additional tests and bug fixes
for the callback-free API. (CVS 854)

FossilOrigin-Name: ccc82f1ab4539a60ee5cc2625743c5389f9ccd8e
2003-01-29 18:46:51 +00:00
drh
326dce7451 The callback-free API is now working, though much more testing is need. (CVS 853)
FossilOrigin-Name: 162b259188e6967fe9c3722da26b81aab5655d83
2003-01-29 14:06:07 +00:00
drh
b86ccfb26e First code for the new callback-free API. All regression tests pass but the
new API is mostly untested and is unlikely to work. (CVS 852)

FossilOrigin-Name: 065fa818ffc8d7562889172acea16e4e44e773ef
2003-01-28 23:13:10 +00:00
jplyon
70c15b48ae Added section on comments.
Corrected broken </p> end tags. (CVS 851)

FossilOrigin-Name: c957f4f0c6b486f25bc567dafeed186f91c8c315
2003-01-26 15:28:18 +00:00
drh
79740a572e Version 2.7.6 (CVS 850)
FossilOrigin-Name: bdba796f3b89690ab5d53a9e16924383ef72657c
2003-01-25 16:32:13 +00:00
drh
a218b6a22a Fix a bug in the rollback validation logic (code that only runs during
debugging).  The problem was introduced by check-in (835). (CVS 849)

FossilOrigin-Name: b6ea0da76a27a4a67a3978c53405840518de2379
2003-01-25 15:43:22 +00:00
drh
a3da6fafd7 Remove an unused variable. (CVS 848)
FossilOrigin-Name: 18f4ffaa2ed89784a1ea3c61c864d20e18fa1e9f
2003-01-25 14:34:23 +00:00
drh
2ac83073e0 Preparations for the release of version 2.7.6. (CVS 847)
FossilOrigin-Name: 5143d4814df1dd440a362a90dd3f328c84527565
2003-01-25 14:32:03 +00:00
drh
ced87a65a8 Update the speed.html documentation. Recent optimizations have made the
library much faster. (CVS 846)

FossilOrigin-Name: ed47d162a072a2f98b633cc14f2be1474288d90b
2003-01-25 14:25:42 +00:00
drh
d62d3d0d24 Add asserts to btree.c that check for the correct size of various typedefs
and structures.  Ticket #233. (CVS 845)

FossilOrigin-Name: c7e647d011b086a6e57420850f6bc4f28fcb23ee
2003-01-24 12:14:20 +00:00
drh
2554f8b0c0 Minor refinements to the pager. (CVS 844)
FossilOrigin-Name: 19221dee5fee4c8800cbae309f009964c8d646a2
2003-01-22 01:26:44 +00:00
drh
4764f161ab fix a typo on the quickstart.html page. (CVS 843)
FossilOrigin-Name: 61869bb51b981a47d783cc8739833cc0c4733b0a
2003-01-21 23:06:57 +00:00
drh
341eae8d35 In the pager, cache a pointer to the first page on the freelist that does not
need to be synced.  This makes a fetch of a page that is not in cache go a
lot faster when the cache is full.  This check-in also adds some performance
instrumentation to the OS layer. (CVS 842)

FossilOrigin-Name: 00f08fc0b5b6b9c5efbf15a62f9a1cc1cfa71283
2003-01-21 02:39:36 +00:00
drh
e78e8284ad Update comments. No changes to code. (CVS 841)
FossilOrigin-Name: f6a8706872c43cee3003b48bb427c7b74b1f89e7
2003-01-19 03:59:45 +00:00
drh
79104c9d2a Update the speed comparison page. (CVS 840)
FossilOrigin-Name: 424cb2edb0c51b911791422ce7a9f5284a57f9ce
2003-01-18 22:01:06 +00:00
drh
fcb78a4900 Fix datatype reporting and collating sequence selection so that it works
correctly on views and with the UNION, EXCEPT, and INTERCEPT operators. (CVS 839)

FossilOrigin-Name: 71cc292dce59cf8224b205d1cdbff59ad12f1043
2003-01-18 20:11:05 +00:00
drh
be4f31c226 Do not report an error if the input to the sqlite shell ends in a comment.
Ticket #211. (CVS 838)

FossilOrigin-Name: 32a8e6e9771d636c0ad3042632d35865bc08585b
2003-01-18 17:05:00 +00:00
drh
799550beb0 Check the validity of the database connection before the trace callback,
not afterwards. (CVS 837)

FossilOrigin-Name: 960a2e4af3b940d74a82f98e8bf19aeec88a05ce
2003-01-18 17:04:08 +00:00
drh
18de4824f6 Add the sqlite_trace() hook for tracing the SQL that an application executes.
The plan is to leave this API undocumented for the time being, in case we
want to make changes to it later. (CVS 836)

FossilOrigin-Name: f67bff8ff3db9694f87daf1a549d24ea9612da6b
2003-01-16 16:28:53 +00:00
drh
db48ee02c4 Improvements to the pager to help large updates against a large database run
faster.  Also improved the testing of the pager rollback algorithms. (CVS 835)

FossilOrigin-Name: 717523d3750dce784fa767ed9a8267d1246798ef
2003-01-16 13:42:43 +00:00
drh
2c3831cb23 Finish out the test suite for the new sqlite_set_authorizer API. (CVS 834)
FossilOrigin-Name: 701a73918db22fd134a8b959670ba7a4a908c8c5
2003-01-14 13:48:20 +00:00
drh
bf0c78af2f Fix a memory leak in the PRAGMA authorization code. (CVS 833)
FossilOrigin-Name: ba58979f2ff3ec878a21e7c171fbcd8fa79ace6f
2003-01-14 02:54:08 +00:00
drh
77ad4e4133 More tests of the sqlite_set_authorizer() API together with fixes for bugs
that the new tests uncovered. (CVS 832)

FossilOrigin-Name: cc2ae781ac186f9ee1afacdc9117087421955369
2003-01-14 02:49:27 +00:00
drh
7160220495 Make the GLOB work write with upper-case characters. Ticket #226. (CVS 831)
FossilOrigin-Name: 7ea46e706485cc159f9d1c7e69efcdd048a0bb12
2003-01-14 00:44:08 +00:00
drh
e5f9c6442f Revise the sqlite_set_authorizer API to provide more detailed information
about the SQL statement being authorized.  Only partially tested so far. (CVS 830)

FossilOrigin-Name: 45de93f913a18026a45de6254963dbcd1b0f1a19
2003-01-13 23:27:31 +00:00
drh
1962bda764 The initial round of tests for the sqlite_set_authorizer() API. More are
needed before release.  Ticket #215. (CVS 829)

FossilOrigin-Name: 5707b3d56efb6e988f816abefb1836f2f3254117
2003-01-12 19:33:52 +00:00
drh
e6d01c3a04 Forgot to include the new "auth.c" source file in the previous checkin. (CVS 828)
FossilOrigin-Name: 7601916419489879fe963c83010b452c49ef063f
2003-01-12 18:07:48 +00:00
drh
ed6c8671b3 Initial check-in of the code for the new sqlite_set_authorizer() API function.
The code is mostly untested at this point. (CVS 827)

FossilOrigin-Name: 52d5007f64d0af5286b2a0e1f0b9e53c86bece3f
2003-01-12 18:02:16 +00:00
drh
49f0936ec7 Remove an unused variable from the VDBE. Ticket #223. (CVS 826)
FossilOrigin-Name: 0deaf563fd9784bf0795107cd10e6b3269dfecea
2003-01-12 17:35:00 +00:00
drh
f27134cdc4 Change the PopStack() routine so that it doesn't confuse bounds checkers.
Ticket #222. (CVS 825)

FossilOrigin-Name: fc11fa50b8f39f5e0b3674d7df832ffbca0d948f
2003-01-12 17:28:19 +00:00
drh
fa9e0df21b Remove the aOrder() array from where.c. (CVS 824)
FossilOrigin-Name: b2c1edb47f481cafe6718bafcdb517cca160a44d
2003-01-11 15:02:44 +00:00
drh
fd15981daa Fix two compiler warnings from OS-X. (CVS 823)
FossilOrigin-Name: 4c22da76ca91f3c59dac1c529e82ac3b04b767bd
2003-01-11 14:25:39 +00:00
drh
5a38705ecb Document the SHOW_DATATYPES pragma and add tests for it to the test suite.
Make sure datatypes are show even for aliased columns.
Tickets #220 and #221. (CVS 822)

FossilOrigin-Name: e84d3afe7b9153d003fdcca98221f446c004ffa2
2003-01-11 14:19:51 +00:00
drh
836faa4843 Remove the ColumnCount opcode, which had become a no-op. (CVS 821)
FossilOrigin-Name: 86deb12d68026913d181f9498144fa56445899f2
2003-01-11 13:30:57 +00:00
drh
820f3812d8 Port ot MacOS Classic. Ticket #218. (CVS 820)
FossilOrigin-Name: 13f82d67f60ae869d5bf2e31d9357a860aa62bad
2003-01-08 13:02:52 +00:00
drh
9bd47a97c0 Avoid calling truncate() and stat() on the checkpoint journal to improve the
speed of a large number of UPDATEs within a transaction. (CVS 819)

FossilOrigin-Name: 2f89e9e6963cb715f3671f1fdbf4c966aadff6c8
2003-01-07 14:46:08 +00:00
drh
2b8ef743af In the VDBE, allocate space to hold column names when the VDBE first starts.
The ColumnCount opcode now just writes the null terminator into this space. (CVS 818)

FossilOrigin-Name: 46d8f5e377bf790c18a7acdd1f3bc20b538d69eb
2003-01-07 13:55:22 +00:00
drh
371ac44d1c When constructing records and index keys, use static string space rather than
mallocing (when possible) for a small speed improvement. (CVS 817)

FossilOrigin-Name: 657c9fb5133aef93e4edd433912e6942ad9674ec
2003-01-07 13:43:45 +00:00
drh
caec2f12a9 More optimizations. (CVS 816)
FossilOrigin-Name: a362981b20fd33254ad498619eedf75b576682e3
2003-01-07 02:47:47 +00:00
drh
32eb7b47ca Optimizations to the tokenizer. (CVS 815)
FossilOrigin-Name: 032b3daa1d3cf3e00a4a6ba0b09624f1aba6445c
2003-01-07 01:44:37 +00:00
drh
3e87c7abeb Remove unnecessary code from the VDBE. (CVS 814)
FossilOrigin-Name: b96ec281ff29aad8af340b30c6ff4e129ffeeefb
2003-01-06 23:54:05 +00:00
drh
8178a75a11 More optimizations. (CVS 813)
FossilOrigin-Name: 5809132f5bf40bae2331f887e87fe5baecc15c46
2003-01-05 21:41:40 +00:00
drh
c3b7057705 Parameterize the number of adjacent pages that participate in the balancing
algorithm in the BTree.  But leave the setting at the current value of 3. (CVS 812)

FossilOrigin-Name: 6c304024bbd21a1886a57ada795531349aa627d7
2003-01-04 19:44:07 +00:00
drh
bb49aba82a Another optimization to the btree logic. (CVS 811)
FossilOrigin-Name: 03d20673616cae0dca524fd04557798a98fb7069
2003-01-04 18:53:27 +00:00
drh
428ae8cb41 Optimizations to the BTree module for a modest speed improvement. (CVS 810)
FossilOrigin-Name: 39902a70417475225956704a037493515e9b08b9
2003-01-04 16:48:09 +00:00
drh
2c79995565 Allow the rollback journal to be empty except for its header.
Ticket #212. (CVS 809)

FossilOrigin-Name: 1ba41bc2afab18cc295d9a45845296b46bfa57e5
2003-01-03 02:04:27 +00:00
drh
8c1238aebd Code optimizations to help the library run faster. (CVS 808)
FossilOrigin-Name: db745e87dc26cf1a35cdcec18f4b659742e14120
2003-01-02 14:43:55 +00:00
drh
7b39686749 If compiled with the -DVDBE_PROFILE=1 option, special code is inserted that
uses the pentium RDTSC instruction to compute very precise runtimes on all
VDBE opcodes.  (This only works on i586 processors, of course.)  The results
are written into the vdbe_profile.out file for analysis. Hopefully, this
new feature will reveal hot spots that can be optimized to make the VDBE run
faster. (CVS 807)

FossilOrigin-Name: a1c071ea18766932c90275c704e078134c67be68
2003-01-01 23:06:20 +00:00
drh
c64e0ba45c Version 2.7.5 (CVS 806)
FossilOrigin-Name: ee95eefe12c48f28412461125c231122e0d4277a
2002-12-28 01:26:07 +00:00
drh
919792ecb9 Update the version number to 2.7.5. (CVS 805)
FossilOrigin-Name: b0864cc9c89a3c2350ac46634ef3c420f97d11c0
2002-12-28 01:10:14 +00:00
drh
80eb79055e Fix an uninitialized variable in the pager. Tickets #208 and #206.
Bug introduced by check-in (795). (CVS 804)

FossilOrigin-Name: f3dc686e0258a9588e1433a89ac46795f76beeae
2002-12-28 01:06:30 +00:00
drh
5d1f0d4c89 Version 2.7.4 (CVS 803)
FossilOrigin-Name: 0224db6f8ce5e3cecc4432f3966b8f59f80e9303
2002-12-17 22:50:45 +00:00
drh
3450e1d3c2 Preparing for the 2.7.4 release. (CVS 802)
FossilOrigin-Name: f685ae15b1179baeadfadbaef0a73b001c96fac5
2002-12-17 14:30:42 +00:00
drh
f1337bb5ff If the "fake_big_file" command fails, be sure to close the file before
returning. (CVS 801)

FossilOrigin-Name: fa1b5e2119617b111c6b463bbf641ddcb9972cae
2002-12-17 14:19:49 +00:00
drh
f33cb428e5 Make sure the host machine has enough disk space before running the
large file tests. (CVS 800)

FossilOrigin-Name: b1ec547865a76541951433630bd4528d1988a4de
2002-12-17 14:13:48 +00:00
drh
e7e8bc7739 Take care not to modify the sqlite* pointer to sqlite_exec() if we suspect
that the pointer is stale - that it has previously been passed to
sqlite_close().  Possible fix for ticket #202.  Prior to this fix, test
misuse-5.3 was causing a change to a buffer that had been previously free()-ed. (CVS 799)

FossilOrigin-Name: f04547edfa1643ce52925d317915badfc676bd8b
2002-12-17 13:05:25 +00:00
drh
3e7a609667 Save the full pathname of the database file so that journalling still works
even if the user changes working directories after opening the databae.
Ticket #200. (CVS 798)

FossilOrigin-Name: 1c58b4fc032c5975dcce9b8ae844c0e516254a17
2002-12-07 21:45:14 +00:00
drh
1a844c380b Fix a bug in the reverse scan logic that comes up when the table being
scanned is empty.  Add additional tests for the reverse scan. (CVS 797)

FossilOrigin-Name: 0051c87d5e8d07fae09da2eb7b0d8cbd1bbd3c8e
2002-12-04 22:29:28 +00:00
drh
dd4852c3d1 Fixes to the logic that decides if the ORDER BY can be ignored due to the
use of an index.  Tests updated. (CVS 796)

FossilOrigin-Name: bfb9a2aa939ecffc5dc2c7c23bddd57d357bdf13
2002-12-04 21:50:16 +00:00
drh
c045ec51be Scan the table backwards if there is an ORDER BY ... DESC clause that can
be satisfied by an index. (CVS 795)

FossilOrigin-Name: c7a3487981de0ed5b43ea3ff4d46ab4437068dca
2002-12-04 20:01:06 +00:00
drh
2dcc9aa2a8 Add the sqliteBtreePrevious() routine to the BTree module API. This is
in anticipation of implementing reverse order searching of a table. (CVS 794)

FossilOrigin-Name: 0ad1d93879bee0d34b122591c025192a51b8490f
2002-12-04 13:40:25 +00:00
drh
c66c5a266b Allow an aggregate function in the HAVING clause even if no aggregates appear
in the result set.  Ticket #187. (CVS 793)

FossilOrigin-Name: 33c6fd6b3dc271fa1f2d4500b4f76c736accefce
2002-12-03 02:34:49 +00:00
drh
174b619591 Honor ORDER BY clauses in VIEWs. Ticket #193. (CVS 792)
FossilOrigin-Name: dbf7893234a6c5d6bb2d931e52080bb05784c0c9
2002-12-03 02:22:52 +00:00
drh
da47d7748f Change to the pager to avoid opening journal files unnecessarily. This can
sometimes results in a significant speed improvement. (CVS 791)

FossilOrigin-Name: fa5c042585c601449ede7319d0c5993cd8ba75a4
2002-12-02 04:25:19 +00:00
drh
d0d006e29c Fixed large file support under Linux. I'm unable to test under Windows.
Ticket #191. (CVS 790)

FossilOrigin-Name: 9864a1265b5a37c12b0dd8446d81b84c5a3acc43
2002-12-01 02:00:57 +00:00
drh
86bc1c8273 Add the "space_used.tcl" script to the tools directory. This script is used
to measure how much disk space is used by each table and index of a database. (CVS 789)

FossilOrigin-Name: 83b2c27a568cd67cd5162d513766b23ff9fc2227
2002-11-24 14:52:27 +00:00
drh
58f391b36f Automatically determine if pointers are 4 or 8 bytes in size during the
compilation process.  Ticket #190. (CVS 788)

FossilOrigin-Name: dd5396a73a782b6abe9da3de43a5ee11e0dddbb2
2002-11-20 11:55:18 +00:00
drh
7cdbd32c8e Get the new large file code working with the Borland compiler. Ticket #195. (CVS 787)
FossilOrigin-Name: da4a79e2891aa81e2e6d96689f99b3924f940dd5
2002-11-20 11:07:59 +00:00
drh
7d686b2d57 Remove extra </TD> from HTML output. Ticket #189. (CVS 786)
FossilOrigin-Name: dc5d9c129c566bf57d108b824ba486cfe070dda6
2002-11-11 13:56:47 +00:00
drh
4d9ef4c4ef Back out the changes in the pager that sorted pages prior to writing them
to the database.  Additional measurements showed no performance gains. (CVS 785)

FossilOrigin-Name: 745d66395daf5cb8463305bbc9e4219534d2b7cf
2002-11-11 01:04:47 +00:00
drh
32c05e993f Replace the atoi() library routine with a faster home-grown version in the
VDBE.  This gives a dramatic speed improvement for some kinds of queries. (CVS 784)

FossilOrigin-Name: 263a8ca40f7ff66fbdcb43bf9032391d5b1e68bd
2002-11-11 00:05:42 +00:00
drh
03eb96a7b2 Two optimizations to the pager: (1) Write dirty pages back to the database
file in order and (2) Keep a separate list of in-memory pages that are in
the checkpoint journal in order to speed a checkpoint commit. (CVS 783)

FossilOrigin-Name: a6ef6657a4377684dc2fce7be2bbf009fd2d2f37
2002-11-10 23:32:56 +00:00
drh
8766c34348 Try to better detect when the library is compiled for large file support (LFS)
but the support is not available in the host OS kernel. (CVS 782)

FossilOrigin-Name: a29d60ecc5ee3f535142a81f56eecbef7875ef22
2002-11-09 00:33:15 +00:00
drh
829e802992 Add large file support to Windows. Change large file support for Unix so
that it compiles automatically - without requiring special options on the
compiler command line. (CVS 781)

FossilOrigin-Name: 2008b56fe11e49d52e28f47d14ccd70504e6c094
2002-11-06 14:08:11 +00:00
drh
20e9ab16d8 Changes to include files so that the >2GB file patch will compile under BSD. (CVS 780)
FossilOrigin-Name: 81bb1aed5e9094a9655bd03614bb111d79896928
2002-11-06 00:59:44 +00:00
drh
f87e9de4c4 Update the FAQ to explain how to enable large file support. (CVS 779)
FossilOrigin-Name: 4caf624e9061fe7489a8e3c6892975036a2272d5
2002-11-05 23:24:38 +00:00
drh
28be87c7c4 Add support for databases larger than 2GB under Unix. Must be compiled
with -D_FILE_OFFSET_BITS=64 and -D_LARGEFILE_SOURCE in order to work with
larger databases. (CVS 778)

FossilOrigin-Name: a3f67fe9121ca4655510094fe775b8603a87800e
2002-11-05 23:03:02 +00:00
drh
647cb0e159 Add the sqlite_version() SQL function as a built-in. (CVS 777)
FossilOrigin-Name: 7c8c0e7633dca00bde7bc7c22075f688c034c200
2002-11-04 19:32:25 +00:00
drh
7bc09d3111 Improvements in threadtest.c (for Unix) and some minor bug fixes that result
from the better testing. (CVS 776)

FossilOrigin-Name: 326e0983c34b584a3c4a2300399bff0a8281b9f8
2002-11-01 01:55:36 +00:00
drh
194a7b6469 Version 2.7.3 (CVS 775)
FossilOrigin-Name: 4051dbdb0552620eaff2ccef02f64a2ff97a8dfb
2002-10-31 00:15:10 +00:00
drh
1f3e905cd0 Fix an assert that might fail if malloc() fails. (CVS 774)
FossilOrigin-Name: 8ad018944c3aa8f58e1c68b1fa634ef922d6476f
2002-10-31 00:09:39 +00:00
drh
bd1edfa321 Bump the version number prior to the release of version 2.7.3. (CVS 773)
FossilOrigin-Name: bc7c7d87e550c786d5bdb4169a0ad75db3fb066a
2002-10-30 23:04:27 +00:00
drh
38dd0b4ff0 In the VDBE, check to make sure a set has been initialized before using it.
Ticket #185. (CVS 772)

FossilOrigin-Name: 8c4cbdd05517e91879a0f2c4559d0f0518d2385b
2002-10-30 22:42:58 +00:00
drh
1f16230b5c Minimal support for oracle8 outer join syntax. (CVS 771)
FossilOrigin-Name: 31df3690d0fe4bd4a293cbe8ca9a26c98c3ed3ce
2002-10-27 19:35:33 +00:00
drh
6977fea801 Correctly handle column names and string constants in parentheses.
Fix for ticket #179. (CVS 770)

FossilOrigin-Name: 3b68aa25c451b7c09ece457ac2b70a9a5d93508a
2002-10-22 23:38:04 +00:00
drh
e958bb4aef Take care to track ephemeral strings in the VDBE and make copies of ephemeral
strings that need to be preserved.  Ticket #177. (CVS 769)

FossilOrigin-Name: 562da534bbb605a8ce15824135b012ef2d86bbeb
2002-10-22 15:04:34 +00:00
drh
edbbbdf8f7 Rework the changes for ticket #176 (check-ins (760) and (761)) to be
more consistent with the rest of the source code. (CVS 768)

FossilOrigin-Name: f50a177b4239bc7a83563ac9361e830ec04e81fb
2002-10-20 18:19:45 +00:00
drh
3c2007a546 The "table_info" pragma reports unspecified column types as "numeric" instead
of "text".  Fix for ticket #174. (CVS 767)

FossilOrigin-Name: 395ab5fac201a37d6eca833ffd6f58ac8a0121a2
2002-10-20 16:00:27 +00:00
drh
275ed72c9b Export the sqlite_function_type function from windows DLLs. Ticket #173. (CVS 766)
FossilOrigin-Name: d5470dfe102ef9b1dac3b15a2f5cc225e3c26129
2002-10-20 15:55:01 +00:00
drh
315555ca50 Work around a bug in the Borland C compiler. Ticket #172. (CVS 765)
FossilOrigin-Name: 3ef2925650bfbeb4ee5dbd0aaf8e606fc4cd2be1
2002-10-20 15:53:03 +00:00
drh
2678058853 Make sure malloc(0) always returns NULL. Fix for ticket #171. (CVS 764)
FossilOrigin-Name: 4622b7ce8f4727a6405ddf4f0af701db86da86bf
2002-10-20 15:46:22 +00:00
drh
32fbe342db Speed improvement by avoiding a call to sqliteBtreeLast() when inserting a
new row into a table. (CVS 763)

FossilOrigin-Name: d0af59fe6b9d5d026786e7cce1c49c208a0335cc
2002-10-19 20:16:37 +00:00
drh
906bf2a316 Fix the URL for pointing to MinGW on the homepage. (CVS 762)
FossilOrigin-Name: 16aad98aad4d8dd4a8400cdee32004b8c4785d60
2002-10-19 20:13:51 +00:00
mike
16aaf451b7 Minor coding fix in getting the windows platform version, when multithreading (CVS 761)
FossilOrigin-Name: b53ab71d074ada47ce22bd161f6aee24587302af
2002-10-17 09:01:31 +00:00
mike
710dcfbde5 fix for locking in Windows (CVS 760)
FossilOrigin-Name: 83add34f64895a4b465881213eba82f3b1f5c964
2002-10-17 00:38:54 +00:00
drh
f1f0fa0769 Remove the call to srand() and add better comments to the sqliteOsRandomSeed()
routine.  Ticket #163. (CVS 759)

FossilOrigin-Name: d87a886d8f63f54466848151e2b0e8565b338593
2002-10-12 13:43:59 +00:00
drh
c8f8b632c3 Fix a bug in the left outer join logic. (CVS 758)
FossilOrigin-Name: 6c0f44bd6374010f7a4a091e585eb36e0665f96f
2002-09-30 12:36:26 +00:00
drh
294fb92b50 Fix an uninitialized variable that could cause problems when comparing
two NULLs. (CVS 757)

FossilOrigin-Name: 015425001813971f6d4c97c18d64c7f14fa1955f
2002-09-30 01:31:21 +00:00
drh
c4ca897b9a Version 2.7.2 (CVS 756)
FossilOrigin-Name: 59ba43449a53fb32e2dd4259285af8b4206c298a
2002-09-25 19:50:17 +00:00
drh
d042ddb31b Bump the version number to 2.7.2. (CVS 755)
FossilOrigin-Name: a164528e8c6df3569ab178a3b737744dcccb64e7
2002-09-25 19:26:59 +00:00
drh
a226d05408 Bug fix: When multiple SQL statements were passed into a single sqlite_exec() call, execution speed would decrease for each statement executed because VDBE cursors were not being reused. Now the cursors are reused and execution time is linear. (CVS 754)
FossilOrigin-Name: b0d27a377a9f6134f81108fe45c8c868ab4d4411
2002-09-25 19:04:07 +00:00
drh
df68f6b768 Make sure memory malloced() for structures is aligned on an even byte boundry.
Solaris segfaults otherwise. (CVS 753)

FossilOrigin-Name: 14ebe30bf5937effdc388e23e998ba1a34fb0a29
2002-09-21 15:57:57 +00:00
drh
3e56c04c4e Fix a bug in the OP_MemStore operator of the VDBE. A realloc() might
occur but pointer to the old buffer were not being moved over to
the new buffer. (CVS 752)

FossilOrigin-Name: 29145746f34438bd830c763872c5e82572150357
2002-09-17 03:20:46 +00:00
drh
995d71b715 Modify the sqlite_encode_binary() routine to return the strlen() of the
encoded string.  Also fix a bug that occurs when attempting to encode
a zero-length buffer. (CVS 751)

FossilOrigin-Name: f12c3a25ba5408c2a7c846a9f160416fd188cd26
2002-09-16 11:44:05 +00:00
drh
cabb081971 Do not put a write lock on the main database file when writing to a temporary
table. (CVS 750)

FossilOrigin-Name: 3f253afe15d4f7392555f340a41d780d1248087f
2002-09-14 13:47:32 +00:00
drh
41a3bd0a01 Rename all tests so that the first part of the test name corresponds to the
file that contains that test.  This makes it much easier to find a particular
test after it fail. (CVS 749)

FossilOrigin-Name: 6cb80ae10af60863cc25c22a6442ba1d43b7409c
2002-09-14 12:04:56 +00:00
drh
6eba16f3d7 Update the SQL language documentation to talk about SELECT DISTINCT. (CVS 748)
FossilOrigin-Name: ef7116751ddc4e82228c115b0a332ffb47a22ae5
2002-09-12 14:08:32 +00:00
drh
ac82fcf5f0 Fix for ticket #147: Honor the ORDER BY and LIMIT clauses in a SELECT even
if the destination of that SELECT is a subroutine call. (CVS 747)

FossilOrigin-Name: 23fe36c7e88282f6d1b7547ab892ea88f0e65262
2002-09-08 17:23:41 +00:00
drh
85a1c4a609 Modify the build process so that the VDBE opcode numbers and the table
that contains the opcode names are both automatically generated. This makes
it much easier to create new VDBE opcodes. (CVS 1727)

FossilOrigin-Name: c4f0bb02387a6e6f254320e1e5eef3d5d8a3c538
2002-09-08 00:04:54 +00:00
drh
8f619ccd3c Modify the build process so that the VDBE opcode numbers and the table
that contains the opcode names are both automatically generated. This makes
it much easier to create new VDBE opcodes. (CVS 746)

FossilOrigin-Name: eb54d455b0325d3be96daf6c220c4ee3e0da1a85
2002-09-08 00:04:50 +00:00
drh
8c90ebb0e2 Fix a memory leak that occurred when sqlite_open() failed. (CVS 745)
FossilOrigin-Name: a876021304a5de7ede1bf835971da7e328d1af07
2002-09-05 23:21:37 +00:00
drh
96ddd6db58 Rewind the checkpoint journal after each statement to avoid allowing
the file to become too large. (CVS 744)

FossilOrigin-Name: f4288520dfd1587446e50fa7ef23f75f6f63a7cf
2002-09-05 19:10:33 +00:00
drh
4e371ee41c Fix for ticket #146: Correctly handle reads of unused disk blocks at the
end of the file. (CVS 743)

FossilOrigin-Name: f5c2654768a6201fc554b59f1b2f56bcce738bc4
2002-09-05 16:08:27 +00:00
drh
b798fa6481 Always fill in the 5th parameter to sqlite_exec if there is an error. (CVS 742)
FossilOrigin-Name: 7f8fd5c75d614f81ef87f0fc952c341cbc5076d0
2002-09-03 19:43:23 +00:00
drh
96f4531077 Add documentation on NULL handling in SQLite versus other SQL database
engines. (CVS 741)

FossilOrigin-Name: dd8867fc479891ed8fa36c5cf2359e49c6754a8c
2002-09-02 14:11:02 +00:00
drh
0e1cfb8574 Detect when the test scripts are being run as root and issue an appropriate
error message. (CVS 740)

FossilOrigin-Name: 9ca2c507704f85446d873d5e8429554f2ad4df9e
2002-09-02 12:14:50 +00:00
drh
f74b8d9b89 Relax the locking requirements on BTree cursors. Any number of read and
write cursors can be open at the same time now, but a write cannot occur
as long as one or more read cursors are open.

Before this change, one or more read cursors could be open on a table,
or a single write cursor, but not both.  Both policies have the same
desirable effect: they prevent writes to a table while a sequential scan
of that table is underway.  But the new policy is a little less restrictive.
Both policies prevent an UPDATE from occurring inside a SELECT (which is
what we want) but the new policy allows a SELECT to occur inside an
UPDATE. (CVS 739)

FossilOrigin-Name: 8c2a0836980341faa479cfe6c716409e6057367d
2002-09-01 23:20:45 +00:00
drh
c2eef3b32b Parse foreign key constraints and populate internal data structures
appropriately.  Constraints are still not enforced. (CVS 738)

FossilOrigin-Name: 170711ca65dc894d0486b9d575edb8f1708250fb
2002-08-31 18:53:06 +00:00
drh
b680a344e5 Version 2.7.1 (CVS 737)
FossilOrigin-Name: 5f51e13d56a58d7c263043cae9898d796017a369
2002-08-31 17:02:43 +00:00
drh
56cdb3b237 Change the version number for release 2.7.1. (CVS 736)
FossilOrigin-Name: b7f788fcc4a26ae42196a209d2e94672321dc154
2002-08-31 17:02:25 +00:00
drh
df01cdf9b0 Initial checking of two new test files: format3.test and memleak.test. (CVS 735)
FossilOrigin-Name: 6ffedb90a6478af6548db5298368eeca2b708cdc
2002-08-31 16:52:44 +00:00
drh
b7dadd4d85 Fix for ticket #145: Include the func.c source file in the build of testfixture
so that the "randstr()" function will be available. (CVS 734)

FossilOrigin-Name: c5e0c6a782aedc4a273aaf8bc2ef60918797e5f1
2002-08-31 16:33:25 +00:00
drh
1e0ccab9f0 If the database is locked when sqlite_open() is called, sqlite_exec() should
still honor the busy callback and should return an error message together
with the SQLITE_BUSY result code. (CVS 733)

FossilOrigin-Name: 78a0229a7e5e33fe642847381f5514e6ec30f29f
2002-08-29 23:59:47 +00:00
drh
142e30df99 Slightly faster INSERTs from a SELECT by avoiding an intermediate table.
But it didn't make nearly as much difference as I had hoped. (CVS 732)

FossilOrigin-Name: 723362e74f79c784314d042e3a8c8a9bf07cbd5e
2002-08-28 03:00:58 +00:00
drh
66105a8ea0 Change the tokenizer to ignore C-style comments /*...*/ in accordance with
SQL99. (CVS 731)

FossilOrigin-Name: f1534489484afdb835ad8e6f97909fbe76dbe414
2002-08-27 14:28:29 +00:00
drh
da30d3696b Fix for ticket #142: Make sure we get the correct sort order even when the
columns being sorted contain NULLs. (CVS 730)

FossilOrigin-Name: 45847390d007718a4b7a4e9fa445136d013113f8
2002-08-26 19:55:07 +00:00
drh
d2df27e41d Version 2.7.0 (CVS 729)
FossilOrigin-Name: 9e341d9c934c2111be6834743f1ce30463b095b6
2002-08-25 20:58:11 +00:00
drh
305f99a0fb Documentation updates prior to the releae of 2.7.0. (CVS 728)
FossilOrigin-Name: e2d95f85a3c4beeb5f8e78498f52fc00475f38ed
2002-08-25 20:11:18 +00:00
drh
8c74a8ca5b Fix for ticket #136: Added the OP_RenameCursor VDBE instruction and used it
to make cursor numbers right on nested subqueries.  Also added OP_Gosub and
OP_Return but have not actually used them for anything yet. (CVS 727)

FossilOrigin-Name: c602603e7cd8dc5c8bb9db2748eacab650de5bf0
2002-08-25 19:20:40 +00:00
drh
d94a669894 Fix the memory leak introduced by check-in (725). (CVS 726)
FossilOrigin-Name: b957dafc26383af514795df18bc7b8f367c9bd21
2002-08-25 18:29:11 +00:00
drh
4b59ab5e64 Change the way token memory is allocated in an effort to fix ticket #136.
There is now a memory leak when using views of views. (CVS 725)

FossilOrigin-Name: 22d8726e61eec0e53893f492cb2163824b87a23e
2002-08-24 18:24:51 +00:00
jadams
79983d03e8 Fix for ticket #138: Makefile doesn't use exec_prefix, has some install problems (CVS 724)
FossilOrigin-Name: 97fc4a71a12b52cda67b5192c3bd7bd10ac0c7a6
2002-08-22 18:18:35 +00:00
drh
bd842babb5 Fix for ticket #137: Use getpwuid() instead of getpwent(). (CVS 723)
FossilOrigin-Name: ea011990c552a7a6019b63f9b4341ad6c8663479
2002-08-21 11:26:41 +00:00
drh
f04d5081a7 This COLLATE keyword was not being parsed correctly inside CREATE TABLE
statements - it was being included as part of the datatype.  This fixes
the problem. (CVS 722)

FossilOrigin-Name: 39bd52d33029233d4b22df08975e9ef3c74c260f
2002-08-18 22:41:22 +00:00
drh
6b8b8749d4 Fix for ticket #110: return an error if trying to start a transaction within a
transaction or when attempting to commit or rollback outside of a transaction. (CVS 721)

FossilOrigin-Name: df51cb166bf7c5b8b0530cc86df8d2d68de81a40
2002-08-18 20:28:06 +00:00
drh
d8acdb3c36 Documentation updates. (CVS 720)
FossilOrigin-Name: e372a60be8de3332ab6e45d82f21227b8b9acf82
2002-08-18 19:09:22 +00:00
drh
cb48588297 Fix for ticket #135: Remove unused variables from three files. (CVS 719)
FossilOrigin-Name: 8cf17f2a24ee9bd5d1ea66484922819626c412dd
2002-08-15 13:50:48 +00:00
drh
c277413089 More documentation updates. (CVS 718)
FossilOrigin-Name: 9c0400aa7a0244605828fa6450ea1cc723240b16
2002-08-15 13:45:17 +00:00
drh
310ae7be1e Additional test cases and documentation updates. (CVS 717)
FossilOrigin-Name: 048b16c111693727482642e2a19a74a91458fc80
2002-08-15 11:48:13 +00:00
drh
3d037a91a5 Fixes and test improvements resulting from code coverage testing. (CVS 716)
FossilOrigin-Name: 66a0f6a8e25e3eeed78eba4b63b097f921c79d99
2002-08-15 01:26:09 +00:00
drh
b27b83a941 Fix for ticket #134: Change the lemon.c sources to work around a problem with
the AIX C compiler. (CVS 715)

FossilOrigin-Name: 07f6020bb56d6d1bffdd936017f61cfae5bd134b
2002-08-14 23:18:57 +00:00
drh
d1efac52d5 Implement probabilistic reader/writer locks under windows so that windows
can have multiple simultaneous readers. (CVS 714)

FossilOrigin-Name: 2127de3f03537ef2f18120e773f7603e0984ff81
2002-08-14 12:56:54 +00:00
drh
c330af1dca Disable sorting by indices if there is a COLLATE subclause in the
ORDER BY clause. (CVS 713)

FossilOrigin-Name: 2438da791afb53b4f1c7a9ff9705d393c86f3cbd
2002-08-14 03:03:57 +00:00
drh
0c44e2edf3 Fix for ticket #132: make the working directory the last choice for where
to write temporary files, not the first choice. (CVS 712)

FossilOrigin-Name: 26a4e7e7a3eee62c170ce264cb964a92bc7f52c9
2002-08-14 00:10:44 +00:00
drh
fbe4375cae Update documentation to better explain the typelessness of SQLite and to
describe the distinction between text and numeric data. (CVS 711)

FossilOrigin-Name: 4ff0f578eca4a8672cf570923e6c015c3ba6b9f4
2002-08-14 00:08:12 +00:00
drh
a9e99aee95 Make the distinction between text and numeric data. (CVS 710)
FossilOrigin-Name: 310ac4fbaf0ed63f98bfacb55259960be03b0c8b
2002-08-13 23:02:57 +00:00
drh
76800328b2 Documentation and makefile updates. (CVS 709)
FossilOrigin-Name: 92c403f485390bbd83a5be472e61c974f76d46b1
2002-08-13 20:45:39 +00:00
drh
72ca3794ab Bug fix to the left outer join logic. (CVS 708)
FossilOrigin-Name: f9d3d4c1230a7f1176b2002d72e94857e251c04e
2002-08-13 13:15:51 +00:00
drh
7f09b3e36b Bug fix to the left outer join logic. (CVS 1726)
FossilOrigin-Name: 957d908e6b84cd599b5cfd82af80c8fac79c1dbd
2002-08-13 13:15:49 +00:00
drh
f8b593e964 Version 2.6.3 (CVS 707)
FossilOrigin-Name: ba706aca0af9ed1ecb64edd4ab327bd5a5a32044
2002-08-13 00:02:10 +00:00
drh
74587e5567 Updates prior to release 2.6.3. (CVS 706)
FossilOrigin-Name: 34c4149eea7a48927e36867f4e25ff7fac40c66e
2002-08-13 00:01:16 +00:00
drh
94f3331a0b Fix for ticket #9 (again). The rollback journal files should now also be
byte-order independent. (CVS 705)

FossilOrigin-Name: 2fb3fdcdf06c1206bf14da640c2f9e599455f0eb
2002-08-12 12:29:56 +00:00
drh
0d316a40cc Fix for ticket #9: Add the ability to read little-endian database files
from a big-endian machine and vice versa. (CVS 704)

FossilOrigin-Name: ce4b943bf68c160445a58ffccfbabbbd30d9829b
2002-08-11 20:10:47 +00:00
drh
6e397e447e Fix typos the source to webpages html files. (CVS 703)
FossilOrigin-Name: 61bb3af7405aa7b54f3e5519537ea483879eed39
2002-08-06 12:04:59 +00:00
drh
68d2e5918a Fix for ticket #131: When a SELECT contains a GROUP BY clause it cannot
use an index for sorting.  It has to sort as a separate operation after
the GROUP BY is complete. (CVS 702)

FossilOrigin-Name: 18745c67acdf7ebec378f5538174117970e9f5cc
2002-08-04 00:52:38 +00:00
drh
e0e5ef1471 Remove the restriction that a transaction cannot be started by one linuxthread
and continued by another.  Leave in the documentation the warning about not
carrying a database connection across fork() but do not test for it any more.
Ticket #130. (CVS 701)

FossilOrigin-Name: bdbdb866f2e76abd1f8f545adadc9a900ed0cd1a
2002-08-02 10:36:09 +00:00
drh
f1351b6759 Fix for ticket #124: Fix a stack VDBE overflow problem on joins on an
INTEGER PRIMARY KEY. (CVS 700)

FossilOrigin-Name: fe329e078fa209faf62e08599a00c7efa75b8501
2002-07-31 19:50:26 +00:00
drh
4eb9c6b9fd Version 2.6.2 (CVS 699)
FossilOrigin-Name: 223a2150ac1fa34d4bd01dd32b5fed9e90aa38d4
2002-07-31 00:38:06 +00:00
drh
4dec5b40ec Update version number and change log for the 2.6.2 release. (CVS 698)
FossilOrigin-Name: 4f196de07d258dc44b6fd20d776120e2aadd3224
2002-07-31 00:37:36 +00:00
drh
f573c99ba7 Fix for ticket #104: Make triggers on views work properly even after closing
and reopening the database.  Also fixed an unrelated bug in the version
2.6.0 database format upgrade logic.  The upgrade logic bug was found while
testing the trigger fixes. (CVS 697)

FossilOrigin-Name: 04973fc2a6a0c93877de7e564618e0e9fcffc06c
2002-07-31 00:32:50 +00:00
drh
92ed08a9d7 Fix for ticket #114: Correctly handle SQLITE_BUSY if it occurs during
database initialization. (CVS 696)

FossilOrigin-Name: 5b814b5df667ccc91d85fbb7f96e523483e9219b
2002-07-30 18:43:40 +00:00
drh
c51d204464 Fix for ticket #111: Update the documentation to explain that you may not
start a transaction in one thread and complete it in another thread under
Linux Threads where each thread has its own process ID. (CVS 695)

FossilOrigin-Name: 0b0c0492cc1e55c1c4feba6e92765ea09896096c
2002-07-30 17:42:10 +00:00
drh
62160e798c Fix for ticket #71: Correctly handle CR and CRLF line terminators in the
input files for the COPY command. (CVS 694)

FossilOrigin-Name: be1315755ef801b5ec07f469134e0d33a3ece990
2002-07-30 17:20:40 +00:00
danielk1977
368c7f6df1 UPDATE triggers on TEMP tables were broken. (CVS 693)
FossilOrigin-Name: c080ed01ea51628b86050762f097e702e3aeafdf
2002-07-21 23:09:55 +00:00
drh
77fc55904e Version 2.6.1 (CVS 691)
FossilOrigin-Name: 610b7bc70a12b271994255bd01a76b3525421535
2002-07-19 19:04:04 +00:00
drh
096c497eb3 Rig the ident string so that it is not changed by RCS on checkin. (CVS 692)
FossilOrigin-Name: 773d36c8d94bdcd0c78401282e48432ddd9b61d6
2002-07-19 19:03:41 +00:00
drh
26b3e1bc06 Fix an assertion failure that occurs when attempting to delete all rows of
a table while the "count_changes" pragma is turned on.  Up the version number
to 2.6.1. (CVS 690)

FossilOrigin-Name: 612df004017b241651074ee859096dd0ee5062b8
2002-07-19 18:52:40 +00:00
drh
426cc56a6b Add static ident strings (such as picked up by the RCS "ident" command)
containing the library version number. (CVS 689)

FossilOrigin-Name: 712ee3914e988f0077e9a3d6170ff8db496a9600
2002-07-19 18:13:35 +00:00
drh
c231172f3f Better detection and reporting of errors when initializing from the
sqlite_master table. (CVS 688)

FossilOrigin-Name: c8a7b725b7cec792d2148455a4cecbce9dfebe80
2002-07-19 17:46:38 +00:00
drh
b782325617 Version 2.6.0 Release 2 (CVS 687)
FossilOrigin-Name: cc4f824b155138326f1a62066a99c65d0f32fb8b
2002-07-18 11:10:30 +00:00
drh
ac729e224e Fix a bug in the publish.sh script that was causing the windows DLL to not
be built. (CVS 686)

FossilOrigin-Name: ee8c2758a222251fed0197d2a364346d05728240
2002-07-18 11:07:19 +00:00
drh
199e3cf1b6 Change the name of variable "near" to "nearby" since MSVC mistakenly belieaves
that "near" is a keyword. (CVS 685)

FossilOrigin-Name: 9761a2a0fbfd3e98f719a813bcc544950968aef2
2002-07-18 11:01:47 +00:00