0
0
mirror of https://github.com/tursodatabase/libsql.git synced 2024-12-17 11:51:12 +00:00

Commit Graph

  • 35c12830d1 Fix sqlite3_analyzer so that it works when compiled against Tcl8.5. (CVS 3458) drh 2006-10-03 12:08:54 +00:00
  • f316c8c08b Fix sqlite3_analyzer so that it works on databases containing virtual tables. (CVS 3457) drh 2006-10-03 12:04:11 +00:00
  • d75e03df2b Add the option to omit offset information from posting lists in FTS1. (CVS 3456) drh 2006-10-03 11:42:28 +00:00
  • f02a759980 Another typo in the Porter stemmer check-in. (CVS 3455) drh 2006-10-01 20:41:03 +00:00
  • b3be9815a1 Typo in previous check-in. (CVS 3454) drh 2006-10-01 18:59:56 +00:00
  • 8923c9d378 Remove one non-working test case fromthe Porter stemmer tests and add an acknowledgement for the source of the test data (Martin Porter himself.) (CVS 3453) drh 2006-10-01 18:58:31 +00:00
  • 6da40bcd79 Add a Porter stemmer option to the FTS1 module. (CVS 3452) drh 2006-10-01 18:41:19 +00:00
  • 2564ef9781 Make sure memory does not leak when patching up column names so that they are unique in a join or view. Tickets #1952 and #2002. (CVS 3451) drh 2006-09-29 14:01:04 +00:00
  • 7cf43fa64e Fix a bug in the handling of the OR operator in FTS1. Test cases added to prevent a repeat. (CVS 3450) drh 2006-09-28 19:43:31 +00:00
  • 07aa67c14a More snippet generator improvements and test cases. (CVS 3449) drh 2006-09-28 18:57:59 +00:00
  • 1e7423e57f Bug fix in the FTS1 snippet generator. Improvements in the way the snippet generator handles whitespace. (CVS 3448) drh 2006-09-28 18:37:15 +00:00
  • 361e2bdeb5 Avoid segfaults when inserted NULL values into FTS1. (CVS 3447) drh 2006-09-28 11:41:41 +00:00
  • 6f68a5cf11 Fix to the previous check-in. (CVS 3446) drh 2006-09-26 00:37:11 +00:00
  • 50c2b35ea7 Performance improvement and bug fix in sqlite3WinDelete(). (CVS 3445) drh 2006-09-26 00:34:17 +00:00
  • 7f986a651e CVS malfunctioned on the previous check-in. Make sure the revision to date.c was received. Ticket #1991. (CVS 3444) drh 2006-09-25 18:05:04 +00:00
  • 9df9492adc Fix a roundoff error in the %f converter of strftime(). Ticket #1991. (CVS 3442) drh 2006-09-25 18:03:28 +00:00
  • 21e2cab932 Add a pragma for activating proprietary extensions. (CVS 3441) drh 2006-09-25 18:01:57 +00:00
  • b1f1e6ebd7 Fix a round-off problem in the %f conversion of strftime(). Ticket #1991. (CVS 3443) drh 2006-09-25 18:01:31 +00:00
  • 6f8359865d Bug fix in pragma table_info(). (CVS 3440) drh 2006-09-25 13:48:30 +00:00
  • 2e584cd250 Remove legacy cruft from shell.c. (CVS 3439) drh 2006-09-25 13:09:22 +00:00
  • aac2f5542d Fix a bug in the handling of I/O errors introduced by the addition of extended error codes in check-in (3422). (CVS 3438) drh 2006-09-23 21:44:23 +00:00
  • 8c77bdde9f Fix documentation typo. Ticket #1986 (CVS 3437) drh 2006-09-23 20:46:23 +00:00
  • ece3c728d0 Be sure to ignore PRAGMA encoding pragmas if the encoding has already been set for a database. Ticket #1987. This patch also includes some cleanup of the schema parser and initialization logic. (CVS 3436) drh 2006-09-23 20:36:01 +00:00
  • 7409310ac3 Fix a build problem around sqlite3_overload_function. Only affects so/dll builds. (CVS 3435) shess 2006-09-22 23:38:21 +00:00
  • adf52ce14b Implemented UPDATE for full-text tables. adamd 2006-09-22 00:06:39 +00:00
  • f40a504164 When gathering a doclist for querying, don't discard empty position lists until the end; this allows empty position lists to override non-empty lists encountered later in the gathering process. This fixes #1982, which was caused by the fact that for all-column queries we weren't discarding empty position lists at all. (CVS 3433) adamd 2006-09-21 20:56:52 +00:00
  • 154d4b2446 Be more aggressive with the SQLITE_OMIT_VACUUM macro. Saves about 150 bytes of code space. (CVS 3432) drh 2006-09-21 11:02:16 +00:00
  • 8b62817797 Implementation of the snippet() function for FTS1. Includes a few simple test cases but more testing is needed. (CVS 3431) drh 2006-09-21 02:03:08 +00:00
  • d47522807e Fixed a build problem in sqlite3_extension_init(). (CVS 3430) adamd 2006-09-18 21:14:40 +00:00
  • c1daee8574 Convert all names to lower case before sending them to the xFindFunction method of a virtual table. In FTS1, use strcmp instead of strcasecmp. Ticket #1981. (CVS 3429) drh 2006-09-18 20:24:02 +00:00
  • a70034de7c Convert all names to lower case before sending them to the xFindFunction method of a virtual table. In FTS1, use strcmp instead of strcasecmp. Ticket #1981. (CVS 3428) drh 2006-09-18 20:24:02 +00:00
  • b08249ced3 Modify FTS1 so that the "magic" column has the same name as the virtual table. Offsets are retrieved using a special "offsets" function whose first argument is the magic column. Snippets will ultimately be retrieved in the same way. (CVS 3427) drh 2006-09-18 02:12:47 +00:00
  • b7481e70c5 Add the sqlite3_overload_function() API - part of the virtual table interface. (CVS 3426) drh 2006-09-16 21:45:14 +00:00
  • 572d11dc8f Add documentation for the sqlite3_extended_result_codes() API. (CVS 3425) drh 2006-09-15 16:58:48 +00:00
  • ae2f2048df Fix an initialization problem in FTS1. Ticket #1977. (CVS 3424) drh 2006-09-15 16:08:59 +00:00
  • e49f982792 Bug fix and better testing of the extended result codes. (CVS 3423) drh 2006-09-15 12:29:16 +00:00
  • 4ac285a1c2 Add support for extended result codes - additional result information carried in the higher bits of the integer return codes. This must be enabled using the sqlite3_extended_result_code() API. Only a few extra result codes are currently defined. (CVS 3422) drh 2006-09-15 07:28:50 +00:00
  • 8abc58e33b New FTS1 test data based on enron emails. (CVS 3421) drh 2006-09-14 21:08:54 +00:00
  • dddaf9ff86 Remove file containing real email addresses. Ticket #1978. (CVS 3420) drh 2006-09-14 18:25:28 +00:00
  • 4fc9308373 Minor build fixes. (CVS 3419) adamd 2006-09-14 16:57:19 +00:00
  • 5968593b51 Enhanced I/O error simulation. (CVS 3418) drh 2006-09-14 13:47:11 +00:00
  • f800e3e63a The FTS1 tables have a new automatic column named "offset" that returns a string containing byte offset information for all matching terms. Also added a large test case based on SQLite mailing list entries. (CVS 3417) drh 2006-09-14 01:17:30 +00:00
  • 0b9a594ae1 Modify the ".dump" command in the command-line shell so that it works with virtual tables. (CVS 3416) drh 2006-09-13 20:22:02 +00:00
  • 235a818e61 Remove unused malloc failure test. (Ticket #1976) Also include fixes for other problems discovered while investigating ticket #1976. (CVS 3415) drh 2006-09-13 19:21:28 +00:00
  • 8f116cc15c In FTS1: Retain the Query structure as part of the cursor. It will be used laster as part of snippet generation. (CVS 3414) drh 2006-09-13 19:18:29 +00:00
  • c48f2a10aa Earlier refactoring changed name in fts1.c but not fts1.h. (CVS 3413) shess 2006-09-13 18:40:25 +00:00
  • 1de6154d39 Minor code cleanup in FTS1. (CVS 3412) drh 2006-09-13 17:17:48 +00:00
  • a3baa963bc Implementation of "column:" modifiers in FTS1 queries. (CVS 3411) drh 2006-09-13 16:02:43 +00:00
  • cbaac514bc Module spec parser enhancements for FTS1. Now able to cope with column names in the spec that are SQL keywords or have special characters, etc. Also added support for additional control lines. Column names can be followed by a type specifier (which is ignored.) (CVS 3410) drh 2006-09-13 15:20:13 +00:00
  • a6be0dc938 Fix the FTS1 test cases and add new tests. Comments added to the FTS1 code. (CVS 3409) drh 2006-09-13 12:36:08 +00:00
  • 4f1a424e72 Allow virtual tables to contain multiple full-text-indexed columns. Added a magic column "_all" which can be used for querying all columns in a table at once. adamd 2006-09-13 02:18:20 +00:00
  • 341d60838c Answer queries for a particular rowid in a full-text table by looking up that rowid directly rather than by performing a table scan. (CVS 3407) adamd 2006-09-12 23:36:45 +00:00
  • fdd48a76a6 Add support for IF EXISTS on CREATE/DROP TRIGGER/VIEW. Ticket #1899. (CVS 3406) drh 2006-09-11 23:45:48 +00:00
  • 4240240f12 Re-use deleted rowids for new segments. This has a somewhat surprising impact on performance, I believe because it keeps the index smaller (by keeping rowids smaller), and also because it improves locality in the table (deleting a row means we've already touched the pages leading to that rowid). (CVS 3405) shess 2006-09-11 21:39:21 +00:00
  • 66b224cbb0 Get VACUUM working with virtual tables. (CVS 3404) drh 2006-09-11 11:13:26 +00:00
  • e410296021 Add a rudimentary tokenizer and parser to FTS1 for parsing the module arguments during initialization. Recognized arguments include a tokenizer selector and a list of virtual table columns. (CVS 3403) drh 2006-09-11 00:34:22 +00:00
  • 4ca8aac2b4 Add pzErr parameters to the xConnect and xCreate methods of virtual tables in order to provide better error reporting. This is an interface change for virtual tables. Prior virtual table implementations will need to be modified and recompiled. (CVS 3402) drh 2006-09-10 17:31:58 +00:00
  • fe1368ee08 Add a new zErrMsg field to the sqlite3_vtab structure to support returning error messages from virtual table constructors. This change means that virtual table implementations compiled as loadable extensions for version 3.3.7 will need to be recompile for version 3.3.8 and will not be usable by both versions at one. The virtual table mechanism is still considered experimental so we feel justified in breaking backwards compatibility in this way. Additional interface changes might occurs in the future. (CVS 3401) drh 2006-09-10 17:08:29 +00:00
  • a2a9d18869 Add some simple test cases for the OR and NOT logic of the fts1 module. Fix lots of bugs discovered while developing these test cases. (CVS 3400) drh 2006-09-10 03:34:06 +00:00
  • a7e98f2a54 Add support for OR and NOT terms in fts1. (CVS 3399) drh 2006-09-09 23:11:51 +00:00
  • fb6794360d Write doclists using a segmented technique to amortize costs better. New items for a term are merged with the term's segment 0 doclist, until that doclist exceeds CHUNK_MAX. Then the segments are merged in exponential fashion, so that segment 1 contains approximately 2*CHUNK_MAX data, segment 2 4*CHUNK_MAX, and so on. (CVS 3398) shess 2006-09-08 17:00:17 +00:00
  • 8759576540 Add HAVE_GMTIME_R and HAVE_LOCALTIME_R flags and use them if defined. Unable to modify the configure script to test for gmtime_r and localtime_r, however, because on my SuSE 10.2 system, autoconf generates a configure script that does not work. Bummer. Ticket #1906 (CVS 3397) drh 2006-09-08 12:49:43 +00:00
  • f11c34df74 Bug fix in date/time computations. Ticket #1964. Some unrelated comment typos are also fixed and got accidently checked in at the same time. (CVS 3396) drh 2006-09-08 12:27:36 +00:00
  • b3556f3d71 Improvements to the documentation of the return codes for sqlite3_step(). Tickets #1633, #1366, #1178, #906, and probably others too. (CVS 3395) drh 2006-09-08 11:56:30 +00:00
  • 2e8464afdb Include io.h on Windows to quell a build warning about access() having no prototype. (CVS 3394) adamd 2006-09-06 21:39:40 +00:00
  • 338565ad4b A minor change to fts1.c to fix broken build. (CVS 3393) adamd 2006-09-05 18:21:31 +00:00
  • b2b4996280 Fix a bug in the new misc6.test script. Fix error messages when not compiled with memory debugging enabled. Ticket #1957. (CVS 3392) drh 2006-09-04 18:54:14 +00:00
  • f0313813ec Make sure strings returned by sqlite3_value_text() and sqlite3_value_text16() are always '\000'-terminated. (CVS 3391) drh 2006-09-04 15:53:53 +00:00
  • f80ad49f72 Fix bugs in test scripts so that fulltest will pass. (CVS 3390) drh 2006-09-02 22:14:59 +00:00
  • 79dc6691de Changes to the Makefile.in so that MinGW users can build a DLL. Ticket #1955. (CVS 3389) drh 2006-09-02 22:14:11 +00:00
  • fb52cc95ff Add a TRACE macro to the FTS1 module for troubleshooting. Turned off by default. (CVS 3388) drh 2006-09-02 20:58:25 +00:00
  • 189d4afaaf Do not call the xDisconnect method on a virtual table while xUpdate is pending. Instead, defer the xDisconnect until after xUpdate completes. (CVS 3387) drh 2006-09-02 20:57:52 +00:00
  • 80788d8b65 Test for busted TCL builds that do not support 64-bit integers and print a warning message to users that test failures may be a result of the bad TCL build and not some problem with SQLite. Ticket #1953. (CVS 3386) drh 2006-09-02 14:50:23 +00:00
  • 7c2d87cd71 Convert static variables into constants in the FTS module. (CVS 3385) drh 2006-09-02 14:16:59 +00:00
  • aa29c13579 Automatically register the FTS module if it is compiled into the build. (CVS 3384) drh 2006-09-02 13:58:06 +00:00
  • 37b9056ad8 Construct the .def files before calling dllwrap to build the .dll files. Ticket #1951. (CVS 3383) drh 2006-09-02 13:22:28 +00:00
  • 9eb3997b02 Miscellaneous restructuring and cleanup based on suggestions from shess. (CVS 3382) adamd 2006-09-02 00:23:01 +00:00
  • 3957781b1f Automatically compute the sqlite3.def and tclsqlite3.def files when building windows DLLs. This will (hopefully) keep the .def files in perfect synchronization with the DLLs. Ticket #1951. (CVS 3381) drh 2006-09-01 17:06:20 +00:00
  • 9645d8d4b3 Remove use of the "clock" command in the test suite so that the tests will run in Tcl8.5. Ticket #1445. (CVS 3380) drh 2006-09-01 15:49:05 +00:00
  • b2f4d0173a Make fts1.c not rely on nul-terminated strings. Mostly a matter of making sure we always pass around ptr/len, but there were a few places where we actually relied on nul-termination. shess 2006-09-01 00:33:44 +00:00
  • c0beb14f23 Make tokenizer not rely on nul-terminated text. Instead of using strcspn() and a nul-terminated delimiter list, I just flagged delimiters in an array and wrote things inline. Submitting this for review separately because it's pretty standalone. (CVS 3378) shess 2006-09-01 00:05:17 +00:00
  • 5db455e7b5 Refactor the FTS1 module so that its name is "fts1" instead of "fulltext", so that all symbols with external linkage begin with "sqlite3Fts1", and so that all filenames begin with "fts1". (CVS 3377) drh 2006-08-31 15:07:14 +00:00
  • 2b85d5f46e Just don't run tolower() on hi-bit characters. This shouldn't cause us to break any UTF-8 code points, unless they were already broken in the input. (CVS 3376) shess 2006-08-30 21:40:30 +00:00
  • 6fb1d6492e Bug fix: Get INSERT INTO ... SELECT working when the target is a virtual table. (CVS 3375) drh 2006-08-29 18:46:14 +00:00
  • 16ed8a64f6 Bug fix: Get INSERT INTO ... SELECT working when the target is a virtual table. (CVS 3374) drh 2006-08-29 18:46:14 +00:00
  • e07b862e71 Document the fact that SQLite allows NULL values in PRIMARY KEY columns and the fact that we might design to change this in the future. Ticket #518. (CVS 3373) drh 2006-08-29 13:08:37 +00:00
  • 80e8be9337 Improved built-in help in the command-line shell. Enable the fulltext search extension in the TCL interface. (CVS 3372) drh 2006-08-29 12:04:19 +00:00
  • c9e0a9057e Make static some symbols which shouldn't have been exported. (CVS 3371) shess 2006-08-28 23:46:01 +00:00
  • 4f4897e80d Make hi-bit characters delimiters. This is a stopgap until the tokenizer and fulltext.c recognize UTF-8 correctly. (CVS 3370) shess 2006-08-28 20:08:56 +00:00
  • aa5ac05b5f Add sqlite3_malloc and sqlite3_realloc to the sqlite3.def file. Ticket #1943. (CVS 3369) drh 2006-08-27 14:10:39 +00:00
  • 147d0ccc15 Add support for INSERT INTO ... DEFAULT VALUES. Tickets #299, #1940. (CVS 3368) drh 2006-08-25 23:42:53 +00:00
  • 0de250e46f Fix gcc gripe about parens in a ||/&& in mergePosList(). Drop unused pBlob/nBlob in index_insert_term(). Fix NULL deref in an assertion in docListUpdate() delete case. Minor code tightening in docListUpdate(). (CVS 3367) shess 2006-08-25 19:20:26 +00:00
  • b8b1421963 Documentation updates for the new SQLITE_FUNCTION authorization. (CVS 3366) drh 2006-08-24 15:18:25 +00:00
  • 5169bbc6a3 Enhance the sqlite3_set_authorizer() callback so that it provides callbacks on each SQL function that is invoked. (CVS 3365) drh 2006-08-24 14:59:45 +00:00
  • 882e8e4df2 Tcl interface does filename translation prior to calling sqlite3_open(). Ticket #1937. (CVS 3364) drh 2006-08-24 02:42:27 +00:00
  • 1717edd157 A first implementation of a full-text search module for SQLite. (CVS 3363) adamd 2006-08-23 23:58:50 +00:00
  • 1409be69aa Add the new experimental sqlite3_auto_extension() API. (CVS 3362) drh 2006-08-23 20:07:20 +00:00
  • ad42c3a352 Add argc as a default global to match standard tcl environment. (CVS 3361) shess 2006-08-22 23:53:46 +00:00
  • fa9b4b1499 Add the ext/fts1 subdirectory for holding the first full-text search extension. (CVS 3360) drh 2006-08-22 14:45:37 +00:00
  • a7e18326c6 Fix bug in documentation. Ticket #1927. (CVS 3359) drh 2006-08-19 13:32:05 +00:00