Commit Graph

3933 Commits

Author SHA1 Message Date
drh
4a919118d3 A new approach for UTF-8 translation. (CVS 4004)
FossilOrigin-Name: 6c8ad2790eaede90b3f1ef62614e667178b2a8c4
2007-05-15 11:55:09 +00:00
drh
eab7f3fe8d 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
2007-05-15 09:00:14 +00:00
danielk1977
1ee506d792 Fix some test script errors in fuzz.test. (CVS 4002)
FossilOrigin-Name: 51eeae7b7ad5a0fbdd9d4418120dbdb6cd577cd5
2007-05-15 07:14:32 +00:00
danielk1977
15d7982ad8 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
2007-05-15 07:00:34 +00:00
drh
4e5dd85135 Fix problems in ALTER TABLE that occur when column or table names are
invalid UTF encodings. (CVS 4000)

FossilOrigin-Name: 9ff382f4584ff685a78b39f24424319709efb382
2007-05-15 03:56:49 +00:00
drh
e279195400 Fix a typo in a comment. Ticket #2359. (CVS 3999)
FossilOrigin-Name: 1fbbc108a9e7ad1dc22c08ee990e2b6b949784eb
2007-05-15 02:45:18 +00:00
drh
eaad32b1df Fix a bug in sqlite3_mprintf() which could have caused a buffer
overrun if malloc() failed. (CVS 3998)

FossilOrigin-Name: 5af49a57d4866be21c0206f34584bcc63adc1315
2007-05-15 02:34:09 +00:00
drh
f764e6fc3d The built-in substr() function applied to a BLOB counts bytes, not characters. (CVS 3997)
FossilOrigin-Name: 75d573080d03ee48fe88710f70c6875ff9cae19c
2007-05-15 01:13:47 +00:00
drh
2a9abf61c7 Make sure the parser aborts quickly following a syntax error. (CVS 3996)
FossilOrigin-Name: d07cdd3c096c120d104ae13f7932c0a955324517
2007-05-15 00:09:13 +00:00
danielk1977
a670b22641 Fix a problem with ORDER BY and compound SELECT queries. (CVS 3995)
FossilOrigin-Name: af76928fc5891f9a222ac0c39f8b443a9707b9e3
2007-05-14 16:50:48 +00:00
danielk1977
fa2bb6da24 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
2007-05-14 15:49:43 +00:00
danielk1977
1e4eaeb515 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
2007-05-14 14:04:59 +00:00
drh
8fea1285f0 In the windows driver, reacquire the shared lock if an exclusive lock
fails.  Ticket #2354. (CVS 3992)

