]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
18 years agoConsider explicit collate clauses when matching WHERE constraints to indices. Fix...
danielk1977 [Tue, 29 May 2007 12:11:29 +0000 (12:11 +0000)] 
Consider explicit collate clauses when matching WHERE constraints to indices. Fix for #2391. (CVS 4040)

FossilOrigin-Name: f9a95e92dfaaa61ec0a44b9b7017b07929c94d26

18 years agoAdd some tests to verify that the parameter to the incremental_vacuum pragma is worki...
danielk1977 [Thu, 24 May 2007 10:18:22 +0000 (10:18 +0000)] 
Add some tests to verify that the parameter to the incremental_vacuum pragma is working. It is. (CVS 4039)

FossilOrigin-Name: 1abf784fe27cdc61b6b944b79d024ea98eb5289e

18 years agoFix a typo in comments in sqlite.h.in. No code changes. Ticket #2384. (CVS 4038)
danielk1977 [Thu, 24 May 2007 09:44:10 +0000 (09:44 +0000)] 
Fix a typo in comments in sqlite.h.in. No code changes. Ticket #2384. (CVS 4038)

FossilOrigin-Name: e8ae6214bfef4230096b6b56e688e9d4cd93f1b8

18 years agoRemove an assert() statement that may not be true if an IO or malloc error has occure...
danielk1977 [Thu, 24 May 2007 09:41:20 +0000 (09:41 +0000)] 
Remove an assert() statement that may not be true if an IO or malloc error has occured. (CVS 4037)

FossilOrigin-Name: 16c8e9c20cd2a7628c20a31c3e9605fe2d92ba2e

18 years agoFix a page reference leak that could occur after an IO error. (CVS 4036)
danielk1977 [Thu, 24 May 2007 09:20:16 +0000 (09:20 +0000)] 
Fix a page reference leak that could occur after an IO error. (CVS 4036)

FossilOrigin-Name: d00c8242c610476c15d6eb4dc53fecab3971fea1

18 years agoRemove an incorrect assert() statement that was being triggered by ioerr tests run...
danielk1977 [Thu, 24 May 2007 07:47:06 +0000 (07:47 +0000)] 
Remove an incorrect assert() statement that was being triggered by ioerr tests run in utf-16 mode. (CVS 4035)

FossilOrigin-Name: c6575173be13296fbe57932f2d24a568f6d552ff

18 years agoFix an assert() failure occuring in corrupt.test. (CVS 4034)
danielk1977 [Thu, 24 May 2007 07:22:42 +0000 (07:22 +0000)] 
Fix an assert() failure occuring in corrupt.test. (CVS 4034)

FossilOrigin-Name: 3c54cddf23e3b9f62815d1b825110563f78cc325

18 years agoAdd some code to MemTranslate() to prevent the READ_UTF8() macro from overreading...
danielk1977 [Wed, 23 May 2007 16:23:09 +0000 (16:23 +0000)] 
Add some code to MemTranslate() to prevent the READ_UTF8() macro from overreading a buffer. (CVS 4033)

FossilOrigin-Name: 0595319cd716611bb5a12eb952e395283ea749bb

18 years agoMake sure the database schema has been read before compiling an incrmental_vacuum...
danielk1977 [Wed, 23 May 2007 13:50:23 +0000 (13:50 +0000)] 
Make sure the database schema has been read before compiling an incrmental_vacuum pragma. (CVS 4032)

FossilOrigin-Name: efd7bcb34c1b4a0a3d4b954b90dfee93ac87bc86

18 years agoFix a leaked page reference that could occur after an IO error in auto-vacuum databas...
danielk1977 [Wed, 23 May 2007 13:34:32 +0000 (13:34 +0000)] 
Fix a leaked page reference that could occur after an IO error in auto-vacuum databases. Also modify incrvacuum.test to work with DEFAULT_AUTOVACUUM=1 builds. (CVS 4031)

FossilOrigin-Name: e691f2fa3d8c1bbb66d27eea299ae2fb1ea1a16d

18 years agoFix a database corrupting bug in the optimistic overflow chain. Exposed by running...
danielk1977 [Wed, 23 May 2007 09:52:41 +0000 (09:52 +0000)] 
Fix a database corrupting bug in the optimistic overflow chain. Exposed by running bigrow.test with auto-vacuum enabled. (CVS 4030)

FossilOrigin-Name: 10ee2d50cbcdcbbd8141ff2aba4fd2c0c0b70d67

18 years agoAdditional comments ono the SQLITE_MIXED_ENDIAN_64BIT_FLOAT issue. (CVS 4029)
drh [Wed, 23 May 2007 07:20:08 +0000 (07:20 +0000)] 
Additional comments ono the SQLITE_MIXED_ENDIAN_64BIT_FLOAT issue. (CVS 4029)

