0
0
mirror of https://github.com/tursodatabase/libsql.git synced 2025-09-30 19:31:15 +00:00

Commit Graph

  • 0b4efed236 Fix for ticket #50. (CVS 582) drh 2002-05-23 13:15:37 +00:00
  • 07d6e3a74c Partial fix for ticket #49. The correct result is computed, but now we have a memory leak. I'm not sure if the memory leak was pre-existing or a result of this change. (CVS 581) drh 2002-05-23 12:50:18 +00:00
  • e4697f5e90 Fix some places where a malloc() failure would lead to a segfault. (CVS 580) drh 2002-05-23 02:09:03 +00:00
  • 1873cd508a Do not allow triggers on the SQLITE_MASTER table. (CVS 579) drh 2002-05-23 00:30:31 +00:00
  • 97fc3d060a Fix for ticket #46: Report an error if a CREATE TABLE contains two or more columns with the same name. (CVS 578) drh 2002-05-22 21:27:03 +00:00
  • 2ce1a6ec60 Fix for ticket #47: Use a cast to avoid a warning about discarding a "const" inside of hash.c. (CVS 577) drh 2002-05-21 23:44:30 +00:00
  • 2398937b7f Double-quoted strings resolve to column names if possible. Single-quoted strings continue to be interpreted as string literals. (CVS 576) drh 2002-05-21 13:43:04 +00:00
  • 1d1f30555d Clean up some compiler warnings. (CVS 575) drh 2002-05-21 13:18:25 +00:00
  • b05789ff2b Modify the shell so that when it is doing a ".dump" it always uses single quotes and not double quotes for quoting literal strings. This is for portability to other databases that only support single quote string literals. (CVS 574) drh 2002-05-21 13:02:24 +00:00
  • 79b0c95687 Fix for ticket #45: Allow an UPDATE statement to change the INTEGER PRIMARY KEY to itself without triggering a constraint error. (CVS 573) drh 2002-05-21 12:56:43 +00:00
  • c977f7f596 Additional code cleanup resulting from a review of the new trigger code. (CVS 572) drh 2002-05-21 11:38:11 +00:00
  • f29ce55958 Style fixes to triggers code in various *.c files (partial fix to ticket #39) (CVS 571) danielk1977 2002-05-19 23:43:12 +00:00
  • 633ed08d95 Stylistic changes to src/trigger.c (partial fix to ticket #39). Also more comments. (CVS 570) danielk1977 2002-05-17 00:05:58 +00:00
  • d99bc930f7 Fix for ticket #42: Added comments to structs Trigger, TriggerStep and TriggerStack. (CVS 569) danielk1977 2002-05-16 00:13:12 +00:00
  • b6b2de0c35 Fix a typo in the c_interface.html documentation file. (CVS 568) drh 2002-05-15 23:26:22 +00:00
  • ce9079c8f2 Fix for ticket #41: Better handling of CREATE TRIGGER in the sqlite_complete() function. (CVS 567) drh 2002-05-15 14:17:44 +00:00
  • dc3794561f Beginning to clean up the trigger code. Still lots of work to do. (CVS 566) drh 2002-05-15 12:45:43 +00:00
  • 9adf9ac4e4 Remove all tabs from the beginning of source code lines. Replace tabs with the appropriate number of spaces. (CVS 565) drh 2002-05-15 11:44:13 +00:00
  • 5b87fa2a57 In the "lang.html" documentation file, put the CREATE TRIGGER and DROP TRIGGER sections in alphabetical order. (CVS 564) drh 2002-05-15 11:43:16 +00:00
  • b38f58b51a Add the Makefile.in that was forgotten with checkin #562 (CVS 563) danielk1977 2002-05-15 08:43:10 +00:00
  • c3f9bad209 Added FOR EACH ROW triggers functionality (CVS 562) danielk1977 2002-05-15 08:30:12 +00:00
  • 9456bcc975 Version 2.4.12 (CVS 561) drh 2002-05-10 14:41:54 +00:00
  • 4d908a3b43 Update the misuse.test script so that it will work under Windows. Changes to the speed testing script to support version 2.4.12. (CVS 560) drh 2002-05-10 14:37:30 +00:00
  • c22bd47d55 Improvements to the SQLITE_MISUSE detection logic. Also added test cases for this logic, including the new test file "misuse.test". (CVS 559) drh 2002-05-10 13:14:07 +00:00
  • 247be43d60 Attempt to detect when two or more threads try to use the same database at the same time and return an SQLITE_MISUSE error. Also return this error if an attempt is made to use a closed database. (CVS 558) drh 2002-05-10 05:44:55 +00:00
  • d5feede1ff Fix for ticket #35: Ignore any ORDER BY clause on a subquery in a FROM clause. (CVS 557) drh 2002-05-08 21:46:14 +00:00
  • 0f18b450ad Fix for ticket #34: VIEWs ignore their ORDER BY clause. (CVS 556) drh 2002-05-08 21:30:15 +00:00
  • 891da435d6 Version 2.4.11 (CVS 555) drh 2002-05-08 12:03:50 +00:00
  • 685b941542 Increase the version number and update the change log in preparation for the 2.4.11 release. (CVS 554) drh 2002-05-08 11:57:09 +00:00
  • 0bb28106be Fix for tickets #32 and #33: Generate the names of the result set early, before doing the flattening optimization or evaluating subqueries. Otherwise, the result set column names are generated incorrectly or after they are needed. (CVS 553) drh 2002-05-08 11:54:14 +00:00
  • cc47c28068 Added documentation about the new CASE expression. (CVS 552) drh 2002-05-06 11:47:32 +00:00
  • 0fface6e33 Fix typos in the man-page (sqlite.1) and remove two unused files. Patches from Andreas Rottmann. (CVS 551) drh 2002-05-06 11:34:26 +00:00
  • 133224676a Version 2.4.10 (CVS 550) drh 2002-05-03 00:18:11 +00:00
  • 2e18abf43c Update the change log prior to releasing version 2.4.10. (CVS 549) drh 2002-05-03 00:17:54 +00:00
  • 08192d5f76 Fix for ticket #31: Do not attempt the flattening optimization if the subselect does not contain a FROM clause. Handle the special case where a WHERE clause is constant. (CVS 548) drh 2002-04-30 19:20:28 +00:00
  • ef9f708e8f Fix for ticket #28: Export the "sqlite_changes" function in Windows DLLs. (CVS 547) drh 2002-04-26 09:47:20 +00:00
  • f7bd5d75db Update the test logic and the comments on the encoder.c module. (CVS 546) drh 2002-04-25 23:06:47 +00:00
  • e8a49c12a6 Added the "encode.c" source file that contains two utility subroutines that can be used to encode binary data for use in INSERT and UPDATE statements. This is just an initial checking. The code has not yet been integrated into the library. (CVS 545) drh 2002-04-25 11:45:41 +00:00
  • 7caf776079 Fix for ticket #26: Document the fact that CREATE TABLE might not be immediately visible to other processes that are holding the database open. (CVS 544) drh 2002-04-25 00:21:50 +00:00
  • 41202ccae2 Fix for ticket #22: In the code generator for compound SELECT statements, take care not to generate column name headers if the output is an intermediate table. Otherwise the column headers are not generated correctly if a compound SELECT statement appears as an expression in part of the WHERE clause. (CVS 543) drh 2002-04-23 17:10:18 +00:00
  • 60ea3720f2 Version 2.4.9 (CVS 542) drh 2002-04-22 00:35:06 +00:00
  • 85b988c803 Update the version number and changes log for 2.4.9 (CVS 541) drh 2002-04-22 00:33:23 +00:00
  • e98d4fafe4 Fix for ticket #21 (I think): Do not return an "out of memory" error if we can not find the users home directory. Instead, just report that we could not find the home directory. (CVS 540) drh 2002-04-21 19:06:22 +00:00
  • 77155c480a Version 2.4.8 (CVS 538) drh 2002-04-20 14:45:31 +00:00
  • 57809db9c5 Update the change log for the 2.4.8 release. (CVS 539) drh 2002-04-20 14:44:01 +00:00
  • 0ac6589202 Fix for ticket #1: Implement the GLOB and LIKE operators as functions that can be overridden. This way, a developer can change the LIKE operator to be case sensitive, for example. (CVS 537) drh 2002-04-20 14:24:41 +00:00
  • 67505e78c6 Add support for saving the sqlite shell command-line history across sessions. (CVS 536) drh 2002-04-19 12:34:06 +00:00
  • c8cacb3704 Added rights release for Matthew O. Persico (CVS 535) persicom 2002-04-19 01:00:12 +00:00
  • dd45df8a5b Change shell.c so that it will compile under windows. Shorten the help command somewhat. Add the state of ".header" to the output of ".show". (CVS 534) drh 2002-04-18 12:39:03 +00:00
  • 45698a3a03 Updated to match new shell.c functionality. (CVS 533) persicom 2002-04-18 02:53:54 +00:00
  • 1d0b872d43 Mistake in help text. Spurious trailing whitespace removed. (CVS 532) persicom 2002-04-18 02:53:04 +00:00
  • 7e2dfdd726 General: o Added global static chars mainPrompt and continuePrompt. o Moved Argv0 declaration to head of file. Needed in do_meta_command, previously found below that. o Added struct previous_mode_data to support new .explain toggle functionality. o Added nullvalue, explainPrev and outfile members to struct callback_data. o Added modeDescr array for number/text translation ofdisplay modes. o Modified zHelp to match new functionality. persicom 2002-04-18 02:46:52 +00:00
  • a168045f7d Fix for ticket #19: Do not call sqliteOsSync() if the only changes were changes to TEMP tables. (CVS 530) drh 2002-04-18 01:56:57 +00:00
  • fc6cdfe9dc When doing a ".dump" command in the command-line shell, make sure VIEWs are created after TABLEs. (CVS 529) drh 2002-04-13 23:42:24 +00:00
  • 6b0e620fda Version 2.4.7 (CVS 528) drh 2002-04-12 13:12:25 +00:00
  • adbe353fc6 Add tests to prevent a recurrance of bug #16. Also: put a hyperlink to the new ticket screen on the main page of the website. (CVS 527) drh 2002-04-12 13:11:52 +00:00
  • c8d30ac109 Fix for bug #15: Add the sqlite_changes() API function for retrieving the number of rows that changed in the previous operation. (CVS 526) drh 2002-04-12 10:08:59 +00:00
  • b04a5d8768 Fix for bug #16: Check for invalid functions in the VALUES clause of an INSERT statement. (CVS 525) drh 2002-04-12 03:55:15 +00:00
  • feeb1394ee Fix for bug #11: Output the correct row count when and INSERT does an IGNORE action. (CVS 524) drh 2002-04-09 03:28:01 +00:00
  • fe1a1773a8 Fix for bug #10: Pop the stack by the right amount on an IGNORE so that the stack does not grow without bound. (CVS 523) drh 2002-04-09 03:15:06 +00:00
  • 8b32e17d26 Add a -column option to the sqlite command-line utility. Patch from Matthew O. Persico. (CVS 522) drh 2002-04-08 02:42:57 +00:00
  • 6ed41ad735 Added the last_insert_rowid() SQL function. (CVS 521) drh 2002-04-06 14:10:47 +00:00
  • bf3a4fa4cb Make the FROM clause on a SELECT optional. If omitted, the result of the SELECT is a single row consisting of the values in the expression list. (CVS 520) drh 2002-04-06 13:57:42 +00:00
  • 41e941dda6 Add an fflush() call to shell.c to insure that all output has been written before we prompt for a new line of input. (CVS 519) drh 2002-04-04 15:10:12 +00:00
  • 5447322939 Fix for bug #2: Add support for TABLE.* in SELECT statements. (CVS 518) drh 2002-04-04 02:10:55 +00:00
  • f238f700c2 Added a hyperlink to the SQLite-PHP project. (CVS 517) drh 2002-04-03 20:50:21 +00:00
  • 7b7307fb7c Version 2.4.6 (CVS 516) drh 2002-04-02 13:27:43 +00:00
  • 3f6b548961 Fix for bug #8: Correctly handle terms of a WHERE clause in a join where the term does not use a comparison operator. (CVS 515) drh 2002-04-02 13:26:10 +00:00
  • 11f61696bc Version 2.4.5 (CVS 514) drh 2002-04-02 02:00:02 +00:00
  • dd579122da Fix for bug #6: Correctly handle functions in the WHERE clause of a join. (CVS 513) drh 2002-04-02 01:58:57 +00:00
  • 5efc18b6da Fix for bug #7: Correctly display the P3 operand in a VDBE trace when the operand is really a pointer to a structure. (CVS 512) drh 2002-04-02 01:44:50 +00:00
  • 29f5befc43 Remove from the index page of the website hyperlinks that are not directly related to SQLite. (CVS 511) drh 2002-04-01 12:15:02 +00:00
  • e1e68f4974 When an attempt is made to insert an explicit NULL into an INTEGER PRIMARY KEY column, automatically convert the NULL value into a unique integer key. This was already happening when an implied NULL was inserted - when the INTEGER PRIMARY KEY column was omitted from the list of columns being inserted. Patches from Christian Werner. (CVS 510) drh 2002-03-31 18:29:03 +00:00
  • 035bd01d6a Version 2.4.4 (CVS 509) drh 2002-03-30 15:32:08 +00:00
  • 132ebed2bf Update the change log to include the previous commit. (CVS 508) drh 2002-03-30 15:27:56 +00:00
  • f18543ca39 Fix for bug #3: Allow VIEW as a column name. Also allow COPY. (CVS 507) drh 2002-03-30 15:26:50 +00:00
  • edaa6ebfdd Describe the difference between the binary RPMs in the download.html file. (CVS 506) drh 2002-03-30 14:15:51 +00:00
  • 203c211064 Combine the homerpm.sh file in with publish.sh. Update the website files to refer to the new RPMs that are now being built. Fix a small problem with the spec file. (CVS 505) drh 2002-03-29 18:16:04 +00:00
  • 1d36650fa3 added a section to create a spec file and build the rpm files (CVS 504) doughenry 2002-03-29 01:29:53 +00:00
  • 3c0d1ec01c these files are needed by publish.sh to build rpms (CVS 503) doughenry 2002-03-29 01:28:45 +00:00
  • 2676a611ec Two typos fixed in the documentation (lang.html). (CVS 502) drh 2002-03-28 14:20:08 +00:00
  • d4037e801a Update the documentation to refer the reader to the CVS server for the change log, bug lists, or the latest sources. (CVS 500) drh 2002-03-27 12:52:47 +00:00
  • 41f03d1d26 Update the change log. (CVS 438) drh 2002-03-26 03:11:27 +00:00
  • 17a7f8ddab Added support for CASE expressions - patches from Dan Kennedy. (CVS 437) drh 2002-03-24 13:13:27 +00:00
  • 6b54e74cf4 Version 2.4.3 (CVS 440) drh 2002-03-23 00:59:59 +00:00
  • f1a7a13928 The sqlite_get_table() function now returns an error if you pass in two or more SELECT statements that return different numbers of columns. (CVS 436) drh 2002-03-23 00:52:01 +00:00
  • 1cc3d75f69 Fix a bug in subquery generation when the subquery is a compound select. Also added new tests to cover this case. (CVS 435) drh 2002-03-23 00:31:29 +00:00
  • 545c23dc42 Version 2.4.2 (CVS 441) drh 2002-03-20 01:05:00 +00:00
  • 27a3220c54 One more change before 2.4.2: Make the os.h header file more robust in detecting whether to use unix or windows. (CVS 434) drh 2002-03-20 00:00:29 +00:00
  • 5aed9c7410 Version 2.4.2 (CVS 433) drh 2002-03-19 23:51:12 +00:00
  • f2d74ffb74 Fix an uninitialized variable in AggReset() (CVS 432) drh 2002-03-18 13:03:54 +00:00
  • 84e5920738 Bug fix: allow ROWID as a column in SELECT statements where the FROM clause includes views which are flattened. (CVS 431) drh 2002-03-14 14:33:31 +00:00
  • 38b360bb80 Version 2.4.1 (CVS 442) drh 2002-03-13 18:59:59 +00:00
  • 51fa3215fa Version 2.4.1 (CVS 430) drh 2002-03-13 18:54:50 +00:00
  • 094b2bbfc7 Fix bug in anonymous subquery in a join. Parser requires a semicolon or end-of-input before executing. (CVS 429) drh 2002-03-13 18:54:07 +00:00
  • 56c0e926f1 Fix the return type of the xStep function in the FuncDef structure definition. (CVS 428) drh 2002-03-12 23:10:04 +00:00
  • 1f245e488a Change the way that lemon handles %extra_argument. (CVS 427) drh 2002-03-11 13:55:50 +00:00
  • 54ea6427df Version 2.4.0 (CVS 443) drh 2002-03-11 02:15:00 +00:00
  • 28b4e4890b Preparing for the 2.4.0 release. (CVS 426) drh 2002-03-11 02:06:13 +00:00
  • 7218ac7098 Bug fix: updates within a transaction would fail if there was existed a temporary table. (CVS 425) drh 2002-03-10 21:21:00 +00:00