FossilOrigin-Name: fc489b53829aa25bc10cc47d679c81d95c746abf
2007-05-14 12:12:11 +00:00
drh
4f07e5fbdf Remove terms with operator TK_AS from the expression tree. Ticket #2356. (CVS 3991)
FossilOrigin-Name: 5627ff74be9242418434a06fe5c104d1f9128cab
2007-05-14 11:34:46 +00:00
drh
84f31128b2 Make REINDEX robust in the face of malloc() errors. (CVS 3990)
FossilOrigin-Name: dbe417745d3d4ed875715ad7083d7345d1b6a56f
2007-05-12 15:00:14 +00:00
drh
cf1be45fe2 Make the ANALYZE command robust in the face of malloc() failures. (CVS 3989)
FossilOrigin-Name: c08658e1f8598941ebddddb98942b98cfcb86e7a
2007-05-12 12:08:51 +00:00
danielk1977
39c9604a02 Fix another variant of the "IN (...)" b-tree problem. (CVS 3988)
FossilOrigin-Name: 260338c4b2b18c9f4da8bc7fe3eda306dcaa4e38
2007-05-12 10:41:47 +00:00
danielk1977
4aeff62ee0 Fix an obscure b-tree bug that applied to transient trees used for IN(...) expressions. (CVS 3987)
FossilOrigin-Name: 96c7232f8b208cd1c50063f7946bb6dbc386abd6
2007-05-12 09:30:47 +00:00
danielk1977
cdbd8eff21 Bugfixes for assert() failures found by fuzz.test. (CVS 3986)
FossilOrigin-Name: 2e80736d57fde55b112864d8b198a9a2fe0eaa38
2007-05-12 06:11:12 +00:00
danielk1977
1f7c83e286 Check in some changes to fuzz.test. Still failing. (CVS 3985)
FossilOrigin-Name: 6f346a6be9803b84260509352315f8fa1e820490
2007-05-11 16:58:03 +00:00
drh
6e736838bf Avoid multiple storage class specifiers ("static extern") in the amalagmation. (CVS 3984)
FossilOrigin-Name: 2f70159b1d6ded4a1ac446faa3baf7269f37703f
2007-05-11 12:30:03 +00:00
danielk1977
bcfc4bc769 Expand the expressions tested by fuzz.test. Fix for (CAST zeroblob() AS text). (CVS 3983)
FossilOrigin-Name: 4e1bb41f302c13095aa9c638e59ae11417f49682
2007-05-11 10:10:33 +00:00
danielk1977
d908f5ab7f Fix a problem with inserting zeroblob() into an indexed column. (CVS 3982)
FossilOrigin-Name: ccef5d2daaa5a88dd3f23666f022296ef42f9d73
2007-05-11 07:08:28 +00:00
drh
4e05c83bc3 Additional parsing bugs fixed. (CVS 3981)
FossilOrigin-Name: d12a8924c6083cdff14990b4fd036ca386c2e34a
2007-05-11 01:44:50 +00:00
drh
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)

FossilOrigin-Name: d146f01a02579339c5dc86bbe59f246bd6c05c63
2007-05-11 00:20:08 +00:00
drh
e718efe113 When converting literal BLOBs to text using the encoding of the main
database.  Ticket #2349. (CVS 3975)

FossilOrigin-Name: a57afaff424448ffed8f2344e5eb461f503bfb6e
2007-05-10 21:14:03 +00:00
danielk1977
639f45ff06 Simplify failing case in fuzz.test. (CVS 3974)
FossilOrigin-Name: a54c74990caf22c0008a7029e24594e83048ffbc
2007-05-10 17:38:57 +00:00
danielk1977
f75232f748 Add cases to fuzz.test. Some tests in this file fail at the moment. (CVS 3973)
FossilOrigin-Name: 1e8fcb3fbed7beb8bb1370953ecf3d4b9db01ede
2007-05-10 17:32:48 +00:00
drh
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)

FossilOrigin-Name: ffe615a71107a38b6f60c7baf4284a5b0aecdc22
2007-05-10 17:23:11 +00:00
danielk1977
def0fec8e0 Add new test file fuzz.test, to test SQLite with fuzzily generated SQL. (CVS 3971)
FossilOrigin-Name: 1e9e6fe75d01d8cf4e1a23505c45f28491f1e902
2007-05-10 15:37:52 +00:00
drh
85892bde6f Fix a C++ism in func.c. (CVS 3970)
FossilOrigin-Name: 9c0050a10c6bea75ada902c16eb28eb3cf864718
2007-05-10 13:23:22 +00:00
danielk1977
89a43bc588 Another test for overflow in strftime(). It was not broken. (CVS 3969)
FossilOrigin-Name: 5800d0327ebc122e679ef860b58098b3c08eb709
2007-05-10 11:43:53 +00:00
danielk1977
fc9760654a Add code to enforce the MAX_EXPR_DEPTH limit. (CVS 3968)
FossilOrigin-Name: 2c9c94a24d52a1c9f5d1b32cbdff794a2dd74126
2007-05-10 10:46:56 +00:00
drh
e305f43f17 Make sure compound queries inside a subquery only return a single result
column.  Ticket #2347. (CVS 3967)