FossilOrigin-Name: dd48a31e671de09f59661b2ba1a20e7b9f09099a

18 years agoMake sure zeroblob() works with the concatenation operator. Ticket #2379. (CVS 4028)
drh [Wed, 23 May 2007 06:31:38 +0000 (06:31 +0000)] 
Make sure zeroblob() works with the concatenation operator.  Ticket #2379. (CVS 4028)

FossilOrigin-Name: 6e19ef758207cedd6db8b2796ef5d4d688cc0b62

18 years agoIncrease the number of repititions in crash.test. (CVS 4027)
danielk1977 [Wed, 23 May 2007 06:25:13 +0000 (06:25 +0000)] 
Increase the number of repititions in crash.test. (CVS 4027)

FossilOrigin-Name: f3c3412afa95e7e4b2e6477718785b51f5352c39

18 years agoFix overzealous fts2 assertions WRT rowid 0 or lower. Only check that
shess [Mon, 21 May 2007 21:59:18 +0000 (21:59 +0000)] 
Fix overzealous fts2 assertions WRT rowid 0 or lower.  Only check that
docids are ascending if there was a prior docid set for the doclist,
ignore the initial docid of 0. (CVS 4026)

FossilOrigin-Name: ed3a131f1d3fe51d1e79bdfe1bfafa55f825afa9

18 years agoAdd the larger SQLite icon to the repository. (CVS 4025)
drh [Sat, 19 May 2007 11:50:36 +0000 (11:50 +0000)] 
Add the larger SQLite icon to the repository. (CVS 4025)

FossilOrigin-Name: d7539c6e8b66d537307e70aac5f2001135151c78

18 years agoAdd a few extra words to the sqlite3_finalize() documentation. (CVS 4024)
danielk1977 [Sat, 19 May 2007 06:48:42 +0000 (06:48 +0000)] 
Add a few extra words to the sqlite3_finalize() documentation. (CVS 4024)

FossilOrigin-Name: 315dc71b921ffba514271a2ed571d5f4162c775f

18 years agoChange the way overflow pages are allocated from the free-list to increase the chance...
danielk1977 [Thu, 17 May 2007 18:28:11 +0000 (18:28 +0000)] 
Change the way overflow pages are allocated from the free-list to increase the chance that they are a contiguous block. Much more can still be done. (CVS 4023)

FossilOrigin-Name: b7391892041eb72b0ebcbb7a9a6721ae3482dd80

18 years agoBring the autoconf based build system up to date with the recent changes. #2366,...
danielk1977 [Thu, 17 May 2007 16:38:30 +0000 (16:38 +0000)] 
Bring the autoconf based build system up to date with the recent changes. #2366, #2367 and #2368. (CVS 4022)

FossilOrigin-Name: ae644bc7aad229f2d219ea20eb4774318feb3051

18 years agoFix a problem with casting blobs to numeric types. (CVS 4021)
danielk1977 [Thu, 17 May 2007 16:34:43 +0000 (16:34 +0000)] 
Fix a problem with casting blobs to numeric types. (CVS 4021)

FossilOrigin-Name: f2ce727c4d798c666e95876a2b67e8a305d82e3a

18 years agoAdd speed3.test file. For testing performance issues related to overflow pages. ...
danielk1977 [Thu, 17 May 2007 14:45:12 +0000 (14:45 +0000)] 
Add speed3.test file. For testing performance issues related to overflow pages. (CVS 4020)

FossilOrigin-Name: 684f765df3e8a4836f254717d175a4a7b5e7d15f

18 years agoModify test scripts to allow for the fact that zeroblob() is not available when compi...
danielk1977 [Thu, 17 May 2007 06:44:28 +0000 (06:44 +0000)] 
Modify test scripts to allow for the fact that zeroblob() is not available when compiled with OMIT_INCRBLOB. Ticket #2365. (CVS 4019)

FossilOrigin-Name: 2ee959be4afa2cf05d183ff92a31dd1b5a84becf

18 years agoRemove the SKIP_UTF16 macros (they are no longer in use). (CVS 4018)
danielk1977 [Wed, 16 May 2007 18:23:05 +0000 (18:23 +0000)] 
Remove the SKIP_UTF16 macros (they are no longer in use). (CVS 4018)

FossilOrigin-Name: 73e654fbdc791daa10c49557bf479f152586ac28

18 years agoFix handling of utf-16 encoding of code point 0xE000. (CVS 4017)
danielk1977 [Wed, 16 May 2007 18:11:41 +0000 (18:11 +0000)] 
Fix handling of utf-16 encoding of code point 0xE000. (CVS 4017)

FossilOrigin-Name: bfc35ce8673ce51f726535b90c1d86be272848bb

