]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
22 years agoFix a memory leak associated with PRIMARY KEY in a CREATE TABLE statement
drh [Wed, 26 Feb 2003 13:52:52 +0000 (13:52 +0000)] 
Fix a memory leak associated with PRIMARY KEY in a CREATE TABLE statement
that fails.  Ticket #249. (CVS 874)

FossilOrigin-Name: 8e9dc567996c3301c14a1f055ff2265770cbc3e1

22 years agoFix a memory leak associated with PRIMARY KEY in a CREATE TABLE statement
drh [Wed, 26 Feb 2003 13:52:51 +0000 (13:52 +0000)] 
Fix a memory leak associated with PRIMARY KEY in a CREATE TABLE statement
that fails.  Ticket #249. (CVS 1730)

FossilOrigin-Name: 66158843dfa073ffb8779a5170e091cebc018855

22 years agoWhen the right table in a LEFT OUTER JOIN contains an INTEGER PRIMARY KEY
drh [Thu, 20 Feb 2003 01:48:12 +0000 (01:48 +0000)] 
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

22 years agoFix the parsing of the LIMIT clause when the limit and offset are separated
drh [Thu, 20 Feb 2003 00:44:52 +0000 (00:44 +0000)] 
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

22 years agoVersion 2.8.0 (CVS 870)
drh [Sun, 16 Feb 2003 22:49:47 +0000 (22:49 +0000)] 
Version 2.8.0 (CVS 870)

FossilOrigin-Name: 5db98b3f4048fc8cd28d8fd225f2b0221ccf1d17

22 years agoCouple of last-minute changes before 2.8.0. (CVS 871)
drh [Sun, 16 Feb 2003 22:48:12 +0000 (22:48 +0000)] 
Couple of last-minute changes before 2.8.0. (CVS 871)

FossilOrigin-Name: 8192c937d524fef703d7ba2eb608c3d74e20440f

22 years agoUpdate the speed comparison documentation to show the improved performance
drh [Sun, 16 Feb 2003 22:36:03 +0000 (22:36 +0000)] 
Update the speed comparison documentation to show the improved performance
of PostgreSQL after performance tuning. (CVS 869)

FossilOrigin-Name: 73c904e57a158820705daf5737e0fc825cfe1aea

22 years agoAdded test code to check for file descriptor leaks. All regression tests pass
drh [Sun, 16 Feb 2003 22:21:32 +0000 (22:21 +0000)] 
Added test code to check for file descriptor leaks.  All regression tests pass
now on both win2k and linux. (CVS 868)

FossilOrigin-Name: 75ba78280f7ab6b6acce5878859312f3223ee898

22 years agoFix more bugs. The new rollback journal implementation now passes all
drh [Sun, 16 Feb 2003 19:13:36 +0000 (19:13 +0000)] 
Fix more bugs.  The new rollback journal implementation now passes all
regression tests under Linux. (CVS 867)

FossilOrigin-Name: d10adc1c5727d76320d5919be55e86d030e9c8bc

22 years agoFix the pager so that correct rollbacks occur when synchronous is turned off.
drh [Sat, 15 Feb 2003 23:09:17 +0000 (23:09 +0000)] 
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

22 years agoUpdate the documentation for the new journal format to be introduced in
drh [Thu, 13 Feb 2003 02:54:03 +0000 (02:54 +0000)] 
Update the documentation for the new journal format to be introduced in
version 2.8.0. (CVS 1729)

FossilOrigin-Name: dc53d92141c931fb133149355c3a1ea64030e676

22 years agoUpdate the documentation for the new journal format to be introduced in
drh [Thu, 13 Feb 2003 02:54:03 +0000 (02:54 +0000)] 
Update the documentation for the new journal format to be introduced in
version 2.8.0. (CVS 865)

FossilOrigin-Name: e05a7a552f694158ee449d8682f5c137f1c2f2ac

22 years agoFix a bug in the rollback logic for the new journal format. (CVS 864)
drh [Thu, 13 Feb 2003 01:58:20 +0000 (01:58 +0000)] 
Fix a bug in the rollback logic for the new journal format. (CVS 864)

FossilOrigin-Name: 7c22aa3f817e737cfd943d903856756468e8678b