FossilOrigin-Name: 66954bdd81dabfb60306de8480b5477a4acb1d9e
2007-05-09 22:56:39 +00:00
drh
6fa51035c3 Fix a typo in a comment. Ticket #2348. (CVS 3966)
FossilOrigin-Name: c0dbac46301039246afd4bebb71dd8184fc5c0c7
2007-05-09 20:35:31 +00:00
drh
b63f274589 Fix a problem with strange expressions being fed to an ATTACH or DETACH
statement. (CVS 3965)

FossilOrigin-Name: 0c91dc9ee0c5d441a7789b631476515260cb887f
2007-05-09 20:31:29 +00:00
danielk1977
de3bea7ba4 Fix an obscure cache corruption that could occur after an SQLITE_FULL error. (CVS 3964)
FossilOrigin-Name: e8e879aca67dee959bab42627028964c474da72f
2007-05-09 15:56:39 +00:00
danielk1977
832b2664e6 Add further test cases for compile time limits. (CVS 3963)
FossilOrigin-Name: 9bf2c594a48a4661700f0833562ee2b3ff7b761c
2007-05-09 11:37:22 +00:00
danielk1977
b56fe1ff27 Fix enforcement of the LIKE_PATTERN limit. (CVS 3962)
FossilOrigin-Name: 8819617b7cf7ccd64bf6bb4ba208f37126964ec2
2007-05-09 08:24:44 +00:00
drh
37cd66a6a0 Remove a keyword from the header comment in date.c (CVS 3961)
FossilOrigin-Name: 03349ec0be208fd8701d94515a2ed13129cb8422
2007-05-08 21:56:00 +00:00
drh
87cc3b3180 Remove compiler warnings in the amalgamation. (CVS 3960)
FossilOrigin-Name: c5754530c6b1a8151c558f33d27fed70c95a988b
2007-05-08 21:45:27 +00:00
drh
cf1023c08d Disable tracing pragmas when not in debug mode. This eliminates an external
dependency on stdout. (CVS 3959)

FossilOrigin-Name: 5a0fe9854849bf3f04008a5dbb7a74e7d0d815ca
2007-05-08 20:59:49 +00:00
drh
ee85813c94 Fix the amalgamation generator so that all non-API functions have file scope. (CVS 3958)
FossilOrigin-Name: e9f56ead0514f3eac75807ea710c1f035b8add4f
2007-05-08 20:37:38 +00:00
drh
52d19f65e3 Update the release builder script. (CVS 3957)
FossilOrigin-Name: 21299b917812920c70001c2d3d9b65f66eca6b24
2007-05-08 18:30:36 +00:00
danielk1977
b4fc679463 Fix a null-pointer dereference that follows a malloc() failure introduced in (3954). (CVS 3956)
FossilOrigin-Name: 251ba1981e32fb80818965ffe1ef455069e88abd
2007-05-08 18:04:46 +00:00
drh
84708bc93b Update the amalgamation builder for the latest changes. (CVS 3955)
FossilOrigin-Name: becd64d3615fc5738da4c70610d8849e0a70bed8
2007-05-08 17:59:42 +00:00
danielk1977
7a15a4beef Add a few more tests to sqllimit1.test. (CVS 3954)
FossilOrigin-Name: eeee6b71e5643511320cbe15bafa170cfd02877f
2007-05-08 17:54:43 +00:00
danielk1977
428de1c03a Add a test case that uses a trigger to insert many rows to sqllimits1.test. (CVS 3953)
FossilOrigin-Name: 6368222558d00f968b49f862bfe672573e86fbcf
2007-05-08 16:13:45 +00:00
danielk1977
b0ab63cd8e Add new test file sqllimits1.test. (CVS 3952)
FossilOrigin-Name: c8974603976ebc02edbc9ab271e87e57f8eb365e
2007-05-08 15:59:05 +00:00
drh
2e6400ba9e Do not allocate so much surplus memory in the implementation of the
replace() function. (CVS 3951)

FossilOrigin-Name: 0cf518ceebda8e7421d054813f97cc447d292344
2007-05-08 15:46:18 +00:00