18 years agoAvoid passing a negative value to isspace() in a couple places. (CVS 4016)
danielk1977 [Wed, 16 May 2007 17:50:45 +0000 (17:50 +0000)] 
Avoid passing a negative value to isspace() in a couple places. (CVS 4016)

FossilOrigin-Name: d5db8be3680e16a74edb385dfa3730c66d5f4fd6

18 years agoChange a few selected functions to macros to speed things up. (CVS 4015)
danielk1977 [Wed, 16 May 2007 17:28:43 +0000 (17:28 +0000)] 
Change a few selected functions to macros to speed things up. (CVS 4015)

FossilOrigin-Name: 93f811ec747f6a42daf9ee27cd8b013f248552a1

18 years agoOmit some extra code when OMIT_INCRBLOB is defined. (CVS 4014)
danielk1977 [Wed, 16 May 2007 14:23:00 +0000 (14:23 +0000)] 
Omit some extra code when OMIT_INCRBLOB is defined. (CVS 4014)

FossilOrigin-Name: 1d89be287d34423b1a405cde0490260e7c731f07

18 years agoAdd a --nostatic option to mksqlite3c.tcl. With this option turned on,
drh [Wed, 16 May 2007 13:55:26 +0000 (13:55 +0000)] 
Add a --nostatic option to mksqlite3c.tcl.  With this option turned on,
the extra "static" storage class markers are not inserted into the
amalgamation. (CVS 4013)

FossilOrigin-Name: 57e17c7cda23a3b3e1d0a691af07c35c1c644dcc

18 years agoKeep the full precision of integers if possible when casting to "numeric".
drh [Wed, 16 May 2007 11:55:56 +0000 (11:55 +0000)] 
Keep the full precision of integers if possible when casting to "numeric".
Ticket #2364. (CVS 4012)

FossilOrigin-Name: 2ac985a38034da87b0fa3837976e1f2164b22672

18 years agoAdditional tests for malformed UTF-8. (CVS 4011)
drh [Tue, 15 May 2007 18:35:21 +0000 (18:35 +0000)] 
Additional tests for malformed UTF-8. (CVS 4011)

FossilOrigin-Name: 448d3ef670dce6d27c7d7b1be58088d45f8b6274

18 years agoMake sure pParse->rc gets set whenever sqlite3ErrorMsg() is called. This is
drh [Tue, 15 May 2007 16:51:37 +0000 (16:51 +0000)] 
Make sure pParse->rc gets set whenever sqlite3ErrorMsg() is called.  This is
added insurance that parsing will stop quickly after an error.  This change
did make the parser stop faster in some cases, which required some revisions
to tests. (CVS 4010)

FossilOrigin-Name: f84d9dab110c4415d9b772f8043397640162b6b2

18 years agoRemove the alternative UTF-16 implementation of SUBSTR(). It does not
drh [Tue, 15 May 2007 14:40:11 +0000 (14:40 +0000)] 
Remove the alternative UTF-16 implementation of SUBSTR().  It does not
work anymore and the UTF-8 version can do everything that the UTF-16
version does. (CVS 4009)

FossilOrigin-Name: 9b91502ef0ea9c0bfb8362c4b70314dc8449eb9e

18 years agoRelax the restriction on using bytes 0x80 through 0xbf as the first
drh [Tue, 15 May 2007 14:34:32 +0000 (14:34 +0000)] 
Relax the restriction on using bytes 0x80 through 0xbf as the first
character of an identifier.  Enhancements to ALTER TABLE tests for
tables with strange names or stange column names. (CVS 4008)

FossilOrigin-Name: 262a3e6339b31f269f8f07e43d295b90827e2779

18 years agoChange the documentation to clearly state that the result of
drh [Tue, 15 May 2007 14:17:25 +0000 (14:17 +0000)] 
Change the documentation to clearly state that the result of
sqlite3_column_type() is undefined following a type conversion. (CVS 4007)

FossilOrigin-Name: 960be575e2b062a34c96d006e411ad34ded58063

18 years agoFix to check-in (4005). A call to sqlite3_column_blob() should not make
drh [Tue, 15 May 2007 14:10:40 +0000 (14:10 +0000)] 
Fix to check-in (4005).  A call to sqlite3_column_blob() should not make
subsequent calls to sqlite3_column_type() return SQLITE_BLOB.
Sqlite3_column_type() returns the initial type. (CVS 4006)

FossilOrigin-Name: b5e85deb5a0316781a6f39d6085b9fcfb9f88c6d

18 years agoClarification on the best practices for using the _bytes() APIs.
drh [Tue, 15 May 2007 13:27:07 +0000 (13:27 +0000)] 
Clarification on the best practices for using the _bytes() APIs.
Change sqlite3_value_blob() to force the representation to be purely
a BLOB and not a dual BLOB/String.  Ticket #2360. (CVS 4005)

