0
0
mirror of https://github.com/tursodatabase/libsql.git synced 2025-01-08 08:19:03 +00:00

Commit Graph

  • 4f07e5fbdf Remove terms with operator TK_AS from the expression tree. Ticket #2356. (CVS 3991) drh 2007-05-14 11:34:46 +00:00
  • 84f31128b2 Make REINDEX robust in the face of malloc() errors. (CVS 3990) drh 2007-05-12 15:00:14 +00:00
  • cf1be45fe2 Make the ANALYZE command robust in the face of malloc() failures. (CVS 3989) drh 2007-05-12 12:08:51 +00:00
  • 39c9604a02 Fix another variant of the "IN (...)" b-tree problem. (CVS 3988) danielk1977 2007-05-12 10:41:47 +00:00
  • 4aeff62ee0 Fix an obscure b-tree bug that applied to transient trees used for IN(...) expressions. (CVS 3987) danielk1977 2007-05-12 09:30:47 +00:00
  • cdbd8eff21 Bugfixes for assert() failures found by fuzz.test. (CVS 3986) danielk1977 2007-05-12 06:11:12 +00:00
  • 1f7c83e286 Check in some changes to fuzz.test. Still failing. (CVS 3985) danielk1977 2007-05-11 16:58:03 +00:00
  • 6e736838bf Avoid multiple storage class specifiers ("static extern") in the amalagmation. (CVS 3984) drh 2007-05-11 12:30:03 +00:00
  • bcfc4bc769 Expand the expressions tested by fuzz.test. Fix for (CAST zeroblob() AS text). (CVS 3983) danielk1977 2007-05-11 10:10:33 +00:00
  • d908f5ab7f Fix a problem with inserting zeroblob() into an indexed column. (CVS 3982) danielk1977 2007-05-11 07:08:28 +00:00
  • 4e05c83bc3 Additional parsing bugs fixed. (CVS 3981) drh 2007-05-11 01:44:50 +00:00
  • db83f8231f Make sure that the REGISTER token generates a valid Expr. REGISTER will cause the tokenizer to abort, but the parser might do several reduce actions prior to that abort and those reduce actions sometimes need a valid Expr. (CVS 3980) drh 2007-05-11 00:20:08 +00:00
  • 022ca88315 Backport the stack-size reduction patch in (3673) to version 3.3.13. (CVS 3979) branch_3_3_13 drh 2007-05-10 21:31:39 +00:00
  • e718efe113 When converting literal BLOBs to text using the encoding of the main database. Ticket #2349. (CVS 3975) drh 2007-05-10 21:14:03 +00:00
  • 639f45ff06 Simplify failing case in fuzz.test. (CVS 3974) danielk1977 2007-05-10 17:38:57 +00:00
  • f75232f748 Add cases to fuzz.test. Some tests in this file fail at the moment. (CVS 3973) danielk1977 2007-05-10 17:32:48 +00:00
  • 53c1402157 Add some UTF-8 test infrastructure. Treat NaN as NULL. The printf routines print infinity as "Inf" not as "NaN". Ticket #2345. (CVS 3972) drh 2007-05-10 17:23:11 +00:00
  • def0fec8e0 Add new test file fuzz.test, to test SQLite with fuzzily generated SQL. (CVS 3971) danielk1977 2007-05-10 15:37:52 +00:00
  • 85892bde6f Fix a C++ism in func.c. (CVS 3970) drh 2007-05-10 13:23:22 +00:00
  • 89a43bc588 Another test for overflow in strftime(). It was not broken. (CVS 3969) danielk1977 2007-05-10 11:43:53 +00:00
  • fc9760654a Add code to enforce the MAX_EXPR_DEPTH limit. (CVS 3968) danielk1977 2007-05-10 10:46:56 +00:00
  • e305f43f17 Make sure compound queries inside a subquery only return a single result column. Ticket #2347. (CVS 3967) drh 2007-05-09 22:56:39 +00:00
  • 6fa51035c3 Fix a typo in a comment. Ticket #2348. (CVS 3966) drh 2007-05-09 20:35:31 +00:00
  • b63f274589 Fix a problem with strange expressions being fed to an ATTACH or DETACH statement. (CVS 3965) drh 2007-05-09 20:31:29 +00:00
  • de3bea7ba4 Fix an obscure cache corruption that could occur after an SQLITE_FULL error. (CVS 3964) danielk1977 2007-05-09 15:56:39 +00:00
  • 832b2664e6 Add further test cases for compile time limits. (CVS 3963) danielk1977 2007-05-09 11:37:22 +00:00
  • b56fe1ff27 Fix enforcement of the LIKE_PATTERN limit. (CVS 3962) danielk1977 2007-05-09 08:24:44 +00:00
  • 37cd66a6a0 Remove a keyword from the header comment in date.c (CVS 3961) drh 2007-05-08 21:56:00 +00:00
  • 87cc3b3180 Remove compiler warnings in the amalgamation. (CVS 3960) drh 2007-05-08 21:45:27 +00:00
  • cf1023c08d Disable tracing pragmas when not in debug mode. This eliminates an external dependency on stdout. (CVS 3959) drh 2007-05-08 20:59:49 +00:00
  • ee85813c94 Fix the amalgamation generator so that all non-API functions have file scope. (CVS 3958) drh 2007-05-08 20:37:38 +00:00
  • 52d19f65e3 Update the release builder script. (CVS 3957) drh 2007-05-08 18:30:36 +00:00
  • b4fc679463 Fix a null-pointer dereference that follows a malloc() failure introduced in (3954). (CVS 3956) danielk1977 2007-05-08 18:04:46 +00:00
  • 84708bc93b Update the amalgamation builder for the latest changes. (CVS 3955) drh 2007-05-08 17:59:42 +00:00
  • 7a15a4beef Add a few more tests to sqllimit1.test. (CVS 3954) danielk1977 2007-05-08 17:54:43 +00:00
  • 428de1c03a Add a test case that uses a trigger to insert many rows to sqllimits1.test. (CVS 3953) danielk1977 2007-05-08 16:13:45 +00:00
  • b0ab63cd8e Add new test file sqllimits1.test. (CVS 3952) danielk1977 2007-05-08 15:59:05 +00:00
  • 2e6400ba9e Do not allocate so much surplus memory in the implementation of the replace() function. (CVS 3951) drh 2007-05-08 15:46:18 +00:00
  • beb818d1fd Limit the length of the patterns on LIKE and GLOB to avoid problems with deep recursion and N^2 behavior. (CVS 3950) drh 2007-05-08 15:34:47 +00:00
  • a0206bc81c Introduce the (experimental) sqlite3_result_error_toobig() API that function implementations can use to signal SQLite that the function result is too big to represent. (CVS 3949) drh 2007-05-08 15:15:02 +00:00
  • f8e632b630 Add the max_page_count pragma used to limit the maximum size of a database file. Untested. (CVS 3948) drh 2007-05-08 14:51:36 +00:00
  • 17374e8f94 Fix a potential buffer overrun in the replace() function. (CVS 3947) danielk1977 2007-05-08 14:39:04 +00:00
  • e5c941b83b Add more code to enforce the limits specified in limits.h. (CVS 3946) drh 2007-05-08 13:58:26 +00:00
  • 4b5710e486 Avoid evaluating (INT_MIN/-1) with 32 bit signed numbers. It can cause SIGFPE. (CVS 3945) danielk1977 2007-05-08 13:57:34 +00:00
  • dce872b94e Do not crash in the internal functions sqlite_rename_table() or sqlite_rename_trigger() if they are somehow passed unexpected input. (CVS 3944) danielk1977 2007-05-08 12:37:45 +00:00
  • 023ae03a72 Begin adding code to explicitly limit the size of strings and blobs. (CVS 3943) drh 2007-05-08 12:12:16 +00:00
  • 7a7364cee8 Fix a bug in the test logic introduced by check-in (3928). (CVS 3942) drh 2007-05-08 11:27:15 +00:00
  • c797d4dccd Begin implementing a new system of upper bounds on the capabilities of SQLite. By clearly defining the upper bounds, we make those upper bounds explicitly testable. This check-in is just infrastructure. The upper bounds are not yet enforced. (CVS 3941) drh 2007-05-08 01:08:49 +00:00
  • 02d858364b Fix an NULL deref in the randomblob() function following a malloc failure. (CVS 3940) drh 2007-05-07 19:31:15 +00:00
  • 7de68a097e Add a version of the LIKE operator to the icu extension. Requires optimisation. (CVS 3939) danielk1977 2007-05-07 16:58:02 +00:00
  • a393c03686 Change the name of create_collation_x() to create_collation_v2(). Also add some tests for it. (CVS 3938) danielk1977 2007-05-07 14:58:53 +00:00
  • 9e91c756a1 Fix typo in Makefile.in. Ticket #2343 (CVS 3937) drh 2007-05-07 13:11:10 +00:00
  • 2559136971 Add interface to configure SQLite to use ICU collation functions. (CVS 3936) danielk1977 2007-05-07 11:53:13 +00:00
  • 6885390791 Change sqlite3_snprintf() so that it does not write a zero-terminator if the buffer size argument is less than 1. Ticket #2341. Added documentation about the sqlite3_snprintf() function. (CVS 3935) drh 2007-05-07 11:24:30 +00:00
  • a9808b31a8 Add the experimental create_collation_x() api. (CVS 3934) danielk1977 2007-05-07 09:32:45 +00:00
  • a58906a8dd Fix missing word in the copyright.html web page. (CVS 3933) drh 2007-05-06 21:20:43 +00:00
  • ad91c6cd40 Do not flatten subqueries that are part of a compound SELECT and which have both an ORDER BY and a LIMIT clause. Ticket #2339. (CVS 3932) drh 2007-05-06 20:04:24 +00:00
  • 83852acc44 Add the start of the ICU extension. (CVS 3931) danielk1977 2007-05-06 16:04:11 +00:00
  • d230f648de Add "Powered By SQLite" logo contributed by Alberto Simoes. (CVS 3930) drh 2007-05-05 22:45:00 +00:00
  • db6f6a7737 Fix a header problem introduced in the previous check-in. (CVS 3929) drh 2007-05-05 18:49:53 +00:00
  • 16a9b8363d Factor out btree test logic into a separate test_btree.c file. (CVS 3928) drh 2007-05-05 18:39:25 +00:00
  • 59df4cda00 Fix a sprintf() problem introduced by (3916). (CVS 3927) drh 2007-05-05 12:06:24 +00:00
  • c4c6b2a23d Refactoring. Split btreeInt.h off from btree.c. Split malloc.c off from util.c. Expect much more to follow. (CVS 3926) drh 2007-05-05 11:48:52 +00:00
  • a315289571 Refactoring. Split btreeInt.h off from btree.c. Split malloc.c off from util.c. Expect much more to follow. (CVS 3925) drh 2007-05-05 11:48:52 +00:00
  • 4500c430b0 Add documentation on the incremental vacuum feature. (CVS 3924) drh 2007-05-04 19:16:30 +00:00
  • 32a0d8bb8c Fix compilation and testing with OMIT_INCRBLOB defined. (CVS 3923) danielk1977 2007-05-04 19:03:02 +00:00
  • dcbb5d3f47 Test interaction of incremental io and other database writes. (CVS 3922) danielk1977 2007-05-04 18:36:44 +00:00
  • ca5557f91d Change incremental vacuum to be triggered by a pragma rather than a command. We have a lot to learn about this yet and we do not want to paint ourselves into a corner by commiting to specific syntax too early. (CVS 3921) drh 2007-05-04 18:30:40 +00:00
  • 744f2f4658 Tighter compression of the keyword hash table. (CVS 3920) drh 2007-05-04 17:07:52 +00:00
  • 9c61cd77a5 Optional parameter in the INCREMENTAL VACUUM statement specifies how many pages to vacuum from the database. (CVS 3919) drh 2007-05-04 16:14:38 +00:00
  • 847d3ab43d Get tests working with SQLITE_OMIT_AUTOVACUUM=1. (CVS 3918) drh 2007-05-04 14:36:22 +00:00
  • 4f5c74e6ec Make "incremental" a fallback token so that you can set "auto_vacuum=incremental" without having to quote the "incremental". (CVS 3917) drh 2007-05-04 14:14:45 +00:00
  • 5bb3eb9b9a Eliminate all uses of sprintf() and strcpy(). These were not being misused. But getting rid of them removes a library dependency. And it avoids warnings from the OpenBSD compiler. Ticket #2336. (CVS 3916) drh 2007-05-04 13:15:55 +00:00
  • 92d4d7a92e Test cases and corrections to IO and malloc() error handling in incremental blob IO functions. (CVS 3915) danielk1977 2007-05-04 12:05:56 +00:00
  • 126afe6b59 Fix a formatting errror in I/O logging. (CVS 3914) drh 2007-05-04 12:01:02 +00:00
  • 110daac9a1 Add compile-time option -DSQLITE_MIXED_ENDIAN_64BIT_FLOAT=1 that uses mixed-endian doubles. This is needed on ARM7 to make database file formats compatible with all other processors. Tickets #2278 and #2335. (CVS 3913) drh 2007-05-04 11:59:31 +00:00
  • da10719890 Rework accessPayload() function for clarity. (CVS 3912) danielk1977 2007-05-04 08:32:13 +00:00
  • acf1a933ca fix from Gentoo for allowing TCLLIBDIR to be overridden in env (CVS 3911) vapier 2007-05-03 20:06:11 +00:00
  • f1819244aa Test some more incremental IO error cases. (CVS 3910) danielk1977 2007-05-03 18:14:10 +00:00
  • ae5e445b34 Improvements to I/O tracing output. Require -DSQLITE_ENABLE_IOTRACE when compiling shell.c in order to link in the I/O tracing capability. (CVS 3909) drh 2007-05-03 17:18:36 +00:00
  • 3f75584a30 Get the amalgamation builder working with incremental I/O. (CVS 3908) drh 2007-05-03 16:55:32 +00:00
  • 8cbadb0211 Test cases and minor bugfixes for incremental blob APIs. (CVS 3907) danielk1977 2007-05-03 16:31:26 +00:00
  • 44e6c8d3cf Fix a bug where accessPayload() was calling PagerWrite() on the wrong page handle. Ticket #2332. (CVS 3906) danielk1977 2007-05-03 13:11:32 +00:00
  • f68d7d17a1 Use memmove() instead of memcpy() when moving between memory regions that might overlap. Ticket #2334. (CVS 3905) drh 2007-05-03 13:02:26 +00:00
  • cdf1c4d21f Minor bugfixes for incrblob mode. (CVS 3904) danielk1977 2007-05-03 11:43:34 +00:00
  • 20713f34a5 Minor bugfixes for incrblob mode. (CVS 3903) danielk1977 2007-05-03 11:43:33 +00:00
  • b7af4452d9 Allow CREATE TABLE to occur while other queries are running. DROP TABLE is still prohibited, however, since we do not want to delete a table out from under an running query. (CVS 3902) drh 2007-05-02 17:54:55 +00:00
  • 9f8d64009e Combine the internal btree functions BtreePutData() and getPayload(). (CVS 3901) danielk1977 2007-05-02 17:48:45 +00:00
  • ae7e151a24 More fixes and improvements to the zeroblob() mechanism. (CVS 3900) drh 2007-05-02 16:51:59 +00:00
  • 2dec97077b Cache the location of overflow pages in cursors used for incremental blob IO. (CVS 3899) danielk1977 2007-05-02 16:48:37 +00:00
  • 7a928d75f4 Fix an invalid UTF8 encoding in the tests for the trim function. (CVS 3898) drh 2007-05-02 15:36:01 +00:00
  • fdf972a9ba Add support for zero-blobs to the OP_MakeRecord opcode. First test cases of zeroblob functionality. (CVS 3897) drh 2007-05-02 13:30:27 +00:00
  • d04417963f Use the pointer-map pages to make the incremental blob API more efficient. (CVS 3896) danielk1977 2007-05-02 13:16:30 +00:00
  • 8cff382e7d Fix some compiler warnings. Add the (untested) zeroblob() SQL function. (CVS 3895) drh 2007-05-02 02:08:28 +00:00
  • b026e05eb2 Begin adding the zeroblob API to support incremental blob i/o. (CVS 3894) drh 2007-05-02 01:34:31 +00:00
  • 290283fe69 Enable prefix-search in query-parsing and snippet generation. If the character immediately after the end of a term is '*', that term is marked for prefix matching. Modify term comparison in snippetOffsetsOfColumn() to respect isPrefix. fts2n.test runs prefix searching through some obvious test cases. (CVS 3893) shess 2007-05-01 18:25:52 +00:00
  • b4e9af9ff9 First approximation of incremental blob IO API. (CVS 3892) danielk1977 2007-05-01 17:49:49 +00:00
  • cc3e986643 Modify loadSegmentLeavesInt() to correctly handle prefix searching. The new function docListUnion() is used to accumulate a union of the hits for the matching terms, which will be merged across segments using docListMerge(). (CVS 3891) shess 2007-05-01 17:14:59 +00:00
  • c80f058db3 The pager takes the sector size to be the larger of the sector size reported by sqlite3OsSectorSize() and the page size. (CVS 3890) drh 2007-05-01 16:59:48 +00:00
  • 0b6212090f Propagate prefix flag through implementation of doclist query code. Also implement correct prefix-handling for traversal of interior nodes of segment tree. A given prefix can span multiple children of an interior node, and from there the branches need to be followed in parallel. (CVS 3889) shess 2007-04-30 22:09:36 +00:00