dan
6734007d75
Improve test coverage of session module.
...
FossilOrigin-Name: f46d4b641d613c39a80b12106e6a6ac0efc8be83
2011-04-16 19:23:10 +00:00
dan
b08a1efae5
Improve coverage of session module.
...
FossilOrigin-Name: 3dfd1d63bddfa9bd9018eb00bee1d496379630b5
2011-04-15 19:18:57 +00:00
dan
1756ae10e1
Add tests and fixes for OOM handling in sqlite3changeset_concat().
...
FossilOrigin-Name: df0b2d21dcd81679e55b24866f97568019932983
2011-04-15 16:03:32 +00:00
dan
f29123b572
Have sqlite3changeset_concat() return SQLITE_SCHEMA if an attempt is made to concatenate changesets based on incompatible database schemas.
...
FossilOrigin-Name: 343b64517d244b75097e38342dc273eb5a52915b
2011-04-15 15:04:31 +00:00
dan
29e03e977c
Add documentation for sqlite3changeset_concat() to sqlite3session.h.
...
FossilOrigin-Name: ada9efa53a6ea55f89d237cfd530f1d180343e19
2011-04-15 12:04:50 +00:00
dan
6cda207f5f
Add further tests for the sqlite3changeset_concat() function. Also fixes.
...
FossilOrigin-Name: 1fc3f15d88c160b45642b46d1d54c591af058ba2
2011-04-14 18:01:41 +00:00
dan
5d607a6e06
Start adding the sqlite3changeset_concat() function to the session module.
...
FossilOrigin-Name: 8927b2260b8d84f53776cb29e1d2fa41b6b0de0e
2011-04-14 11:16:21 +00:00
drh
9e3fbc0157
Merge the latest trunk changes into the sessions branch.
...
FossilOrigin-Name: 83705e90a54bad462a5b7fbca70cc129998f871c
2011-04-09 18:07:51 +00:00
drh
806ebcb449
Remove an always-true conditional. Replace it with an assert().
...
FossilOrigin-Name: 1c2f0f8477bcf251fe874a2cfae4d7a403cb88ff
2011-04-09 17:53:30 +00:00
dan
579667537a
Add VerifyCookie instructions to "DROP XXX IF EXISTS" statements if the specified database object does not exist when the statement is prepared.
...
FossilOrigin-Name: a46f32900a013aa6bb2dad2a9ed3ce00ab2493fd
2011-04-09 17:32:58 +00:00
dan
7687c83d4c
Add an OP_VerifyCookie instruction to "CREATE XXX IF NOT EXISTS" commands. This way, if the specified database object existed when the statement was compiled but removed from the database before sqlite3_step() was called, the statement still works as expected (and creates the object).
...
FossilOrigin-Name: b9dbd9936191666c3fc9889e938344a82cc03aeb
2011-04-09 15:39:02 +00:00
drh
c2822b76b4
If the keyword "unordered" appears at the end of the SQLITE_STAT1.STAT
...
column for an index, then use that index for equality lookups only, never
for range queries or sorting. This feature is currently undocumented and
my change or be removed in a future release.
FossilOrigin-Name: 8a42e236701c8afd9ada7d4568712a21690ea087
2011-04-09 03:20:59 +00:00
drh
2184fc75a2
Back out the SQLITE_OMIT_UNIQUE_ENFORCEMENT compile-option. It is an unneeded
...
complication.
FossilOrigin-Name: 927e955b93e869727c55b784401de3ea07bee257
2011-04-09 03:04:13 +00:00
drh
9f6106f5ee
When ATTACH-ing a new database to an existing database with a codec, do
...
not enable the codec in the attached database if it is not enabled in the
existing database and it is not requested by the USING clause.
FossilOrigin-Name: 4caa5fc86e7fe404cd188713277f2801cd02dbc9
2011-04-09 02:34:33 +00:00
drh
2b89fbcb1e
Do not do a backup if the number of reserved bytes in the source and
...
destination do not match. Try to make the match, but if unable fail.
FossilOrigin-Name: 0ca8a2332b28d88585dc890e5162b095e783fc20
2011-04-09 02:09:44 +00:00
drh
ea6dc4458b
Always make sure the left-hand side of the IS NOT NULL operator is a
...
smiple column, not a general expression, before applying the IS NOT NULL
query optimization.
FossilOrigin-Name: 543f75a6abe3aa4f49df43e71a462702d40b3251
2011-04-08 21:35:26 +00:00
dan
1c152101ca
Add some rtree tests to the backcompat.test script.
...
FossilOrigin-Name: 8ea3601cd11088ae4d62bd4a05d1675301b26ace
2011-04-08 18:47:24 +00:00
dan
e620c5e5ba
Fix incrvacuum2.test so that it works with the inmemory_journal permutation.
...
FossilOrigin-Name: 7b8e176143bb8b55e34fd70cbfa639b1097b2c34
2011-04-08 17:22:30 +00:00
drh
041e09f189
Change two new internal functions in where.c from global to file scope.
...
FossilOrigin-Name: 5bbfa17d4d6db18f8077f758d70c1bc253b58e2e
2011-04-07 19:56:21 +00:00
dan
1b855bbd57
Add test case to verify [d03d63d77e] works.
...
FossilOrigin-Name: bf78acb9dfacde0f08a5b3ceac13480f12a06168
2011-04-07 15:24:08 +00:00
drh
93b4fc78cf
When searching a list of freelist trunk pages looking for a specific page
...
to allocate, avoid unnecessary journalling of the unchanged trunk pages towards
the start of the list.
FossilOrigin-Name: d03d63d77ed144ac2c02a0245c4b4b070b79c88e
2011-04-07 14:47:01 +00:00
dan
fe98f9b216
Avoid running thread1.test or thread2.test if SQLITE_MUTEX_NOOP is defined.
...
FossilOrigin-Name: 532ae32ea0f5e821dac643cbc4b041c103cadfdc
2011-04-07 14:05:47 +00:00
dan
7329ed9b38
Do not run multi-threaded Tcl tests if the library was built with SQLITE_MUTEX_NOOP defined.
...
FossilOrigin-Name: e4e99606fdf1f1cecf914dc865b066bf07793d1f
2011-04-07 10:09:00 +00:00
dan
b73da5bd1c
Fix test script attach4.test so that it works with type 1 VFS implementations (no wal). And wal.test so that it work with a small default pager cache size.
...
FossilOrigin-Name: 29c7b42587000704d61f49badd584ac7040c3d7d
2011-04-07 05:17:32 +00:00
shaneh
cef8368093
Fix a couple of MSVC compiler warnings;
...
FossilOrigin-Name: 748c9109c973e1d3e914adbe533f12af7783bfe4
2011-04-07 03:41:01 +00:00
shaneh
18e2d06b5c
Fix an issue with an analyze test. No code changes.
...
FossilOrigin-Name: cddf79db83e5f121cc4ce8ab7ad3993fc96f5bc0
2011-04-07 01:54:14 +00:00
drh
8b2b2e67fe
Fix typos in documentation comments. No changes to code.
...
FossilOrigin-Name: 9c64b5a99c5251818000e7d655f3a870589b631e
2011-04-07 01:14:12 +00:00
drh
36828bd9bb
Add a missing "extern C" terminator to the end of sqlite3session.h.
...
FossilOrigin-Name: 29090b695a95feaba1b74f9894997083a060263a
2011-04-06 23:40:28 +00:00
drh
cfdbde214b
Fix VC++ compiler warnings.
...
FossilOrigin-Name: 7b7c8d366c51e89aefc6efc9dcffe3f62c7e1d25
2011-04-06 23:39:28 +00:00
drh
22e9c155ae
Merge in the latest changes from the trunk.
...
FossilOrigin-Name: 435b57dc2be7b071270a6cddece297758b8153aa
2011-04-06 22:33:50 +00:00
drh
dc5b047ec3
Fix a performance regression: Keep two btree masks in each prepared
...
statement; one for btrees used and another for btrees that require locks.
Only try to lock the btrees identified by the second mask.
FossilOrigin-Name: 614de91a504d2231009a9de1305e31fce1b1c5a6
2011-04-06 22:05:53 +00:00
dan
dc5df0f824
Fix a benign inaccuracy in the os_unix.c SQLITE_FCNTL_SIZE_HINT code.
...
FossilOrigin-Name: 61a6ccbe3c9c3ad5f35fb325e3c327cb19409925
2011-04-06 19:15:45 +00:00
dan
bb2b441867
Changes to support building with various SQLITE_OMIT_XXX options defined.
...
FossilOrigin-Name: 2039ed952a02bdcd4fc6d2e20572c4632084dcdb
2011-04-06 17:54:31 +00:00
dan
6d59c2c1c2
Update a comment in sqliteLimit.h. No changes to code or tests.
...
FossilOrigin-Name: b7296fd380319bcae26b1ac13f23e57a4852881b
2011-04-06 12:38:10 +00:00
dan
56089737c1
Add configurations featuring the -ftrapv switch and large values for SQLITE_MAX_ATTACHED to releasetest.tcl.
...
FossilOrigin-Name: 989588abf3e88e198b7224604d54f7dc24d2576f
2011-04-06 12:37:09 +00:00
drh
d7162fa64e
Merge the latest trunk changes into the sessions branch.
...
FossilOrigin-Name: 45f20261720dcd73eb887f7e3df100723000418b
2011-04-05 22:13:49 +00:00
drh
fcd71b6010
Suppress many harmless compiler warnings, mostly signed/unsigned comparisons
...
within asserts or unused parameters in extensions.
FossilOrigin-Name: 3eeb0ff78d04891b5fd1a3d99a9fb8cfbed77a81
2011-04-05 22:08:24 +00:00
drh
1a86f50d85
Simplifications to the sqlite3BtreeEnterAll() and LeaveAll() routines.
...
Just have them call BtreeEnter and BtreeLeave() repeatedly rather than
trying to be clever.
FossilOrigin-Name: 51039b3578f948c23a810d176e81fa51a278fb28
2011-04-05 19:27:41 +00:00
drh
d3ef5ae05f
Simplifications to the sqlite3ResetInternalSchema() logic to eliminate
...
unreachable branches.
FossilOrigin-Name: a4c3ac989d4e93f0279172901b9ece822d137700
2011-04-05 19:26:30 +00:00
drh
8d4991e7ba
Remove dead code from the OP_JournalMode opcode in the VDBE.
...
This code seems to have been useless since [f88c6367d2] on [20010-08-07].
FossilOrigin-Name: a89f24e2c9591d09cbe329895ceec87885059184
2011-04-05 18:34:10 +00:00
drh
e54e051800
Remove the mutex counter and the logic that attempts to verify that btree
...
mutexes are held continuously. We are not making that assumption at this
time.
FossilOrigin-Name: 242ce7cff416a87d57d4eb624cb79fa4e2215559
2011-04-05 17:31:56 +00:00
dan
ce8e5ffe1c
When committing a WAL transaction, do not write any pages to the WAL file with page numbers greater than the size of the database image in pages.
...
FossilOrigin-Name: 311d0b613d9cfa2dbcbb9ef2450041b1fd48770a
2011-04-05 16:09:08 +00:00
drh
0d8bba982d
Fix a documentation typo.
...
FossilOrigin-Name: d25c17ef6e2b916923489dccaaa018a2d6525401
2011-04-05 14:22:48 +00:00
drh
c94f31236e
Pull the latest trunk changes (and hence the schema-parse-refactor changes)
...
into the sessions branch.
FossilOrigin-Name: 03ca83422f0259ae5525aeecc14171811252a67d
2011-04-05 13:27:30 +00:00
drh
959b6a95ee
Merge the scheme-parse-refactor changes into trunk: (1) added
...
sqlite3SchemaMutexHeld() asserts, (2) Use -1 instead of 0 to mean
"all" in sqlite3ResetInternalSchema(), and other cosmetic changes.
FossilOrigin-Name: 5db4511d8a77b74be3503a7c34257ef6b07541f5
2011-04-05 13:12:28 +00:00
drh
8d129422ed
Fix the P4_TRANSIENT constant so that it works correct - so that it really
...
makes a copy of the string for the P4 argument. Use P4_TRANSIENT wherever
appropriate. Change P4_STATICs of schema names to P4_TRANSIENT.
FossilOrigin-Name: bf664b206bf6f5c1941da1986dfe2c0d1831d5e4
2011-04-05 12:25:19 +00:00
drh
0bfc2d1cc8
Improved comment on the sqlite3SrcListLookup function.
...
FossilOrigin-Name: bcbc9ff568d1eb9f925574ebd22e5fdfa06daf6e
2011-04-05 11:26:54 +00:00
shaneh
14a7fa9034
Added ifcapable wal to some test scripts;
...
FossilOrigin-Name: 6b270381daad5d1a9ca5746cf439c90f9c735a1b
2011-04-05 02:33:44 +00:00
shaneh
6faa5fdfe1
Added ifcapable utf16 to a few test cases;
...
FossilOrigin-Name: 57e0919b08e3b839b7c71011707a19ae2511a625
2011-04-05 02:21:04 +00:00
drh
03faf63b57
Add a comment to the VACUUM implementation explaining when all schemas are
...
reset and not just the "main" schema.
FossilOrigin-Name: 2aff1b0ca87a99b8ec80e696b9e8a48bb43db2c2
2011-04-04 23:08:14 +00:00