FossilOrigin-Name: cf2dd45b58380de7f3e167b5357848d12872caa3

18 years agoA new approach for UTF-8 translation. (CVS 4004)
drh [Tue, 15 May 2007 11:55:09 +0000 (11:55 +0000)] 
A new approach for UTF-8 translation. (CVS 4004)

FossilOrigin-Name: 6c8ad2790eaede90b3f1ef62614e667178b2a8c4

18 years agoDo not allow bytes 0x80 through 0xBF to be the first character of an
drh [Tue, 15 May 2007 09:00:14 +0000 (09:00 +0000)] 
Do not allow bytes 0x80 through 0xBF to be the first character of an
identifer because no valid UTF-8 character can begin with those bytes.
If we allowed an identifier to begin with one of those bytes, then the
substr() function in ALTER TABLE will not work correctly. (CVS 4003)

FossilOrigin-Name: 252810424d8c4dcd19b369d62027094df7cf0bcc

18 years agoFix some test script errors in fuzz.test. (CVS 4002)
danielk1977 [Tue, 15 May 2007 07:14:32 +0000 (07:14 +0000)] 
Fix some test script errors in fuzz.test. (CVS 4002)

FossilOrigin-Name: 51eeae7b7ad5a0fbdd9d4418120dbdb6cd577cd5

18 years agoA fix for queries that used correlated, compound sub-queries in the HAVING clause...
danielk1977 [Tue, 15 May 2007 07:00:34 +0000 (07:00 +0000)] 
A fix for queries that used correlated, compound sub-queries in the HAVING clause. Also update fuzz.test some more. (CVS 4001)

FossilOrigin-Name: da0c1ab4deedd2b952a43b3af6962a9403f8c9ee

18 years agoFix problems in ALTER TABLE that occur when column or table names are
drh [Tue, 15 May 2007 03:56:49 +0000 (03:56 +0000)] 
Fix problems in ALTER TABLE that occur when column or table names are
invalid UTF encodings. (CVS 4000)

FossilOrigin-Name: 9ff382f4584ff685a78b39f24424319709efb382

18 years agoFix a typo in a comment. Ticket #2359. (CVS 3999)
drh [Tue, 15 May 2007 02:45:18 +0000 (02:45 +0000)] 
Fix a typo in a comment.  Ticket #2359. (CVS 3999)

FossilOrigin-Name: 1fbbc108a9e7ad1dc22c08ee990e2b6b949784eb

18 years agoFix a bug in sqlite3_mprintf() which could have caused a buffer
drh [Tue, 15 May 2007 02:34:09 +0000 (02:34 +0000)] 
Fix a bug in sqlite3_mprintf() which could have caused a buffer
overrun if malloc() failed. (CVS 3998)

FossilOrigin-Name: 5af49a57d4866be21c0206f34584bcc63adc1315

