danielk1977
e0d9e6f623
Simplify the way the read-uncommitted flag is handled to facilitate test coverage. (CVS 6841)
...
FossilOrigin-Name: e2112d6160a82ccd4b6a1c798d2064d0f1b086eb
2009-07-03 16:25:06 +00:00
drh
b1819a0b95
Make explicit the restrictions on UPDATE, DELETE, and INSERT statement syntax
...
within triggers. Ticket #3947 . (CVS 6840)
FossilOrigin-Name: c8bf40df7be728b11bb633516d1988c6064a9d70
2009-07-03 15:37:27 +00:00
drh
06150f95e8
Test the result of pthread_create() and do not call pthread_join() if the
...
thread creation failed. Ticket #3933 . (CVS 6839)
FossilOrigin-Name: 304c5110ad958b2cc1ddff30e68c8791109128b5
2009-07-03 12:57:58 +00:00
danielk1977
34acdc9573
Fix to sqlite3AuthRead to accommodate "new" or "old" references that are used in a context where a column reference may also be used (i.e. "SELECT new.<col> FROM <tble>"). Ticket #3944 . (CVS 6838)
...
FossilOrigin-Name: 45fd5419a7cde29eb6ab5d98141bd642af0d78fb
2009-07-02 18:40:34 +00:00
danielk1977
94b30733f7
When a b-tree transaction is committed when there are open cursors, downgrade shared-cache write-locks to read-locks instead of relinquishing all locks. Fix for #3942 . (CVS 6837)
...
FossilOrigin-Name: 611e704fdf90a3d3932ca1cbab4be7e282bf1ddf
2009-07-02 17:21:57 +00:00
danielk1977
602b466e99
Cause opening a transaction on a sharable b-tree module automatically obtain a read-lock on page 1. This means there is no way for sqlite3BtreeGetMeta() to fail. (CVS 6836)
...
FossilOrigin-Name: e3c055f167f895ae45858de9d9d8a264df2f36b6
2009-07-02 07:47:33 +00:00
danielk1977
325ccfa90e
Fix for compilation with OMIT_AUTOVACUUM defined. Ticket #3940 . (CVS 6835)
...
FossilOrigin-Name: 8f0591ae98c2125a4922933496f4412aee8ab86e
2009-07-02 05:23:25 +00:00
danielk1977
8b32282795
Change to test code and scripts allowing memsys3 to be tested using a build that has both memsys3 and memsys5 enabled. (CVS 6834)
...
FossilOrigin-Name: a00aeec21cca7ccf19d4cdef618149aa2773c005
2009-07-01 18:09:01 +00:00
danielk1977
e25a50b6c3
Fix a 1-byte buffer overwrite that can occur when a virtual table overloads an SQL function. (CVS 6833)
...
FossilOrigin-Name: bfe336a8993e06e70d3c32a929202fb015dcbb89
2009-07-01 18:04:20 +00:00
danielk1977
bd1a0a4f61
Report an error if a USING or ON clause is specified following a from-list element that is not to the right of a join operator. Fix for #3846 . (CVS 6832)
...
FossilOrigin-Name: 29b48972b65a17dab343b063a620cf8d456a923c
2009-07-01 16:12:07 +00:00
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
1b1166b7c7
Version 3.6.16 (CVS 6829)
...
FossilOrigin-Name: ff691a6b2a302fe7978459cb8df9d56184892ee0
2009-06-27 14:10:30 +00:00
drh
bdfb6b5ab2
Fix an instance where sqlite3JumpHere() might be called with a negative
...
address following an OOM fault. (CVS 6828)
FossilOrigin-Name: 49f22e55d69d0b5a34400b36332a2eb861362eb2
2009-06-27 11:17:35 +00:00
drh
b6063cf823
Fix a bug in sqlite3_realloc() - if called with a size of more than
...
2147483392 it returns 0 but it also releases the prior allocation. (CVS 6827)
FossilOrigin-Name: 653df0afcc58de82c8c1b5f6a7b2f4829ff69792
2009-06-27 00:48:33 +00:00
drh
e08ed7e71b
Remove incorrect NEVER() macros from malloc.c. The allocations can be
...
exceeded using sqlite3_malloc() and sqlite3_realloc(). (CVS 6826)
FossilOrigin-Name: 0d345e5923ff92a87195f6c04a29a56bf67ee43c
2009-06-26 18:35:16 +00:00
shane
36840fdddb
Removed a few compiler warnings under MSVC. (CVS 6825)
...
FossilOrigin-Name: f01a9fc375d77c67602a9f6be6a674beb516233f
2009-06-26 16:32:13 +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
drh
c42ed16e5c
When sqlite3VdbeAddOp() fails due to an OOM fault, return an address of 1
...
rather than zero so that there appears to always be a prior instruction.
This prevents a negative jump-to address computation in where.c following
an OOM fault. (CVS 6822)
FossilOrigin-Name: fe02339cb2f61c1e8a356e2d0ce9c3aef6e6cd8d
2009-06-26 14:04:51 +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
drh
7b746030bc
Fix the new pager.c changes so that they compile with IOTRACE defined.
...
Fix an out-of-order variable definition in vdbeaux.c. (CVS 6820)
FossilOrigin-Name: ac1450285025e33fad81e2fb14a06eb85e8ed87a
2009-06-26 12:15:22 +00:00
danielk1977
8ca8255325
Another change to test_journal.c to account for (6817). Again, only test code has changed. (CVS 6819)
...
FossilOrigin-Name: 58884b6c50f927c5606d857b2865d788a5147060
2009-06-26 10:39:36 +00:00
danielk1977
8f398adbb7
Update test_journal.c to account for (6817). Changes to test code only. (CVS 6818)
...
FossilOrigin-Name: 542ee8cced2a37095808d8baf5002dc66f4a64d6
2009-06-26 09:01:28 +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
danielk1977
46aa38f2c0
Fix a problem with a return code being ignored in insertCell(). (CVS 6816)
...
FossilOrigin-Name: bb5f1c01435dcc1ea056f0d149f750fa7812f652
2009-06-25 16:11:05 +00:00
drh
9635cc7c0d
Get the notify2.test running again by removing an ALWAYS() that was mistakenly
...
inserted and by taking care not to report corruption following an
SQLITE_LOCKED failure during schema parsing. (CVS 6815)
FossilOrigin-Name: 6e9140a729bd26dd102e603abf6ea16d67e8546e
2009-06-25 11:50:21 +00:00
danielk1977
c1761e887b
Replace an "if" condition that is always true in btree.c with an assert(). (CVS 6814)
...
FossilOrigin-Name: daadbd9a8f0e35dd16c715cf2e9f99f52afa30dd
2009-06-25 09:40:03 +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
46bbabd959
Remove an ALWAYS() macro from vdbe.c that sometimes fails on thread tests. (CVS 6812)
...
FossilOrigin-Name: 52eac078c7080519911599e19819cbec475de6d6
2009-06-24 13:16:03 +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
bfff79f125
Remove a declaration of the sqlite3Assert() function that was deleted by the
...
previous check-in. (CVS 6810)
FossilOrigin-Name: ee20b6a23fa4a4ec4d3a2d0dcfcabff466f08246
2009-06-24 11:08:13 +00:00
drh
2de80f4c50
Remove the sqlite3Assert() function. The ALWAYS() and NEVER() macros call
...
assert() directly when compiled with SQLITE_DEBUG. (CVS 6809)
FossilOrigin-Name: d8fc373fef22311e1c6b5bce6d3e601217a69940
2009-06-24 10:26:32 +00:00
danielk1977
13bd99fa43
Simplify things by rolling the functionality of balance_shallower() into balance_nonroot(). (CVS 6808)
...
FossilOrigin-Name: 11750c6aee6aa05b2627ad9dfb2fbcdfe8944168
2009-06-24 05:40:34 +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
1c3d2bf9cf
Remove a condition from balance_nonroot() that is always true. (CVS 6806)
...
FossilOrigin-Name: c5dc80e6bdd18a5ada728c8d5c9403ac233f1c9a
2009-06-23 16:40:17 +00:00
danielk1977
cd581a7eff
Call balance_shallower() from balance_nonroot() instead of from balance(). This simplifies coverage testing a bit. (CVS 6805)
...
FossilOrigin-Name: da9893e23caf89090c8b6563cb5f88d7dbf7c260
2009-06-23 15:43:39 +00:00
drh
5c91b64e0d
Update the configure script for version 3.6.16 (CVS 6804)
...
FossilOrigin-Name: b614e554f7ebaef9cb1718b617e020e532568bbb
2009-06-23 14:39:52 +00:00
drh
d40afea8bc
Update the version number in preparation for the next release. (CVS 6803)
...
FossilOrigin-Name: 207c4a02ba4dd950948367c91b4a73209d62da41
2009-06-23 14:18:15 +00:00
drh
35f6b936ce
Simplifications to vdbe.c to promote better test coverage. (CVS 6802)
...
FossilOrigin-Name: 3ffc93d762b64fd84f47c4b6d68ab56b69ea98a9
2009-06-23 14:15:04 +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
54109bb206
Fix a failing assert in btree.c. The same bug was causing a spurious SQLITE_CORRUPT return when compiled without SQLITE_DEBUG. (CVS 6800)
...
FossilOrigin-Name: 47ec8749470af7cab9f3ef15effce1a7ba79a654
2009-06-23 11:22:29 +00:00
drh
9a65f2cd7d
Simplifications to vdbe.c and it service routines in support of coverage
...
testing. (CVS 6799)
FossilOrigin-Name: 308f2e61520ac7440700d93ca5bab4a844f2dc17
2009-06-22 19:05:40 +00:00
danielk1977
b980d2219f
Remove a condition that is always true from btree.c. (CVS 6798)
...
FossilOrigin-Name: 3ec8b37a89fdb2436d312439715414fae2cd20a8
2009-06-22 18:03:51 +00:00
drh
27731d7c73
Make sure sqlite3BtreeCreateTable() returns an error code if the largest
...
rootpage field is invalid in auto_vacuum mode. Update file-format comments
to describe all of the "meta" values. (CVS 6797)
FossilOrigin-Name: bda38f5e86db45234c2dbb0f8d1a81f6ff6d04e4
2009-06-22 12:05:10 +00:00
drh
653b82a516
More simplifications to vdbe.c. Remove a NEVER() from vdbe.c that is possible
...
after all. (CVS 6796)
FossilOrigin-Name: c8f009bd24cb4e4b5ce9fbfd8ab09921f19d41af
2009-06-22 11:10:47 +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
aa73609f92
Simplifications to vdbe.c in support of coverage testing. (CVS 6794)
...
FossilOrigin-Name: 16680f05bd169dfb1b4bf0eb082e69701f9b07ab
2009-06-22 00:55:30 +00:00
danielk1977
3a1bf71f95
When recovering from the error-state in pagerSharedLock(), do not search for a hot-journal in the file-system if the pager is configured to use an anonymous temp file as the journal. (CVS 6793)
...
FossilOrigin-Name: 4b46805cbc9fe71f1febe9ea5f0f5634b65128e3
2009-06-20 18:52:49 +00:00
danielk1977
641a0bd205
If after obtaining an exclusive lock to rollback a hot-journal file it is found that the journal file has been deleted, do not return an SQLITE_BUSY error. Just downgrade the lock and continue with the current operation. This eliminates a spurious SQLITE_BUSY error caused by a race condition. (CVS 6792)
...
FossilOrigin-Name: 9a0666003764774b0bf861687002f8db9fd314b1
2009-06-20 11:54:39 +00:00