drh
1f12f9aa30
Remove a debugging btree_breakpoint from vtab1.test. (CVS 4267)
...
FossilOrigin-Name: 6cc8641ed2fbfc32d418ce153f2819052f230be2
2007-08-22 02:57:16 +00:00
drh
27641703cc
A complete run of quick.test with mutex debugging enabled. (CVS 4266)
...
FossilOrigin-Name: 783e07d561d1f5509de9475f3b9f38315f247002
2007-08-22 02:56:42 +00:00
drh
86f8c197dd
Reenable the memory management logic. The quick.test script now runs with
...
SQLITE_MEMDEBUG and SQLITE_ENABLE_MEMORY_MANAGEMENT. 7 minor errors. (CVS 4265)
FossilOrigin-Name: 1914044b8832041f13b20ead613bd13725425d7a
2007-08-22 00:39:19 +00:00
danielk1977
7a2b1eeb7f
Delay opening temporary pager files until they are first written. (CVS 4260)
...
FossilOrigin-Name: 3fb97a63ef70662abdba18ce8b480e6b0badcfb1
2007-08-21 14:27:01 +00:00
danielk1977
46abae817e
Add the tests that go with the previous commit. (CVS 4258)
...
FossilOrigin-Name: a87f32e13e91250ab4d9366d2e9a3a7024a12fb9
2007-08-21 13:30:07 +00:00
shess
7e3c77df0d
Oops - a random fts2 test I had abandoned slipped into the fts3 batch. (CVS 4252)
...
FossilOrigin-Name: 709f2aa18a4802a7ca6638c00b2b99440b4a3191
2007-08-20 17:52:59 +00:00
shess
db00b6aebb
Replicate the fts2*.test files as fts3a*.test, and convert fts2 to
...
fts3 in the text of the files. (CVS 4251)
FossilOrigin-Name: 24739f148e7687532fd04794a041aade8626c630
2007-08-20 17:38:42 +00:00
danielk1977
967a4a1c96
Changes to crash-test io backend (test6.c) so that it works with the sqlite3_vfs interface. (CVS 4247)
...
FossilOrigin-Name: 40f66ada815fa1043d24c9cd6d898e1797e7044a
2007-08-20 14:23:44 +00:00
danielk1977
fee2d25a70
Further progress on migration to sqlite3_vfs. (CVS 4242)
...
FossilOrigin-Name: a258c4ec240f96bccfe493e98d0827ec7dd12e67
2007-08-18 10:59:19 +00:00
drh
dce8bdb8c0
Remove the thread specific data subsystem from the unix build. Remove
...
legacy cruft from sqliteInt.h. Use the new mutex subsystem in the PRNG. (CVS 4237)
FossilOrigin-Name: 3d60c14a32955b69e714a73372924d421899f83b
2007-08-16 13:01:44 +00:00
danielk1977
9fb3ecbc5b
Add a test for malloc() failure when compiling a trigger step of the form "INSERT INTO ... SELECT ...". Currently causes a segfault. (CVS 4232)
...
FossilOrigin-Name: 161643a694458e76849cd663f277892ae7c6b729
2007-08-16 04:39:01 +00:00
danielk1977
ea4d9e2dc8
Invalidate prepared SQL statements when rolling back a transaction that includes schema modifications. (CVS 4216)
...
FossilOrigin-Name: a07143fc0578a5fc7c891e94616ee0b353674d6e
2007-08-13 15:28:33 +00:00
drh
a7fba4b055
Disable tests that require 80-bit long doubles when the host only
...
provides 64-bit long doubles. Ticket #2570 . (CVS 4215)
FossilOrigin-Name: 4f4f8ef416394b7e54e8894f7a0d067d64636fc4
2007-08-13 15:18:27 +00:00
drh
b403574a2d
Fix the test labels in mallocC.test. (CVS 4212)
...
FossilOrigin-Name: 7d4cdff444b98b76a34bd85d0a43cda28e7dffe4
2007-08-13 12:58:18 +00:00
drh
b3226e857c
Add a new test cases for a problem with malloc failure during the parsing
...
of CREATE TABLE statements in autovacuum mode. (CVS 4211)
FossilOrigin-Name: be50387e658a9a73e12b07ca89ae75e871489f16
2007-08-13 12:39:03 +00:00
drh
3aefabaf94
Updates to test scripts for better support of soft-heap-limit testing. (CVS 4209)
...
FossilOrigin-Name: 990f621f2247f1636e895dcf51fea1e08f202d31
2007-08-12 20:07:58 +00:00
shess
9fa502205d
Convert fts2 to use sqlite3_prepare_v2() to prevent certain logic
...
errors around SQLITE_SCHEMA handling. This also allows
sql_step_statement() and sql_step_leaf_statement() to be replaced with
sqlite3_step().
Also fix a logic error in flushPendingTerms() which was clearing the
term table in case of error. This was wrong in the face of
SQLITE_SCHEMA. Even though the change to sqlite3_prepare_v2() should
cause us not to see SQLITE_SCHEMA any longer, it was still a logic
error... (CVS 4205)
FossilOrigin-Name: 16730cb137eaf576b87cdc17913564c9c5c0ed82
2007-08-10 23:47:03 +00:00
drh
9a47736e47
Add a test case to reproduce the database corruption problem reported
...
by ticket #2565 . (CVS 4204)
FossilOrigin-Name: f267ce809424ec2cc167bf9750989413a8f925c1
2007-08-10 19:46:43 +00:00
drh
b771228e9d
Update tests so that they work properly even if the soft-heap-limit
...
is set low. (CVS 4203)
FossilOrigin-Name: e01eb99edfa3390e97847a210532847cc64803da
2007-08-10 19:46:13 +00:00
drh
3a7fb7c459
Add the --soft-heap-limit=N option to the test scripts. Set this value to
...
enforce a soft heap limit across all tests. This changes exposes several
new bugs. (CVS 4202)
FossilOrigin-Name: 8be845981654d2a846c95c699395af222b6c3b43
2007-08-10 16:41:08 +00:00
danielk1977
d42f8fdc7a
Avoid reloading the schema when an expired statement is finalized or reset.
...
This is only necessary when the in-memory schema does not match the file-system schema. (CVS 4194)
FossilOrigin-Name: 61de5b52daa0a862a04147dbaf71fafb696052f6
2007-08-03 07:33:08 +00:00
danielk1977
eb5453d122
Fix a bug with explicit collation sequences attached to a column reference expression that is on the right-hand-side of a binary comparison operator. (CVS 4187)
...
FossilOrigin-Name: 7b69968618bfc19f0c1ab25c5f16c9fdff5af094
2007-07-30 14:40:48 +00:00
danielk1977
0c3f607c21
Test that an explicit collation sequence overrides an implicit one attached to a 'new' reference (it does). No code changes. (CVS 4186)
...
FossilOrigin-Name: a443b07ed659223401ee7acaf613d0b04f33fc89
2007-07-26 10:16:30 +00:00
danielk1977
e0fc52618c
Fix two obscure memory leaks that can follow a malloc() failure in sqlite3_set_auxdata(). Ticket #2534 . (CVS 4185)
...
FossilOrigin-Name: b88af1827bec3e8a32450dd0a073ffc3b12a5939
2007-07-26 06:50:05 +00:00
shess
a2d04e9a0f
Implement xRename() for fts1 so that it is possible to rename fts1 tables.
...
See http://www.sqlite.org/cvstrac/chngview?cn=4143 (CVS 4184)
FossilOrigin-Name: febf75f022b9414fc456ddf274d301f95d61e1b8
2007-07-25 00:56:09 +00:00
shess
443ecd036d
Replicates http://www.sqlite.org/cvstrac/chngview?cn=4151 which
...
modified fts2:
Modify handling of SQLITE_SCHEMA in fts2 code. An SQLITE_SCHEMA error
may cause SQLite to reload the internal schema, deleting and
recreating v-table objects. So the sqlite3_vtab structure can be
deleted out from under a v-table implementation. (CVS 4183)
FossilOrigin-Name: f9020cffda02923ef45979bb447ec2e232086ad5
2007-07-25 00:38:05 +00:00
shess
9f8a4b43ef
Apply change 4095 to fts1. Fix snippet generation when the left-most
...
column of an fts table is used in the MATCH clause. Fix for ticket
#2429 . (CVS 4181)
FossilOrigin-Name: c2ba3cc0f7ac9f5dfe5ffb554f9a1cd96b28335a
2007-07-25 00:25:20 +00:00
drh
36379e973b
Detect nested aggregate functions even if the inner aggregate function is
...
aliased using an AS clause. Ticket #2526 . (CVS 4179)
FossilOrigin-Name: de000280c6d0b13440d2450eb6ba42073ad46c56
2007-07-23 22:51:15 +00:00
drh
2e06c67c08
The REPLACE conflict resolution falls back to FAIL when on a
...
CHECK constraint violation. Ticket #2525 . (CVS 4178)
FossilOrigin-Name: b213614abff90c65cc7228c87f4973150e8a9679
2007-07-23 19:39:46 +00:00
aswift
f6f426be4e
Work around an AFP file system byte-range locking error caused by opening and closing a second file descriptor on the database file as RDWR which clears the exclusive byte-range lock and results in an fcntl error when the AFP locking code attempts to clear it afterwards. This error is caused by the test harness and isn't a flaw in the sqlite or its implementation of AFP file locking. (CVS 4172)
...
FossilOrigin-Name: b2ba3e81fb1015d6f979a490e00a45fb7d5e1a9a
2007-07-20 20:25:37 +00:00
drh
3260548b53
Disable tests that use the progress handler when the progress handler
...
is disabled at compile-time. Followup to ticket #2497 . (CVS 4164)
FossilOrigin-Name: cbc56fd4ec60d08a13a3aa181d044e726c49ef3c
2007-07-19 22:30:19 +00:00
drh
f85953edd0
Preliminary fix for ticket #2518 . Make sure the VACUUM command
...
increments the change counter. (CVS 4163)
FossilOrigin-Name: 75263797e29af437290c09e85cd5fd2aea08694f
2007-07-19 16:35:17 +00:00
drh
309be02483
Get the min/max optimization working with descending indices. Ticket #2514 . (CVS 4161)
...
FossilOrigin-Name: a80a3c9d0a5e0a8a3d67bd841e2076893fd5e9aa
2007-07-18 18:17:11 +00:00
drh
1ef2ca0fd1
Add an extra integrity_check to the transaction test script. (CVS 4158)
...
FossilOrigin-Name: 5ea43b2db1f0263c5f0ab76351bc9ca940d1428a
2007-07-13 10:36:47 +00:00
danielk1977
612642de32
Fix for #2497 . Set the database error code to the return value of sqlite3_step(). (CVS 4155)
...
FossilOrigin-Name: b01fda5f50e40b6122faf169c44486bde7ffe16c
2007-07-12 13:18:05 +00:00
danielk1977
ab9749ebb9
Modify handling of SQLITE_SCHEMA in fts2 code. An SQLITE_SCHEMA error may cause SQLite to reload the internal schema, deleting and recreating v-table objects. So the sqlite3_vtab structure can be deleted out from under a v-table implementation. (CVS 4151)
...
FossilOrigin-Name: dee1a0fd28e8341af6523ab0c5628b671d7d2811
2007-07-02 10:16:49 +00:00
drh
6bd00bfda7
Add a test case to verify that ticket #2470 has been fixed. (CVS 4145)
...
FossilOrigin-Name: b3f442698e01ad55666703025c4457445f2efc9b
2007-06-27 23:52:18 +00:00
danielk1977
5c55886059
Test error handling when renaming fts2 tables. (CVS 4144)
...
FossilOrigin-Name: 57840eba6a4380a0b71dc9514cdda41e2c455bb0
2007-06-27 17:09:24 +00:00
danielk1977
c033b64276
Implement xRename() for fts2 so that it is possible to rename fts2 tables. (CVS 4143)
...
FossilOrigin-Name: 488474fde753c5a7a14ed8f2fad7f16efd236491
2007-06-27 16:26:07 +00:00
danielk1977
182c4ba979
Allow ALTER TABLE on virtual tables. (CVS 4142)
...
FossilOrigin-Name: 37d1f9f37ea9d2e8a4dbe0ec67c0d6eb7fcc5f3f
2007-06-27 15:53:34 +00:00
drh
5db828180c
Make sure auto_vacuum is turned off before running the tests in pragma2.test. (CVS 4138)
...
FossilOrigin-Name: fc85c8aa160cc46419b9ce83d9eb47970c67118a
2007-06-27 10:20:00 +00:00
drh
0e8003dff6
Set the connection error code when sqlite3_blob_read() or
...
sqlite3_blob_write() fail. Ticket #2464 . (CVS 4137)
FossilOrigin-Name: 3bd990be3cb8a74be9eaa8d5710852be6733cb58
2007-06-27 00:36:13 +00:00
drh
99bcd30bfb
Fix a test case so that it (hopefully) works on x86-64. Ticket #2465 . (CVS 4134)
...
FossilOrigin-Name: 3daf7cae18ae2ee6404f770e69e4cd0c715615e5
2007-06-26 22:42:56 +00:00
danielk1977
42d4ef2acc
Fix for #2444 : Avoid SIGFPE on 64-bit platforms when evaluating expressions like ((1<<63)/-1). (CVS 4130)
...
FossilOrigin-Name: c6dfd9e43449b0b3528281d9e2e4971c6ba86ab5
2007-06-26 11:13:25 +00:00
danielk1977
034ca14f81
Allow virtual tables to mark columns as 'hidden'. Hidden columns do not show
...
up in "*" expansion, the implicit column list of an INSERT statement, or the results of a "PRAGMA table_info" statement. (CVS 4127)
FossilOrigin-Name: 7f887a6a00fdd6efc3740bd8a1731bb1abde087c
2007-06-26 10:38:54 +00:00
drh
217f49093c
Rework the string to integer conversion logic to address tickets
...
#2344 and #2454 . (CVS 4123)
FossilOrigin-Name: 5b3a490649ab88c168e3e5bf2efbc7f61b1b954d
2007-06-25 17:28:00 +00:00
danielk1977
c9cf6e3d31
Fix for #2445 . A bug in the lookupName() logic that could cause a crash when a WHERE clause used an alias to refer to an expression in the result-set of the SELECT, and that expression was itself a reference to a table column. (CVS 4122)
...
FossilOrigin-Name: 044ca1c72a8f4632dc2e6a94690d164d3560ee38
2007-06-25 16:29:33 +00:00
danielk1977
46760820a1
Add a test that calls fts2_tokenizer() with an argument set via C code. (CVS 4118)
...
FossilOrigin-Name: fbcf2d75cd2b88d175c122477aa483f0771870e5
2007-06-25 12:05:40 +00:00
danielk1977
f86643b32f
Add some tests for the fts2 icu tokenizer. (CVS 4117)
...
FossilOrigin-Name: b79ced3e0a26b0db13613073c847c2d2ba7e174e
2007-06-25 11:24:38 +00:00
danielk1977
27b1f95f08
Make the auto_vacuum mode peristent in all cases. (CVS 4115)
...
FossilOrigin-Name: 5b0408ddd0f1c825f402d0f5a3088a61b5ecd2c3
2007-06-25 08:16:58 +00:00