danielk1977
9b87d7b904
Do not ignore alias "a" in a query of the form "SELECT ... FROM (...) AS a" Fix for #3935 . Also expand upon (6751) to fix some similar obscure memory leaks. (CVS 6831)
...
FossilOrigin-Name: 42f9d1e56483a59353bff57d75f09ed67e1d9c3c
2009-07-01 14:56:39 +00:00
danielk1977
96d48e963a
Cause incremental-blob read/write operations lock shared-cache tables in the same way as normal SQL read/writes. Add complex assert statements to make sure tehe correct shared-cache locks are held when accessing the database. Eliminate some redundant checks from btree.c. (CVS 6830)
...
FossilOrigin-Name: f17ef37897da9bcaf20b5acdce6840522c0a0b16
2009-06-29 06:00:37 +00:00
drh
9ed7a9953e
Remove the priorNewRowid field from the sqlite3 structure. Use the
...
last_insert_rowid as the initial value when searching for a new random
rowid in the OP_NewRowid opcode. (CVS 6824)
FossilOrigin-Name: 96729b2d499f029bfaec6648a592e8ec697d9521
2009-06-26 15:14:55 +00:00
shane
389ae2c52d
Skip a couple tests requiring working 64bit int support on platforms without that support. Test code change only. (CVS 6823)
...
FossilOrigin-Name: d8c8145c9d28d014eb9218b3f1312b957ccc72b7
2009-06-26 14:17:47 +00:00
danielk1977
31559aee71
Fix a test script problem in exclusive.test. (CVS 6821)
...
FossilOrigin-Name: a52ef5a4216f26c617bd1471cd19f3da2a6d2c4c
2009-06-26 12:30:39 +00:00
danielk1977
6f4c73eedb
Avoid writing the 8-byte journal-header magic until the journal-header is synced. In persistent journal-mode, this prevents any old content that follows an unsynced journal-header from being interpreted as part of the rollback journal. (CVS 6817)
...
FossilOrigin-Name: a5ecffcf025da2fcb241e83c7bebc1095a3b51d6
2009-06-26 07:12:06 +00:00
drh
4c8555fd47
Improved handling of oversize string and blob errors. Other simplifications
...
in support of full coverage testing. (CVS 6813)
FossilOrigin-Name: 8b34076668f0f712de0fbbe9bc2e68d42797e1b2
2009-06-25 01:47:11 +00:00
drh
c3927537d8
Disable the new malloc-37 test when locking_mode==exclusive. The test
...
basically works, but sometimes reports "database is locked" instead of
"out of memory" and that messes up the error reporting. (CVS 6811)
FossilOrigin-Name: 3b8f9dec24d06865455a75587bbfc199c19c6215
2009-06-24 13:13:45 +00:00
drh
0b9f50d8aa
Enhance autoincrement so that it works with triggers that also do
...
autoincrement inserts, even multiple inserts into the same table.
Ticket #3928 (CVS 6807)
FossilOrigin-Name: 1330993de8eae7baeec24100216158063c9bdc19
2009-06-23 20:28:53 +00:00
danielk1977
1c84ac596d
Add a test to verify that #3929 is fixed. (CVS 6801)
...
FossilOrigin-Name: 16c1ae9bde895d39c4eaababbd1dbf9e3b9cb653
2009-06-23 11:53:09 +00:00
danielk1977
3582c8f7ae
If an OOM error occurs just after obtaining a shared lock on the database file, release the lock before returning. (CVS 6795)
...
FossilOrigin-Name: 971a9650f66f079630489c34e40003eee97d1683
2009-06-22 05:43:24 +00:00
drh
9eb8cbe5c0
Do now allow a COMMIT to occur while even a single write operating is
...
in progress. (CVS 6790)
FossilOrigin-Name: 605520ec04061e389226fbec59f7aedf674b3c4e
2009-06-19 22:23:41 +00:00
drh
8bfd719065
Make sure group_concat() ignores initial NULL values. (CVS 6787)
...
FossilOrigin-Name: 90c3b23ccac8a9e7fc1cc831e43888e4e43badc9
2009-06-19 16:44:41 +00:00
drh
ccf6d0934d
Update the filefmt.test test script to conform to the previous check-in. (CVS 6781)
...
FossilOrigin-Name: 40a40e81b3ad80114422d6a48146e5fb27e2551d
2009-06-18 11:34:42 +00:00
drh
3a9cf17d7c
Fix a problem in vdbe.c that could cause a double-free of memory if the
...
SQLITE_LIMIT_LENGTH is changed after a statement is prepared but before
it is run. Also remove debugging statements from tkt3841.test. (CVS 6777)
FossilOrigin-Name: 3d7327fd6af983d5ce9bc9a2ba869b23c44cc8e6
2009-06-17 21:42:33 +00:00
drh
94c3a2b16f
Use caution to avoid integer overflow when doing real to integer affinity
...
operations. Ticket #3922 . (CVS 6776)
FossilOrigin-Name: 392559465d499f491907ef7f42d37a1a6c699511
2009-06-17 16:20:04 +00:00
danielk1977
e576521d96
Fix for #3918 . Also, fix the TRACE macros in balance_nonroot(). (CVS 6772)
...
FossilOrigin-Name: 368e44ec2e648b04f3b817f82586ccd864e60c89
2009-06-17 11:13:28 +00:00
drh
9da742f969
Changes sqlite3_prepare_v2() (and related routines) so that if it fails due
...
to a missing table and the schema is out of date, it retries once before
returning SQLITE_SCHEMA. Other changes to prepare.c to facilitate coverage
testing. (CVS 6769)
FossilOrigin-Name: 256ec3c6af41c2324db82e4deb54edbba5b581e8
2009-06-16 17:49:36 +00:00
drh
994704d1cb
Enable the SQLITE_LIMIT_FUNCTION_ARG limiter. (CVS 6753)
...
FossilOrigin-Name: a17e3317176772446abdc8ebe6fb6f0d3b7ac018
2009-06-12 12:04:16 +00:00
drh
c3a8402a94
Make sure nested queries with USING clauses do not leak memory.
...
Preliminary fix for ticket #3911 . (CVS 6750)
FossilOrigin-Name: bd341a103c25395b1189d05edebfe4af8a943941
2009-06-12 03:27:26 +00:00
drh
aed2460877
Honor the SQLITE_OPEN_READONLY flag even on a :memory: or temporary database,
...
even though such a database is pointless. Ticket #3908 . (CVS 6748)
FossilOrigin-Name: 73ba841ac1ed39fb09b3917bafe0ce349e88eb04
2009-06-11 17:32:45 +00:00
drh
5901b571d4
Do not let the reverse_unordered_selects pragma force the use of an index that
...
would not otherwise be used. Ticket #3904 .
Also: remove an test which is always true. (CVS 6745)
FossilOrigin-Name: 78a391dca05dbe3ad1d8124b80b31bc2ce75778f
2009-06-10 19:33:28 +00:00
danielk1977
b46d004548
Change savepoint4.test to limit database growth. Otherwise the test can take a very long time to run, depending on the prng. (CVS 6737)
...
FossilOrigin-Name: ed1d4f47ee9a2bcafdee92ee6bfcb2b0d1758f76
2009-06-09 15:25:33 +00:00
drh
3b2a3fa42e
Enable cell overflow checking in sqlite3BtreeInitPage() using the
...
compile-time option SQLITE_ENABLE_OVERSIZE_CELL_CHECK. Change the tests
so that they recognize different error messages depending on the setting
of this macro. (CVS 6735)
FossilOrigin-Name: 56bff6eb2fc5f0afbd96afc986671ec744bd40e1
2009-06-09 13:42:24 +00:00
drh
c4ac22e905
Disable the LIKE optimization if the affinity of the LHS column is
...
not TEXT. Ticket #3901 . (CVS 6727)
FossilOrigin-Name: a255c645c46ae03b65f862858fe57e462076e1fc
2009-06-07 23:45:10 +00:00
drh
49008596ed
Update the error message on one of the corruption tests to account for the fact
...
that we are finding the corruption sooner. (CVS 6726)
FossilOrigin-Name: ba9848e7b89df1fb6bf6db2b9d66cd3ffce375df
2009-06-06 19:21:13 +00:00
danielk1977
08746af43b
Fix an error in the malloc.test test script causing a small buffer overread. (CVS 6725)
...
FossilOrigin-Name: 4d129bee696f3a537f7ea5501a387012fc08c27e
2009-06-06 16:08:22 +00:00
drh
dda70fe38e
Remove leftover "breakpoint" commands from test scripts. Also remove blank
...
lines at the end of scripts. (CVS 6721)
FossilOrigin-Name: 1fef16ec2b89981770cf44f606a420fbe031a7a4
2009-06-05 17:09:11 +00:00
drh
d46b6c23d3
Fix an assertion fault in balance_quick() that occurs when an interior
...
btree node has zero cells due to database corruption. Also update the
corrupt7.test result vectors for a couple of cases where the error report
on database corruption changed due to earlier detection. (CVS 6717)
FossilOrigin-Name: 1335e4440f5a3d24ce9ce187e0e23fc9b166ca98
2009-06-04 17:02:51 +00:00
shane
e71169ba30
Minor updates to comments in test scripts. (CVS 6714)
...
FossilOrigin-Name: 453ff88f73a01a54ff464563effdb63014b1972c
2009-06-04 02:47:03 +00:00
shane
bbc795fdaf
Minor tweak to test script to ensure every byte in file touched at least once. (CVS 6713)
...
FossilOrigin-Name: bc6c2d894b711361808a19b673803186d3a28369
2009-06-04 02:46:19 +00:00
danielk1977
93c829c110
Add corruptD.test, a container for testing the "cell overflow" problem. Also shuffle a small amount of code in BtreeInitPage() to check that the page header pointer to the start of the cell offset array is set to a sane value. (CVS 6710)
...
FossilOrigin-Name: 7fa5d3cb0fa05f7d901bcc139c2c037ce5944caa
2009-06-03 17:26:17 +00:00
drh
e4a96be62b
Add a test case for ticket #3893 and ticket #3894 . (CVS 6705)
...
FossilOrigin-Name: 2472f6db95cd537a908bdbbbbc41bad2bd987b2f
2009-06-02 15:47:37 +00:00
shane
739a277031
Fix a couple of Windows only issues with test scripts. (CVS 6698)
...
FossilOrigin-Name: 0f6bc5e1ba6937b36df08ed3b5903839389021bb
2009-06-01 16:42:17 +00:00
drh
fd773cf970
Refinements in expression handling logic that have resulted from recent
...
structural testing. (CVS 6690)
FossilOrigin-Name: bd89f2c29b00e6b473f30c2e929d2f626721ad92
2009-05-29 14:39:07 +00:00
drh
33e619fc1c
Additional refinements to Expr handling. Restore compression of trigger
...
expressions. Change Expr.zToken to Expr.u.zToken and added Expr.u.iValue.
Remove an unnecessary ExprDup from CHECK constraint processing. And so forth. (CVS 6682)
FossilOrigin-Name: 4ac2bdfbb4230b6ceaae87e738fa61036bbe03cb
2009-05-28 01:00:55 +00:00
drh
b7916a78ff
Simplifications to the Expr object: Remove Expr.span completely and convert
...
Expr.token into a char* Expr.zToken. Also simplify the Token object by
removing the Token.dyn and Token.quoted fields. (CVS 6681)
FossilOrigin-Name: 7cb1c3ba0759539cb035978fdaff6316775986f3
2009-05-27 10:31:29 +00:00
drh
38a2c01b09
Fix the rtree test module so that it works even if the ext/ subfolder is
...
omitted from the tree. (CVS 6679)
FossilOrigin-Name: 086206e1f51e22ce7b9f45865b370088db126cd2
2009-05-25 14:17:35 +00:00
danielk1977
d17fe2a352
Add a test case for ticket #3879 . (CVS 6675)
...
FossilOrigin-Name: 5b9b66f47b0b8178427806149958387d32b70dc2
2009-05-25 11:46:10 +00:00
danielk1977
e672c8ed91
Do not transform a WHERE clause of the form "a = ? OR a = ?" to "a IN (?, ?)" if "a" is a column of a virtual table. Ticket #3871 . (CVS 6671)
...
FossilOrigin-Name: fad88e71cf195e703f7b56b13f0c1818fd0dac84
2009-05-22 15:43:26 +00:00
danielk1977
8d76ff9fe9
Fix memdb.test so that it works when OMIT_AUTOVACUUM is defined. (CVS 6649)
...
FossilOrigin-Name: 8c3c0c24c82606df41653dbf7324bf9f166c933a
2009-05-18 16:04:38 +00:00
drh
03949bac60
Take care to free the memory for the ORDER BY clause on SELECT statements
...
containing errors and contained within triggers. Ticket #3863 . (CVS 6644)
FossilOrigin-Name: dd665eac8c04259e44a95827ebd1f037460fe1b2
2009-05-17 15:26:20 +00:00
danielk1977
74632880b7
Re-enable file locking in async4.test. (CVS 6640)
...
FossilOrigin-Name: f7098187280866a56563c7614513a40becd172e0
2009-05-15 14:41:40 +00:00
danielk1977
24d4b29d5b
Do not run async4.test as part of the "journaltest" permutation. It specifically tests that the asynchronous IO backend can be configured to violate the assumptions made by journaltest. (CVS 6633)
...
FossilOrigin-Name: b19bf39bbae96aeb6e742fb9fb1c33d0e251ad7f
2009-05-13 14:46:09 +00:00
danielk1977
e70f4f6482
When locking a database file, check if any backup objects need to be restarted even if the page cache is empty. Ticket #3858 . (CVS 6632)
...
FossilOrigin-Name: 90309008c35494c7a075fe76f7eb96b09a01d01b
2009-05-13 07:52:06 +00:00
drh
c4a64facce
Rework the logic that generates a schema for tables created using
...
"CREATE TABLE ... AS SELECT ...". Instead of trying to copy the raw
datatype string from the right-hand side, just make the type one
of TEXT, INT, REAL, NUM, or nothing. This is much simpler than
trying to parse and quote datatype strings. Other minor
implifications to build.c are bundled with this change. (CVS 6626)
FossilOrigin-Name: 33cf83591e6e13875ef6ada5b8ac8ab07619d8bc
2009-05-11 20:53:28 +00:00
danielk1977
ea24ac4b23
Correctly update the cache page-count when discarding pages in the xTruncate() method of the default pcache implementation. Otherwise the effective configured size of the cache shrinks each time xTruncate() is called. Fix for #3844 . (CVS 6619)
...
FossilOrigin-Name: 88211ceeec01ee0d3e55231512be26dd672db099
2009-05-08 06:52:47 +00:00
drh
cdd0376a55
Make sure the iteration counter on aggregate functions is reset each
...
time the aggregate is used in an correlated subquery. Ticket #3841 . (CVS 6616)
FossilOrigin-Name: 4a86de35d57a0c8720772c29431c86cd9be1fb9b
2009-05-07 12:17:33 +00:00
drh
310bd20a81
Add a short pause to force a context swap while waiting for a separate process
...
to clear its lock in the lock4.test script. (CVS 6610)
FossilOrigin-Name: 4357e76d53f692cb7495fbde61b4b7580560f816
2009-05-06 00:52:40 +00:00
drh
dc70e4c365
Fix the test case misc3-6.11 so that it works correctly on UTF16 databases
...
after the fix of for ticket #3838 , check-in (6603) (CVS 6609)
FossilOrigin-Name: c1e739e39b1df205f3beb4088ce7760a0d56359f
2009-05-06 00:49:00 +00:00