0
0
mirror of https://github.com/tursodatabase/libsql.git synced 2024-12-15 05:09:50 +00:00

Commit Graph

  • d4d595f94c Make sure the min() and max() optimizations work on empty indexed tables. Ticket #296. (CVS 914) drh 2003-04-17 12:44:23 +00:00
  • 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) drh 2003-04-17 02:54:13 +00:00
  • 95b5084409 Rollback if a commit hook fails. (CVS 912) drh 2003-04-16 21:03:13 +00:00
  • 027850b676 Fix the authorizer so that it correctly interprets attempts to read the OLD and NEW pseudo-tables of a trigger. (CVS 911) drh 2003-04-16 20:24:52 +00:00
  • bb07e9a34f Simplify the number processing code. Fix for ticket #281. (CVS 910) drh 2003-04-16 02:17:35 +00:00
  • 144f9eadf6 Remove some unnecessary code and complication from the btree interface. (CVS 909) drh 2003-04-16 01:28:16 +00:00
  • 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) drh 2003-04-15 19:22:22 +00:00
  • 048bd5937b Added btree_rb.c (CVS 907) paul 2003-04-15 17:22:30 +00:00
  • 49449834fc Do not record the inserted rowid on when doing an INSERT within a trigger. Ticket #290. (CVS 906) drh 2003-04-15 14:01:43 +00:00
  • 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) drh 2003-04-15 01:49:48 +00:00
  • 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) drh 2003-04-15 01:19:47 +00:00
  • b0208ccaa3 Support in-memory databases for temp tables (CVS 903) paul 2003-04-13 18:26:49 +00:00
  • c11d4f9360 Split the implementation of COPY, PRAGMA, and ATTACH into separate source code files. (CVS 902) drh 2003-04-06 21:08:24 +00:00
  • e1051c653e Move the implementation of VACUUM into a separate source file. (CVS 901) drh 2003-04-06 20:52:32 +00:00
  • 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) drh 2003-04-06 20:44:45 +00:00
  • a73af533de More testing of ATTACH and DETACH. (CVS 899) drh 2003-04-05 16:56:28 +00:00
  • 2d4583473b Begin testing the new ATTACH and DETACH commands. (CVS 898) drh 2003-04-05 03:42:26 +00:00
  • f539f6a7e9 Fix for ticket #276. (CVS 897) drh 2003-04-03 19:35:02 +00:00
  • 0d1a643aea Added experimental APIs: sqlite_begin_hook() and sqlite_commit_hook(). (CVS 896) drh 2003-04-03 15:46:04 +00:00
  • 048c530c01 Use a intermediate table when inserting a TEMP table from a SELECT that reads from that same TEMP table. Ticket #275. (CVS 895) drh 2003-04-03 01:50:44 +00:00
  • b95a8864c9 Add infrastructure to suport multiple btree implementations (CVS 894) paul 2003-04-01 21:16:41 +00:00
  • 738a68b250 Minor follow-on changes to the recent ATTACH patch. (CVS 893) drh 2003-03-31 13:36:09 +00:00
  • 665de47ac3 Minor follow-on changes to the recent ATTACH patch. (CVS 892) drh 2003-03-31 13:36:09 +00:00
  • 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) drh 2003-03-31 02:12:46 +00:00
  • 1c2d84148a The ATTACH and DETACH statements are now coded but are still mostly untested. (CVS 890) drh 2003-03-31 00:30:47 +00:00
  • 180487389b Remove the experimental sqlite_open_aux_file() API. It will soon be replaced by ATTACH and DETACH SQL commands. (CVS 1732) drh 2003-03-30 19:17:02 +00:00
  • 3aa31a16e6 Remove the experimental sqlite_open_aux_file() API. It will soon be replaced by ATTACH and DETACH SQL commands. (CVS 889) drh 2003-03-30 19:17:01 +00:00
  • 9077ba8ee5 Remove the obsolete documentation on how to crosscompile version 1.0 of SQLite. (CVS 888) drh 2003-03-30 18:58:58 +00:00
  • 1dd8c40e8f Detect when a child node of a btree page has zero entries and report that as a case of database corruption. (CVS 887) drh 2003-03-30 18:41:22 +00:00
  • 0be9df076a Fix a memory leak in triggers and update tests to show the latest error message text. (CVS 886) drh 2003-03-30 00:19:49 +00:00
  • 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) drh 2003-03-27 13:50:00 +00:00
  • 0951d703f2 Fix a segfault in the trigger code. (CVS 884) drh 2003-03-27 13:01:28 +00:00
  • 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) drh 2003-03-27 12:51:25 +00:00
  • 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) drh 2003-03-27 12:51:24 +00:00
  • 84e6335c0c Re-generated. (CVS 882) a.rottmann 2003-03-24 09:42:16 +00:00
  • 62507b650a Updated libtool. (CVS 881) a.rottmann 2003-03-24 09:40:34 +00:00
  • c7e9383a9e Added pkg-config support. (CVS 880) a.rottmann 2003-03-24 09:39:32 +00:00
  • 113088ec68 Record the database name in addition to the table name for DELETE, INSERT, and UPDATE statements. (CVS 879) drh 2003-03-20 01:16:58 +00:00
  • 001bbcbb8f Modifications to the VDBE to support more than one database file. (CVS 878) drh 2003-03-19 03:14:00 +00:00
  • 9468c7f489 Do not allow an empty string to be inserted into an INTEGER PRIMARY KEY. (CVS 877) drh 2003-03-07 19:50:07 +00:00
  • 2299706c2a Add more tests to make sure that sqlite_changes() works when using the non-callback API. Ticket #250. (CVS 876) drh 2003-03-01 19:53:15 +00:00
  • 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) drh 2003-03-01 19:45:34 +00:00
  • 627a71efa7 Fix a memory leak associated with PRIMARY KEY in a CREATE TABLE statement that fails. Ticket #249. (CVS 874) drh 2003-02-26 13:52:52 +00:00
  • e0194f2bbd Fix a memory leak associated with PRIMARY KEY in a CREATE TABLE statement that fails. Ticket #249. (CVS 1730) drh 2003-02-26 13:52:51 +00:00
  • 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) drh 2003-02-20 01:48:12 +00:00
  • 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) drh 2003-02-20 00:44:52 +00:00
  • 30710453ca Version 2.8.0 (CVS 870) drh 2003-02-16 22:49:47 +00:00
  • be992ef9c9 Couple of last-minute changes before 2.8.0. (CVS 871) drh 2003-02-16 22:48:12 +00:00
  • ad636221bb Update the speed comparison documentation to show the improved performance of PostgreSQL after performance tuning. (CVS 869) drh 2003-02-16 22:36:03 +00:00
  • 94e9203247 Added test code to check for file descriptor leaks. All regression tests pass now on both win2k and linux. (CVS 868) drh 2003-02-16 22:21:32 +00:00
  • 99ee360003 Fix more bugs. The new rollback journal implementation now passes all regression tests under Linux. (CVS 867) drh 2003-02-16 19:13:36 +00:00
  • 4303feedd3 Fix the pager so that correct rollbacks occur when synchronous is turned off. This check-in also included unrelated documentation updates. (CVS 866) drh 2003-02-15 23:09:17 +00:00
  • 32c4a833e0 Update the documentation for the new journal format to be introduced in version 2.8.0. (CVS 1729) drh 2003-02-13 02:54:03 +00:00
  • 5527f8ff4a Update the documentation for the new journal format to be introduced in version 2.8.0. (CVS 865) drh 2003-02-13 02:54:03 +00:00
  • 4a0681ef1b Fix a bug in the rollback logic for the new journal format. (CVS 864) drh 2003-02-13 01:58:20 +00:00
  • 8ba1b31379 Added the new FULL option to the SYNCHRONOUS pragma. Still need to test it. (CVS 1728) drh 2003-02-12 14:09:43 +00:00
  • 973b6e333d Added the new FULL option to the SYNCHRONOUS pragma. Still need to test it. (CVS 863) drh 2003-02-12 14:09:42 +00:00
  • d8d66e8ca0 Fix a bug in the legacy journal format writing logic. (CVS 862) drh 2003-02-12 02:10:15 +00:00
  • 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) drh 2003-02-11 14:55:40 +00:00
  • 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) drh 2003-02-05 14:06:20 +00:00
  • bb999ef6fa Make the GROUP BY clause work even if there are no aggregate functions. (CVS 859) drh 2003-02-02 12:41:25 +00:00
  • 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) drh 2003-02-01 13:53:28 +00:00
  • dcd997ea2e The sqlite_exec() function now returns SQLITE_AUTH when authorization fails. Ticket #231. (CVS 857) drh 2003-01-31 17:21:49 +00:00
  • 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) drh 2003-01-31 17:16:36 +00:00
  • 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) drh 2003-01-29 22:58:26 +00:00
  • 483750ba8a Better error messages on constraint violations. Additional tests and bug fixes for the callback-free API. (CVS 854) drh 2003-01-29 18:46:51 +00:00
  • 326dce7451 The callback-free API is now working, though much more testing is need. (CVS 853) drh 2003-01-29 14:06:07 +00:00
  • 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) drh 2003-01-28 23:13:10 +00:00
  • 70c15b48ae Added section on comments. Corrected broken </p> end tags. (CVS 851) jplyon 2003-01-26 15:28:18 +00:00
  • 79740a572e Version 2.7.6 (CVS 850) drh 2003-01-25 16:32:13 +00:00
  • 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) drh 2003-01-25 15:43:22 +00:00
  • a3da6fafd7 Remove an unused variable. (CVS 848) drh 2003-01-25 14:34:23 +00:00
  • 2ac83073e0 Preparations for the release of version 2.7.6. (CVS 847) drh 2003-01-25 14:32:03 +00:00
  • ced87a65a8 Update the speed.html documentation. Recent optimizations have made the library much faster. (CVS 846) drh 2003-01-25 14:25:42 +00:00
  • d62d3d0d24 Add asserts to btree.c that check for the correct size of various typedefs and structures. Ticket #233. (CVS 845) drh 2003-01-24 12:14:20 +00:00
  • 2554f8b0c0 Minor refinements to the pager. (CVS 844) drh 2003-01-22 01:26:44 +00:00
  • 4764f161ab fix a typo on the quickstart.html page. (CVS 843) drh 2003-01-21 23:06:57 +00:00
  • 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) drh 2003-01-21 02:39:36 +00:00
  • e78e8284ad Update comments. No changes to code. (CVS 841) drh 2003-01-19 03:59:45 +00:00
  • 79104c9d2a Update the speed comparison page. (CVS 840) drh 2003-01-18 22:01:06 +00:00
  • 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) drh 2003-01-18 20:11:05 +00:00
  • be4f31c226 Do not report an error if the input to the sqlite shell ends in a comment. Ticket #211. (CVS 838) drh 2003-01-18 17:05:00 +00:00
  • 799550beb0 Check the validity of the database connection before the trace callback, not afterwards. (CVS 837) drh 2003-01-18 17:04:08 +00:00
  • 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) drh 2003-01-16 16:28:53 +00:00
  • 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) drh 2003-01-16 13:42:43 +00:00
  • 2c3831cb23 Finish out the test suite for the new sqlite_set_authorizer API. (CVS 834) drh 2003-01-14 13:48:20 +00:00
  • bf0c78af2f Fix a memory leak in the PRAGMA authorization code. (CVS 833) drh 2003-01-14 02:54:08 +00:00
  • 77ad4e4133 More tests of the sqlite_set_authorizer() API together with fixes for bugs that the new tests uncovered. (CVS 832) drh 2003-01-14 02:49:27 +00:00
  • 7160220495 Make the GLOB work write with upper-case characters. Ticket #226. (CVS 831) drh 2003-01-14 00:44:08 +00:00
  • 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) drh 2003-01-13 23:27:31 +00:00
  • 1962bda764 The initial round of tests for the sqlite_set_authorizer() API. More are needed before release. Ticket #215. (CVS 829) drh 2003-01-12 19:33:52 +00:00
  • e6d01c3a04 Forgot to include the new "auth.c" source file in the previous checkin. (CVS 828) drh 2003-01-12 18:07:48 +00:00
  • 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) drh 2003-01-12 18:02:16 +00:00
  • 49f0936ec7 Remove an unused variable from the VDBE. Ticket #223. (CVS 826) drh 2003-01-12 17:35:00 +00:00
  • f27134cdc4 Change the PopStack() routine so that it doesn't confuse bounds checkers. Ticket #222. (CVS 825) drh 2003-01-12 17:28:19 +00:00
  • fa9e0df21b Remove the aOrder() array from where.c. (CVS 824) drh 2003-01-11 15:02:44 +00:00
  • fd15981daa Fix two compiler warnings from OS-X. (CVS 823) drh 2003-01-11 14:25:39 +00:00
  • 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) drh 2003-01-11 14:19:51 +00:00
  • 836faa4843 Remove the ColumnCount opcode, which had become a no-op. (CVS 821) drh 2003-01-11 13:30:57 +00:00
  • 820f3812d8 Port ot MacOS Classic. Ticket #218. (CVS 820) drh 2003-01-08 13:02:52 +00:00