22 years agoAdded the new FULL option to the SYNCHRONOUS pragma. Still need to test it. (CVS...
drh [Wed, 12 Feb 2003 14:09:43 +0000 (14:09 +0000)] 
Added the new FULL option to the SYNCHRONOUS pragma.  Still need to test it. (CVS 1728)

FossilOrigin-Name: 8968bc063607856775ad63b6594d40c55cf288c0

22 years agoAdded the new FULL option to the SYNCHRONOUS pragma. Still need to test it. (CVS...
drh [Wed, 12 Feb 2003 14:09:42 +0000 (14:09 +0000)] 
Added the new FULL option to the SYNCHRONOUS pragma.  Still need to test it. (CVS 863)

FossilOrigin-Name: 792a9e157dd066fcaffd4f5b373010151fb4ca61

22 years agoFix a bug in the legacy journal format writing logic. (CVS 862)
drh [Wed, 12 Feb 2003 02:10:15 +0000 (02:10 +0000)] 
Fix a bug in the legacy journal format writing logic. (CVS 862)

FossilOrigin-Name: 6c927dd36c19ebb8bb8222b4d18ed67f4fe733e8

22 years agoModify the journal format to be more robust against garbage that might appear
drh [Tue, 11 Feb 2003 14:55:40 +0000 (14:55 +0000)] 
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

22 years agoMake the shell run much faster for inputs where a single SQL statement spans
drh [Wed, 5 Feb 2003 14:06:20 +0000 (14:06 +0000)] 
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

22 years agoMake the GROUP BY clause work even if there are no aggregate functions. (CVS 859)
drh [Sun, 2 Feb 2003 12:41:25 +0000 (12:41 +0000)] 
Make the GROUP BY clause work even if there are no aggregate functions. (CVS 859)

FossilOrigin-Name: b68792315883eed8523f5e11856ec8378dc972c1

22 years agoWhen a CREATE TABLE ... AS SELECT statement fails, make sure the table name
drh [Sat, 1 Feb 2003 13:53:28 +0000 (13:53 +0000)] 
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

22 years agoThe sqlite_exec() function now returns SQLITE_AUTH when authorization fails.
drh [Fri, 31 Jan 2003 17:21:49 +0000 (17:21 +0000)] 
The sqlite_exec() function now returns SQLITE_AUTH when authorization fails.
Ticket #231. (CVS 857)

FossilOrigin-Name: d93c1aeb544a5b1056424945eb43854213b30e50

22 years agoAllow double-quoted strings as string constants in the IN operator. As a
drh [Fri, 31 Jan 2003 17:16:36 +0000 (17:16 +0000)] 
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

22 years agoAdditional testing and bug fixing with the non-callback API. Updated the
drh [Wed, 29 Jan 2003 22:58:26 +0000 (22:58 +0000)] 
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

22 years agoBetter error messages on constraint violations. Additional tests and bug fixes
drh [Wed, 29 Jan 2003 18:46:51 +0000 (18:46 +0000)] 
Better error messages on constraint violations.  Additional tests and bug fixes
for the callback-free API. (CVS 854)

FossilOrigin-Name: ccc82f1ab4539a60ee5cc2625743c5389f9ccd8e

22 years agoThe callback-free API is now working, though much more testing is need. (CVS 853)
drh [Wed, 29 Jan 2003 14:06:07 +0000 (14:06 +0000)] 
The callback-free API is now working, though much more testing is need. (CVS 853)

FossilOrigin-Name: 162b259188e6967fe9c3722da26b81aab5655d83

22 years agoFirst code for the new callback-free API. All regression tests pass but the
drh [Tue, 28 Jan 2003 23:13:10 +0000 (23:13 +0000)] 
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

22 years agoAdded section on comments.
jplyon [Sun, 26 Jan 2003 15:28:18 +0000 (15:28 +0000)] 
Added section on comments.
Corrected broken </p> end tags. (CVS 851)

FossilOrigin-Name: c957f4f0c6b486f25bc567dafeed186f91c8c315

22 years agoVersion 2.7.6 (CVS 850)
drh [Sat, 25 Jan 2003 16:32:13 +0000 (16:32 +0000)] 
Version 2.7.6 (CVS 850)

FossilOrigin-Name: bdba796f3b89690ab5d53a9e16924383ef72657c

22 years agoFix a bug in the rollback validation logic (code that only runs during
drh [Sat, 25 Jan 2003 15:43:22 +0000 (15:43 +0000)] 
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

22 years agoRemove an unused variable. (CVS 848)
drh [Sat, 25 Jan 2003 14:34:23 +0000 (14:34 +0000)] 
Remove an unused variable. (CVS 848)

FossilOrigin-Name: 18f4ffaa2ed89784a1ea3c61c864d20e18fa1e9f

22 years agoPreparations for the release of version 2.7.6. (CVS 847)
drh [Sat, 25 Jan 2003 14:32:03 +0000 (14:32 +0000)] 
Preparations for the release of version 2.7.6. (CVS 847)

FossilOrigin-Name: 5143d4814df1dd440a362a90dd3f328c84527565

22 years agoUpdate the speed.html documentation. Recent optimizations have made the
drh [Sat, 25 Jan 2003 14:25:42 +0000 (14:25 +0000)] 
Update the speed.html documentation.  Recent optimizations have made the
library much faster. (CVS 846)

FossilOrigin-Name: ed47d162a072a2f98b633cc14f2be1474288d90b

22 years agoAdd asserts to btree.c that check for the correct size of various typedefs
drh [Fri, 24 Jan 2003 12:14:20 +0000 (12:14 +0000)] 
Add asserts to btree.c that check for the correct size of various typedefs
and structures.  Ticket #233. (CVS 845)

FossilOrigin-Name: c7e647d011b086a6e57420850f6bc4f28fcb23ee

22 years agoMinor refinements to the pager. (CVS 844)
drh [Wed, 22 Jan 2003 01:26:44 +0000 (01:26 +0000)] 
Minor refinements to the pager. (CVS 844)

FossilOrigin-Name: 19221dee5fee4c8800cbae309f009964c8d646a2

22 years agofix a typo on the quickstart.html page. (CVS 843)
drh [Tue, 21 Jan 2003 23:06:57 +0000 (23:06 +0000)] 
fix a typo on the quickstart.html page. (CVS 843)

FossilOrigin-Name: 61869bb51b981a47d783cc8739833cc0c4733b0a

22 years agoIn the pager, cache a pointer to the first page on the freelist that does not
drh [Tue, 21 Jan 2003 02:39:36 +0000 (02:39 +0000)] 
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

22 years agoUpdate comments. No changes to code. (CVS 841)
drh [Sun, 19 Jan 2003 03:59:45 +0000 (03:59 +0000)] 
Update comments.  No changes to code. (CVS 841)

FossilOrigin-Name: f6a8706872c43cee3003b48bb427c7b74b1f89e7

22 years agoUpdate the speed comparison page. (CVS 840)
drh [Sat, 18 Jan 2003 22:01:06 +0000 (22:01 +0000)] 
Update the speed comparison page. (CVS 840)

FossilOrigin-Name: 424cb2edb0c51b911791422ce7a9f5284a57f9ce

22 years agoFix datatype reporting and collating sequence selection so that it works
drh [Sat, 18 Jan 2003 20:11:05 +0000 (20:11 +0000)] 
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

22 years agoDo not report an error if the input to the sqlite shell ends in a comment.
drh [Sat, 18 Jan 2003 17:05:00 +0000 (17:05 +0000)] 
Do not report an error if the input to the sqlite shell ends in a comment.
Ticket #211. (CVS 838)

FossilOrigin-Name: 32a8e6e9771d636c0ad3042632d35865bc08585b

22 years agoCheck the validity of the database connection before the trace callback,
drh [Sat, 18 Jan 2003 17:04:08 +0000 (17:04 +0000)] 
Check the validity of the database connection before the trace callback,
not afterwards. (CVS 837)

FossilOrigin-Name: 960a2e4af3b940d74a82f98e8bf19aeec88a05ce

22 years agoAdd the sqlite_trace() hook for tracing the SQL that an application executes.
drh [Thu, 16 Jan 2003 16:28:53 +0000 (16:28 +0000)] 
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

22 years agoImprovements to the pager to help large updates against a large database run
drh [Thu, 16 Jan 2003 13:42:43 +0000 (13:42 +0000)] 
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

22 years agoFinish out the test suite for the new sqlite_set_authorizer API. (CVS 834)
drh [Tue, 14 Jan 2003 13:48:20 +0000 (13:48 +0000)] 
Finish out the test suite for the new sqlite_set_authorizer API. (CVS 834)

FossilOrigin-Name: 701a73918db22fd134a8b959670ba7a4a908c8c5

22 years agoFix a memory leak in the PRAGMA authorization code. (CVS 833)
drh [Tue, 14 Jan 2003 02:54:08 +0000 (02:54 +0000)] 
Fix a memory leak in the PRAGMA authorization code. (CVS 833)

FossilOrigin-Name: ba58979f2ff3ec878a21e7c171fbcd8fa79ace6f

22 years agoMore tests of the sqlite_set_authorizer() API together with fixes for bugs
drh [Tue, 14 Jan 2003 02:49:27 +0000 (02:49 +0000)] 
More tests of the sqlite_set_authorizer() API together with fixes for bugs
that the new tests uncovered. (CVS 832)

FossilOrigin-Name: cc2ae781ac186f9ee1afacdc9117087421955369

22 years agoMake the GLOB work write with upper-case characters. Ticket #226. (CVS 831)
drh [Tue, 14 Jan 2003 00:44:08 +0000 (00:44 +0000)] 
Make the GLOB work write with upper-case characters.  Ticket #226. (CVS 831)

FossilOrigin-Name: 7ea46e706485cc159f9d1c7e69efcdd048a0bb12

22 years agoRevise the sqlite_set_authorizer API to provide more detailed information
drh [Mon, 13 Jan 2003 23:27:31 +0000 (23:27 +0000)] 
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

22 years agoThe initial round of tests for the sqlite_set_authorizer() API. More are
drh [Sun, 12 Jan 2003 19:33:52 +0000 (19:33 +0000)] 
The initial round of tests for the sqlite_set_authorizer() API.  More are
needed before release.  Ticket #215. (CVS 829)

FossilOrigin-Name: 5707b3d56efb6e988f816abefb1836f2f3254117

22 years agoForgot to include the new "auth.c" source file in the previous checkin. (CVS 828)
drh [Sun, 12 Jan 2003 18:07:48 +0000 (18:07 +0000)] 
Forgot to include the new "auth.c" source file in the previous checkin. (CVS 828)

FossilOrigin-Name: 7601916419489879fe963c83010b452c49ef063f

22 years agoInitial check-in of the code for the new sqlite_set_authorizer() API function.
drh [Sun, 12 Jan 2003 18:02:16 +0000 (18:02 +0000)] 
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

22 years agoRemove an unused variable from the VDBE. Ticket #223. (CVS 826)
drh [Sun, 12 Jan 2003 17:35:00 +0000 (17:35 +0000)] 
Remove an unused variable from the VDBE.  Ticket #223. (CVS 826)

FossilOrigin-Name: 0deaf563fd9784bf0795107cd10e6b3269dfecea

22 years agoChange the PopStack() routine so that it doesn't confuse bounds checkers.
drh [Sun, 12 Jan 2003 17:28:19 +0000 (17:28 +0000)] 
Change the PopStack() routine so that it doesn't confuse bounds checkers.
Ticket #222. (CVS 825)

FossilOrigin-Name: fc11fa50b8f39f5e0b3674d7df832ffbca0d948f

22 years agoRemove the aOrder() array from where.c. (CVS 824)
drh [Sat, 11 Jan 2003 15:02:44 +0000 (15:02 +0000)] 
Remove the aOrder() array from where.c. (CVS 824)

FossilOrigin-Name: b2c1edb47f481cafe6718bafcdb517cca160a44d

22 years agoFix two compiler warnings from OS-X. (CVS 823)
drh [Sat, 11 Jan 2003 14:25:39 +0000 (14:25 +0000)] 
Fix two compiler warnings from OS-X. (CVS 823)

FossilOrigin-Name: 4c22da76ca91f3c59dac1c529e82ac3b04b767bd

22 years agoDocument the SHOW_DATATYPES pragma and add tests for it to the test suite.
drh [Sat, 11 Jan 2003 14:19:51 +0000 (14:19 +0000)] 
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

22 years agoRemove the ColumnCount opcode, which had become a no-op. (CVS 821)
drh [Sat, 11 Jan 2003 13:30:57 +0000 (13:30 +0000)] 
Remove the ColumnCount opcode, which had become a no-op. (CVS 821)

FossilOrigin-Name: 86deb12d68026913d181f9498144fa56445899f2

22 years agoPort ot MacOS Classic. Ticket #218. (CVS 820)
drh [Wed, 8 Jan 2003 13:02:52 +0000 (13:02 +0000)] 
Port ot MacOS Classic.  Ticket #218. (CVS 820)

FossilOrigin-Name: 13f82d67f60ae869d5bf2e31d9357a860aa62bad

22 years agoAvoid calling truncate() and stat() on the checkpoint journal to improve the
drh [Tue, 7 Jan 2003 14:46:08 +0000 (14:46 +0000)] 
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

22 years agoIn the VDBE, allocate space to hold column names when the VDBE first starts.
drh [Tue, 7 Jan 2003 13:55:22 +0000 (13:55 +0000)] 
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

22 years agoWhen constructing records and index keys, use static string space rather than
drh [Tue, 7 Jan 2003 13:43:45 +0000 (13:43 +0000)] 
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

22 years agoMore optimizations. (CVS 816)
drh [Tue, 7 Jan 2003 02:47:47 +0000 (02:47 +0000)] 
More optimizations. (CVS 816)

FossilOrigin-Name: a362981b20fd33254ad498619eedf75b576682e3

22 years agoOptimizations to the tokenizer. (CVS 815)
drh [Tue, 7 Jan 2003 01:44:37 +0000 (01:44 +0000)] 
Optimizations to the tokenizer. (CVS 815)

FossilOrigin-Name: 032b3daa1d3cf3e00a4a6ba0b09624f1aba6445c

22 years agoRemove unnecessary code from the VDBE. (CVS 814)
drh [Mon, 6 Jan 2003 23:54:05 +0000 (23:54 +0000)] 
Remove unnecessary code from the VDBE. (CVS 814)

FossilOrigin-Name: b96ec281ff29aad8af340b30c6ff4e129ffeeefb

22 years agoMore optimizations. (CVS 813)
drh [Sun, 5 Jan 2003 21:41:40 +0000 (21:41 +0000)] 
More optimizations. (CVS 813)

FossilOrigin-Name: 5809132f5bf40bae2331f887e87fe5baecc15c46

22 years agoParameterize the number of adjacent pages that participate in the balancing
drh [Sat, 4 Jan 2003 19:44:07 +0000 (19:44 +0000)] 
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

22 years agoAnother optimization to the btree logic. (CVS 811)
drh [Sat, 4 Jan 2003 18:53:27 +0000 (18:53 +0000)] 
Another optimization to the btree logic. (CVS 811)

FossilOrigin-Name: 03d20673616cae0dca524fd04557798a98fb7069

22 years agoOptimizations to the BTree module for a modest speed improvement. (CVS 810)
drh [Sat, 4 Jan 2003 16:48:09 +0000 (16:48 +0000)] 
Optimizations to the BTree module for a modest speed improvement. (CVS 810)

FossilOrigin-Name: 39902a70417475225956704a037493515e9b08b9

22 years agoAllow the rollback journal to be empty except for its header.
drh [Fri, 3 Jan 2003 02:04:27 +0000 (02:04 +0000)] 
Allow the rollback journal to be empty except for its header.
Ticket #212. (CVS 809)

FossilOrigin-Name: 1ba41bc2afab18cc295d9a45845296b46bfa57e5

22 years agoCode optimizations to help the library run faster. (CVS 808)
drh [Thu, 2 Jan 2003 14:43:55 +0000 (14:43 +0000)] 
Code optimizations to help the library run faster. (CVS 808)

FossilOrigin-Name: db745e87dc26cf1a35cdcec18f4b659742e14120

22 years agoIf compiled with the -DVDBE_PROFILE=1 option, special code is inserted that
drh [Wed, 1 Jan 2003 23:06:20 +0000 (23:06 +0000)] 
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

22 years agoVersion 2.7.5 (CVS 806)
drh [Sat, 28 Dec 2002 01:26:07 +0000 (01:26 +0000)] 
Version 2.7.5 (CVS 806)

FossilOrigin-Name: ee95eefe12c48f28412461125c231122e0d4277a

22 years agoUpdate the version number to 2.7.5. (CVS 805)
drh [Sat, 28 Dec 2002 01:10:14 +0000 (01:10 +0000)] 
Update the version number to 2.7.5. (CVS 805)

FossilOrigin-Name: b0864cc9c89a3c2350ac46634ef3c420f97d11c0

22 years agoFix an uninitialized variable in the pager. Tickets #208 and #206.
drh [Sat, 28 Dec 2002 01:06:30 +0000 (01:06 +0000)] 
Fix an uninitialized variable in the pager.  Tickets #208 and #206.
Bug introduced by check-in (795). (CVS 804)

FossilOrigin-Name: f3dc686e0258a9588e1433a89ac46795f76beeae

22 years agoVersion 2.7.4 (CVS 803)
drh [Tue, 17 Dec 2002 22:50:45 +0000 (22:50 +0000)] 
Version 2.7.4 (CVS 803)

FossilOrigin-Name: 0224db6f8ce5e3cecc4432f3966b8f59f80e9303

22 years agoPreparing for the 2.7.4 release. (CVS 802)
drh [Tue, 17 Dec 2002 14:30:42 +0000 (14:30 +0000)] 
Preparing for the 2.7.4 release. (CVS 802)

FossilOrigin-Name: f685ae15b1179baeadfadbaef0a73b001c96fac5

22 years agoIf the "fake_big_file" command fails, be sure to close the file before
drh [Tue, 17 Dec 2002 14:19:49 +0000 (14:19 +0000)] 
If the "fake_big_file" command fails, be sure to close the file before
returning. (CVS 801)

FossilOrigin-Name: fa1b5e2119617b111c6b463bbf641ddcb9972cae

22 years agoMake sure the host machine has enough disk space before running the
drh [Tue, 17 Dec 2002 14:13:48 +0000 (14:13 +0000)] 
Make sure the host machine has enough disk space before running the
large file tests. (CVS 800)

FossilOrigin-Name: b1ec547865a76541951433630bd4528d1988a4de

22 years agoTake care not to modify the sqlite* pointer to sqlite_exec() if we suspect
drh [Tue, 17 Dec 2002 13:05:25 +0000 (13:05 +0000)] 
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

22 years agoSave the full pathname of the database file so that journalling still works
drh [Sat, 7 Dec 2002 21:45:14 +0000 (21:45 +0000)] 
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

22 years agoFix a bug in the reverse scan logic that comes up when the table being
drh [Wed, 4 Dec 2002 22:29:28 +0000 (22:29 +0000)] 
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

22 years agoFixes to the logic that decides if the ORDER BY can be ignored due to the
drh [Wed, 4 Dec 2002 21:50:16 +0000 (21:50 +0000)] 
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

22 years agoScan the table backwards if there is an ORDER BY ... DESC clause that can
drh [Wed, 4 Dec 2002 20:01:06 +0000 (20:01 +0000)] 
Scan the table backwards if there is an ORDER BY ... DESC clause that can
be satisfied by an index. (CVS 795)

FossilOrigin-Name: c7a3487981de0ed5b43ea3ff4d46ab4437068dca

22 years agoAdd the sqliteBtreePrevious() routine to the BTree module API. This is
drh [Wed, 4 Dec 2002 13:40:25 +0000 (13:40 +0000)] 
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

22 years agoAllow an aggregate function in the HAVING clause even if no aggregates appear
drh [Tue, 3 Dec 2002 02:34:49 +0000 (02:34 +0000)] 
Allow an aggregate function in the HAVING clause even if no aggregates appear
in the result set.  Ticket #187. (CVS 793)

FossilOrigin-Name: 33c6fd6b3dc271fa1f2d4500b4f76c736accefce

22 years agoHonor ORDER BY clauses in VIEWs. Ticket #193. (CVS 792)
drh [Tue, 3 Dec 2002 02:22:52 +0000 (02:22 +0000)] 
Honor ORDER BY clauses in VIEWs.  Ticket #193. (CVS 792)

FossilOrigin-Name: dbf7893234a6c5d6bb2d931e52080bb05784c0c9

22 years agoChange to the pager to avoid opening journal files unnecessarily. This can
drh [Mon, 2 Dec 2002 04:25:19 +0000 (04:25 +0000)] 
Change to the pager to avoid opening journal files unnecessarily.  This can
sometimes results in a significant speed improvement. (CVS 791)

FossilOrigin-Name: fa5c042585c601449ede7319d0c5993cd8ba75a4

22 years agoFixed large file support under Linux. I'm unable to test under Windows.
drh [Sun, 1 Dec 2002 02:00:57 +0000 (02:00 +0000)] 
Fixed large file support under Linux.  I'm unable to test under Windows.
Ticket #191. (CVS 790)

FossilOrigin-Name: 9864a1265b5a37c12b0dd8446d81b84c5a3acc43

22 years agoAdd the "space_used.tcl" script to the tools directory. This script is used
drh [Sun, 24 Nov 2002 14:52:27 +0000 (14:52 +0000)] 
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

22 years agoAutomatically determine if pointers are 4 or 8 bytes in size during the
drh [Wed, 20 Nov 2002 11:55:18 +0000 (11:55 +0000)] 
Automatically determine if pointers are 4 or 8 bytes in size during the
compilation process.  Ticket #190. (CVS 788)

FossilOrigin-Name: dd5396a73a782b6abe9da3de43a5ee11e0dddbb2

22 years agoGet the new large file code working with the Borland compiler. Ticket #195. (CVS...
drh [Wed, 20 Nov 2002 11:07:59 +0000 (11:07 +0000)] 
Get the new large file code working with the Borland compiler.  Ticket #195. (CVS 787)

FossilOrigin-Name: da4a79e2891aa81e2e6d96689f99b3924f940dd5

22 years agoRemove extra </TD> from HTML output. Ticket #189. (CVS 786)
drh [Mon, 11 Nov 2002 13:56:47 +0000 (13:56 +0000)] 
Remove extra </TD> from HTML output.  Ticket #189. (CVS 786)

FossilOrigin-Name: dc5d9c129c566bf57d108b824ba486cfe070dda6

22 years agoBack out the changes in the pager that sorted pages prior to writing them
drh [Mon, 11 Nov 2002 01:04:47 +0000 (01:04 +0000)] 
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

22 years agoReplace the atoi() library routine with a faster home-grown version in the
drh [Mon, 11 Nov 2002 00:05:42 +0000 (00:05 +0000)] 
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

22 years agoTwo optimizations to the pager: (1) Write dirty pages back to the database
drh [Sun, 10 Nov 2002 23:32:56 +0000 (23:32 +0000)] 
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

22 years agoTry to better detect when the library is compiled for large file support (LFS)
drh [Sat, 9 Nov 2002 00:33:15 +0000 (00:33 +0000)] 
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

22 years agoAdd large file support to Windows. Change large file support for Unix so
drh [Wed, 6 Nov 2002 14:08:11 +0000 (14:08 +0000)] 
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

22 years agoChanges to include files so that the >2GB file patch will compile under BSD. (CVS...
drh [Wed, 6 Nov 2002 00:59:44 +0000 (00:59 +0000)] 
Changes to include files so that the >2GB file patch will compile under BSD. (CVS 780)

FossilOrigin-Name: 81bb1aed5e9094a9655bd03614bb111d79896928

22 years agoUpdate the FAQ to explain how to enable large file support. (CVS 779)
drh [Tue, 5 Nov 2002 23:24:38 +0000 (23:24 +0000)] 
Update the FAQ to explain how to enable large file support. (CVS 779)

FossilOrigin-Name: 4caf624e9061fe7489a8e3c6892975036a2272d5

22 years agoAdd support for databases larger than 2GB under Unix. Must be compiled
drh [Tue, 5 Nov 2002 23:03:02 +0000 (23:03 +0000)] 
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