18 years agoThe built-in substr() function applied to a BLOB counts bytes, not characters. (CVS...
drh [Tue, 15 May 2007 01:13:47 +0000 (01:13 +0000)] 
The built-in substr() function applied to a BLOB counts bytes, not characters. (CVS 3997)

FossilOrigin-Name: 75d573080d03ee48fe88710f70c6875ff9cae19c

18 years agoMake sure the parser aborts quickly following a syntax error. (CVS 3996)
drh [Tue, 15 May 2007 00:09:13 +0000 (00:09 +0000)] 
Make sure the parser aborts quickly following a syntax error. (CVS 3996)

FossilOrigin-Name: d07cdd3c096c120d104ae13f7932c0a955324517

18 years agoFix a problem with ORDER BY and compound SELECT queries. (CVS 3995)
danielk1977 [Mon, 14 May 2007 16:50:48 +0000 (16:50 +0000)] 
Fix a problem with ORDER BY and compound SELECT queries. (CVS 3995)

FossilOrigin-Name: af76928fc5891f9a222ac0c39f8b443a9707b9e3

18 years agoFix a bug in "flattening" optimization. Occured if the parent of the flattened sub...
danielk1977 [Mon, 14 May 2007 15:49:43 +0000 (15:49 +0000)] 
Fix a bug in "flattening" optimization. Occured if the parent of the flattened sub-query is also the parent of a sub-query that uses a compound op (i.e. UNION, INTERSECT etc.). (CVS 3994)

FossilOrigin-Name: 1c33829c9ebcf1ff1bd21b161c73a642471b613a

18 years agoPrevent sub-queries with "LIMIT 0" from leaving an extra value on the vdbe stack...
danielk1977 [Mon, 14 May 2007 14:04:59 +0000 (14:04 +0000)] 
Prevent sub-queries with "LIMIT 0" from leaving an extra value on the vdbe stack. Also updates to fuzz.test. (CVS 3993)

FossilOrigin-Name: b1d1b16e9857a1c05f60cf2ae15f5a534b0dd0ac

18 years agoIn the windows driver, reacquire the shared lock if an exclusive lock
drh [Mon, 14 May 2007 12:12:11 +0000 (12:12 +0000)] 
In the windows driver, reacquire the shared lock if an exclusive lock
fails.  Ticket #2354. (CVS 3992)

FossilOrigin-Name: fc489b53829aa25bc10cc47d679c81d95c746abf

18 years agoRemove terms with operator TK_AS from the expression tree. Ticket #2356. (CVS 3991)
drh [Mon, 14 May 2007 11:34:46 +0000 (11:34 +0000)] 
Remove terms with operator TK_AS from the expression tree.  Ticket #2356. (CVS 3991)

FossilOrigin-Name: 5627ff74be9242418434a06fe5c104d1f9128cab

18 years agoMake REINDEX robust in the face of malloc() errors. (CVS 3990)
drh [Sat, 12 May 2007 15:00:14 +0000 (15:00 +0000)] 
Make REINDEX robust in the face of malloc() errors. (CVS 3990)

FossilOrigin-Name: dbe417745d3d4ed875715ad7083d7345d1b6a56f

18 years agoMake the ANALYZE command robust in the face of malloc() failures. (CVS 3989)
drh [Sat, 12 May 2007 12:08:51 +0000 (12:08 +0000)] 
Make the ANALYZE command robust in the face of malloc() failures. (CVS 3989)

FossilOrigin-Name: c08658e1f8598941ebddddb98942b98cfcb86e7a

18 years agoFix another variant of the "IN (...)" b-tree problem. (CVS 3988)
danielk1977 [Sat, 12 May 2007 10:41:47 +0000 (10:41 +0000)] 
Fix another variant of the "IN (...)" b-tree problem. (CVS 3988)

FossilOrigin-Name: 260338c4b2b18c9f4da8bc7fe3eda306dcaa4e38

18 years agoFix an obscure b-tree bug that applied to transient trees used for IN(...) expression...
danielk1977 [Sat, 12 May 2007 09:30:47 +0000 (09:30 +0000)] 
Fix an obscure b-tree bug that applied to transient trees used for IN(...) expressions. (CVS 3987)

FossilOrigin-Name: 96c7232f8b208cd1c50063f7946bb6dbc386abd6

18 years agoBugfixes for assert() failures found by fuzz.test. (CVS 3986)
danielk1977 [Sat, 12 May 2007 06:11:12 +0000 (06:11 +0000)] 
Bugfixes for assert() failures found by fuzz.test. (CVS 3986)

FossilOrigin-Name: 2e80736d57fde55b112864d8b198a9a2fe0eaa38

18 years agoCheck in some changes to fuzz.test. Still failing. (CVS 3985)
danielk1977 [Fri, 11 May 2007 16:58:03 +0000 (16:58 +0000)] 
Check in some changes to fuzz.test. Still failing. (CVS 3985)

FossilOrigin-Name: 6f346a6be9803b84260509352315f8fa1e820490

18 years agoAvoid multiple storage class specifiers ("static extern") in the amalagmation. (CVS...
drh [Fri, 11 May 2007 12:30:03 +0000 (12:30 +0000)] 
Avoid multiple storage class specifiers ("static extern") in the amalagmation. (CVS 3984)

FossilOrigin-Name: 2f70159b1d6ded4a1ac446faa3baf7269f37703f

18 years agoExpand the expressions tested by fuzz.test. Fix for (CAST zeroblob() AS text). (CVS...
danielk1977 [Fri, 11 May 2007 10:10:33 +0000 (10:10 +0000)] 
Expand the expressions tested by fuzz.test. Fix for (CAST zeroblob() AS text). (CVS 3983)

FossilOrigin-Name: 4e1bb41f302c13095aa9c638e59ae11417f49682

18 years agoFix a problem with inserting zeroblob() into an indexed column. (CVS 3982)
danielk1977 [Fri, 11 May 2007 07:08:28 +0000 (07:08 +0000)] 
Fix a problem with inserting zeroblob() into an indexed column. (CVS 3982)

FossilOrigin-Name: ccef5d2daaa5a88dd3f23666f022296ef42f9d73

18 years agoAdditional parsing bugs fixed. (CVS 3981)
drh [Fri, 11 May 2007 01:44:50 +0000 (01:44 +0000)] 
Additional parsing bugs fixed. (CVS 3981)

FossilOrigin-Name: d12a8924c6083cdff14990b4fd036ca386c2e34a

18 years agoMake sure that the REGISTER token generates a valid Expr. REGISTER will
drh [Fri, 11 May 2007 00:20:08 +0000 (00:20 +0000)] 
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)

FossilOrigin-Name: d146f01a02579339c5dc86bbe59f246bd6c05c63

18 years agoWhen converting literal BLOBs to text using the encoding of the main
drh [Thu, 10 May 2007 21:14:03 +0000 (21:14 +0000)] 
When converting literal BLOBs to text using the encoding of the main
database.  Ticket #2349. (CVS 3975)

FossilOrigin-Name: a57afaff424448ffed8f2344e5eb461f503bfb6e

18 years agoSimplify failing case in fuzz.test. (CVS 3974)
danielk1977 [Thu, 10 May 2007 17:38:57 +0000 (17:38 +0000)] 
Simplify failing case in fuzz.test. (CVS 3974)

FossilOrigin-Name: a54c74990caf22c0008a7029e24594e83048ffbc

18 years agoAdd cases to fuzz.test. Some tests in this file fail at the moment. (CVS 3973)
danielk1977 [Thu, 10 May 2007 17:32:48 +0000 (17:32 +0000)] 
Add cases to fuzz.test. Some tests in this file fail at the moment. (CVS 3973)

FossilOrigin-Name: 1e8fcb3fbed7beb8bb1370953ecf3d4b9db01ede

18 years agoAdd some UTF-8 test infrastructure. Treat NaN as NULL. The printf routines
drh [Thu, 10 May 2007 17:23:11 +0000 (17:23 +0000)] 
Add some UTF-8 test infrastructure.  Treat NaN as NULL.  The printf routines
print infinity as "Inf" not as "NaN".  Ticket #2345. (CVS 3972)

FossilOrigin-Name: ffe615a71107a38b6f60c7baf4284a5b0aecdc22

18 years agoAdd new test file fuzz.test, to test SQLite with fuzzily generated SQL. (CVS 3971)
danielk1977 [Thu, 10 May 2007 15:37:52 +0000 (15:37 +0000)] 
Add new test file fuzz.test, to test SQLite with fuzzily generated SQL. (CVS 3971)

FossilOrigin-Name: 1e9e6fe75d01d8cf4e1a23505c45f28491f1e902

18 years agoFix a C++ism in func.c. (CVS 3970)
drh [Thu, 10 May 2007 13:23:22 +0000 (13:23 +0000)] 
Fix a C++ism in func.c. (CVS 3970)

FossilOrigin-Name: 9c0050a10c6bea75ada902c16eb28eb3cf864718

18 years agoAnother test for overflow in strftime(). It was not broken. (CVS 3969)
danielk1977 [Thu, 10 May 2007 11:43:53 +0000 (11:43 +0000)] 
Another test for overflow in strftime(). It was not broken. (CVS 3969)

FossilOrigin-Name: 5800d0327ebc122e679ef860b58098b3c08eb709

18 years agoAdd code to enforce the MAX_EXPR_DEPTH limit. (CVS 3968)
danielk1977 [Thu, 10 May 2007 10:46:56 +0000 (10:46 +0000)] 
Add code to enforce the MAX_EXPR_DEPTH limit. (CVS 3968)

FossilOrigin-Name: 2c9c94a24d52a1c9f5d1b32cbdff794a2dd74126

18 years agoMake sure compound queries inside a subquery only return a single result
drh [Wed, 9 May 2007 22:56:39 +0000 (22:56 +0000)] 
Make sure compound queries inside a subquery only return a single result
column.  Ticket #2347. (CVS 3967)

FossilOrigin-Name: 66954bdd81dabfb60306de8480b5477a4acb1d9e

18 years agoFix a typo in a comment. Ticket #2348. (CVS 3966)
drh [Wed, 9 May 2007 20:35:31 +0000 (20:35 +0000)] 
Fix a typo in a comment.  Ticket #2348. (CVS 3966)

FossilOrigin-Name: c0dbac46301039246afd4bebb71dd8184fc5c0c7

18 years agoFix a problem with strange expressions being fed to an ATTACH or DETACH
drh [Wed, 9 May 2007 20:31:29 +0000 (20:31 +0000)] 
Fix a problem with strange expressions being fed to an ATTACH or DETACH
statement. (CVS 3965)

FossilOrigin-Name: 0c91dc9ee0c5d441a7789b631476515260cb887f

18 years agoFix an obscure cache corruption that could occur after an SQLITE_FULL error. (CVS...
danielk1977 [Wed, 9 May 2007 15:56:39 +0000 (15:56 +0000)] 
Fix an obscure cache corruption that could occur after an SQLITE_FULL error. (CVS 3964)

FossilOrigin-Name: e8e879aca67dee959bab42627028964c474da72f

18 years agoAdd further test cases for compile time limits. (CVS 3963)
danielk1977 [Wed, 9 May 2007 11:37:22 +0000 (11:37 +0000)] 
Add further test cases for compile time limits. (CVS 3963)

FossilOrigin-Name: 9bf2c594a48a4661700f0833562ee2b3ff7b761c

18 years agoFix enforcement of the LIKE_PATTERN limit. (CVS 3962)
danielk1977 [Wed, 9 May 2007 08:24:44 +0000 (08:24 +0000)] 
Fix enforcement of the LIKE_PATTERN limit. (CVS 3962)

FossilOrigin-Name: 8819617b7cf7ccd64bf6bb4ba208f37126964ec2

18 years agoRemove a keyword from the header comment in date.c (CVS 3961)
drh [Tue, 8 May 2007 21:56:00 +0000 (21:56 +0000)] 
Remove a keyword from the header comment in date.c (CVS 3961)

FossilOrigin-Name: 03349ec0be208fd8701d94515a2ed13129cb8422

18 years agoRemove compiler warnings in the amalgamation. (CVS 3960)
drh [Tue, 8 May 2007 21:45:27 +0000 (21:45 +0000)] 
Remove compiler warnings in the amalgamation. (CVS 3960)

FossilOrigin-Name: c5754530c6b1a8151c558f33d27fed70c95a988b

18 years agoDisable tracing pragmas when not in debug mode. This eliminates an external
drh [Tue, 8 May 2007 20:59:49 +0000 (20:59 +0000)] 
Disable tracing pragmas when not in debug mode.  This eliminates an external
dependency on stdout. (CVS 3959)

FossilOrigin-Name: 5a0fe9854849bf3f04008a5dbb7a74e7d0d815ca

18 years agoFix the amalgamation generator so that all non-API functions have file scope. (CVS...
drh [Tue, 8 May 2007 20:37:38 +0000 (20:37 +0000)] 
Fix the amalgamation generator so that all non-API functions have file scope. (CVS 3958)

FossilOrigin-Name: e9f56ead0514f3eac75807ea710c1f035b8add4f

18 years agoUpdate the release builder script. (CVS 3957)
drh [Tue, 8 May 2007 18:30:36 +0000 (18:30 +0000)] 
Update the release builder script. (CVS 3957)

FossilOrigin-Name: 21299b917812920c70001c2d3d9b65f66eca6b24

18 years agoFix a null-pointer dereference that follows a malloc() failure introduced in (3954...
danielk1977 [Tue, 8 May 2007 18:04:46 +0000 (18:04 +0000)] 
Fix a null-pointer dereference that follows a malloc() failure introduced in (3954). (CVS 3956)

FossilOrigin-Name: 251ba1981e32fb80818965ffe1ef455069e88abd

18 years agoUpdate the amalgamation builder for the latest changes. (CVS 3955)
drh [Tue, 8 May 2007 17:59:42 +0000 (17:59 +0000)] 
Update the amalgamation builder for the latest changes. (CVS 3955)

FossilOrigin-Name: becd64d3615fc5738da4c70610d8849e0a70bed8

18 years agoAdd a few more tests to sqllimit1.test. (CVS 3954)
danielk1977 [Tue, 8 May 2007 17:54:43 +0000 (17:54 +0000)] 
Add a few more tests to sqllimit1.test. (CVS 3954)

FossilOrigin-Name: eeee6b71e5643511320cbe15bafa170cfd02877f

18 years agoAdd a test case that uses a trigger to insert many rows to sqllimits1.test. (CVS...
danielk1977 [Tue, 8 May 2007 16:13:45 +0000 (16:13 +0000)] 
Add a test case that uses a trigger to insert many rows to sqllimits1.test. (CVS 3953)

FossilOrigin-Name: 6368222558d00f968b49f862bfe672573e86fbcf

18 years agoAdd new test file sqllimits1.test. (CVS 3952)
danielk1977 [Tue, 8 May 2007 15:59:05 +0000 (15:59 +0000)] 
Add new test file sqllimits1.test. (CVS 3952)

FossilOrigin-Name: c8974603976ebc02edbc9ab271e87e57f8eb365e

18 years agoDo not allocate so much surplus memory in the implementation of the
drh [Tue, 8 May 2007 15:46:18 +0000 (15:46 +0000)] 
Do not allocate so much surplus memory in the implementation of the
replace() function. (CVS 3951)

FossilOrigin-Name: 0cf518ceebda8e7421d054813f97cc447d292344

18 years agoLimit the length of the patterns on LIKE and GLOB to avoid problems with
drh [Tue, 8 May 2007 15:34:47 +0000 (15:34 +0000)] 
Limit the length of the patterns on LIKE and GLOB to avoid problems with
deep recursion and N^2 behavior. (CVS 3950)

FossilOrigin-Name: 42e6c826998e69462462b0787d3650246d36f3b5

18 years agoIntroduce the (experimental) sqlite3_result_error_toobig() API that
drh [Tue, 8 May 2007 15:15:02 +0000 (15:15 +0000)] 
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)

FossilOrigin-Name: 17c4235c492f746867c1d2b8621043b93f8aa10e

18 years agoAdd the max_page_count pragma used to limit the maximum size of a database
drh [Tue, 8 May 2007 14:51:36 +0000 (14:51 +0000)] 
Add the max_page_count pragma used to limit the maximum size of a database
file.  Untested. (CVS 3948)

FossilOrigin-Name: b1b74f06688fd90fcaf54cf95e2e7beeb5fc1040

18 years agoFix a potential buffer overrun in the replace() function. (CVS 3947)
danielk1977 [Tue, 8 May 2007 14:39:04 +0000 (14:39 +0000)] 
Fix a potential buffer overrun in the replace() function. (CVS 3947)

FossilOrigin-Name: b0fb4a3cf6ddbc17ccd0c719b34a720d9090bc93

18 years agoAdd more code to enforce the limits specified in limits.h. (CVS 3946)
drh [Tue, 8 May 2007 13:58:26 +0000 (13:58 +0000)] 
Add more code to enforce the limits specified in limits.h. (CVS 3946)

FossilOrigin-Name: c59d436095b5258d7132a432c0cb6cd5a7990d85

18 years agoAvoid evaluating (INT_MIN/-1) with 32 bit signed numbers. It can cause SIGFPE. (CVS...
danielk1977 [Tue, 8 May 2007 13:57:34 +0000 (13:57 +0000)] 
Avoid evaluating (INT_MIN/-1) with 32 bit signed numbers. It can cause SIGFPE. (CVS 3945)

FossilOrigin-Name: 2f186e916c982cde557e0bc1b925b10e6d58f8a1

18 years agoDo not crash in the internal functions sqlite_rename_table() or sqlite_rename_trigger...
danielk1977 [Tue, 8 May 2007 12:37:45 +0000 (12:37 +0000)] 
Do not crash in the internal functions sqlite_rename_table() or sqlite_rename_trigger() if they are somehow passed unexpected input. (CVS 3944)

FossilOrigin-Name: c2f90b465e37ea49c9e44415f6461e4f636bb64f

18 years agoBegin adding code to explicitly limit the size of strings and blobs. (CVS 3943)
drh [Tue, 8 May 2007 12:12:16 +0000 (12:12 +0000)] 
Begin adding code to explicitly limit the size of strings and blobs. (CVS 3943)

FossilOrigin-Name: 031a5915b68ec6827fee38b8b9dc74a9e0e09302

18 years agoFix a bug in the test logic introduced by check-in (3928). (CVS 3942)
drh [Tue, 8 May 2007 11:27:15 +0000 (11:27 +0000)] 
Fix a bug in the test logic introduced by check-in (3928). (CVS 3942)

FossilOrigin-Name: 47d1678d2d795196e51b7f0f185198f2b338636b

18 years agoBegin implementing a new system of upper bounds on the capabilities
drh [Tue, 8 May 2007 01:08:49 +0000 (01:08 +0000)] 
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)

FossilOrigin-Name: 93b623b232a43f78d2c90bfa2389dd5b28ad7280

18 years agoFix an NULL deref in the randomblob() function following a malloc failure. (CVS 3940)
drh [Mon, 7 May 2007 19:31:15 +0000 (19:31 +0000)] 
Fix an NULL deref in the randomblob() function following a malloc failure. (CVS 3940)

FossilOrigin-Name: 011e7db253f9a60c19977215eab1687930f15637

18 years agoAdd a version of the LIKE operator to the icu extension. Requires optimisation. ...
danielk1977 [Mon, 7 May 2007 16:58:02 +0000 (16:58 +0000)] 
Add a version of the LIKE operator to the icu extension. Requires optimisation. (CVS 3939)

FossilOrigin-Name: 3e96105c1f084a4ab4dad4de6f4759e43fc497f7

18 years agoChange the name of create_collation_x() to create_collation_v2(). Also add some tests...
danielk1977 [Mon, 7 May 2007 14:58:53 +0000 (14:58 +0000)] 
Change the name of create_collation_x() to create_collation_v2(). Also add some tests for it. (CVS 3938)

FossilOrigin-Name: ddc4e4797ff902692c4f0d86ec5f4e94cc7f0741

18 years agoFix typo in Makefile.in. Ticket #2343 (CVS 3937)
drh [Mon, 7 May 2007 13:11:10 +0000 (13:11 +0000)] 
Fix typo in Makefile.in.  Ticket #2343 (CVS 3937)

FossilOrigin-Name: db51f59a7bb7530f919858e2c51057839f6c9f4d