drh
ce4869f893
Make sure the VACUUM statement locks down the page_size and auto_vacuum
...
modes after it runs. Otherwise, pragmas might change these settings on
a populated database, resulting in problems. (CVS 6442)
FossilOrigin-Name: 85e6a4740d6db731c8c35a331031c346e9189c27
2009-04-02 20:16:58 +00:00
drh
860e077a7a
Fix the sqlite3_prepare() family of interfaces so that they zero the *ppStmt
...
value even on an SQLITE_MISUSE return. Make it clear in the documentation
that the ppStmt parameter cannot be zero. (CVS 6441)
FossilOrigin-Name: 23bf9f266559603e37b2703715eaf8ef5af6bb17
2009-04-02 18:32:26 +00:00
danielk1977
fa542f1fc8
Fix a problem causing the BtShared.isPending flag to be cleared to early. Also coverage improvements for btree.c. (CVS 6440)
...
FossilOrigin-Name: 8f1423445b29a5f52ed907de6db82128a96ebfe2
2009-04-02 18:28:08 +00:00
danielk1977
e1fb65a0b8
Ensure the required VerifyCookie/Transaction/TableLock opcodes are added for "x
...
IN (SELECT c FROM t)" expressions. Ticket #3771 . (CVS 6439)
FossilOrigin-Name: 058a2f20930d7707c03c3c27db8e761d5657ee46
2009-04-02 17:23:32 +00:00
drh
de46798569
Fix a couple of harmless nuisance warnings. (CVS 6438)
...
FossilOrigin-Name: 53dac0a455b9a822f710c257711e8d319060cf84
2009-04-02 17:22:41 +00:00
drh
e8902a70fe
Disable the query flattening optimization when the subquery is a compound
...
query with an ORDER BY clause. Ticket #3773 shows why that combination
does not work. (CVS 6437)
FossilOrigin-Name: 23f90d50737a36ebd17152dd4667948ce7049967
2009-04-02 16:59:47 +00:00
drh
3034e3d364
Change the way that the random() SQL function prevents the maximum
...
negative integer so that it is testable. (CVS 6436)
FossilOrigin-Name: 995f2b9b1031fadc85e179701536b9dd4153654b
2009-04-02 14:05:21 +00:00
drh
d27135ad82
Use ALWAYS and NEVER macros on unchangeable conditions within func.c. (CVS 6435)
...
FossilOrigin-Name: eb65e64e7ed5edbe506365971d4d81ea037098d3
2009-04-02 13:36:37 +00:00
drh
27e62dbedd
In the built-in SQL function implementations, improve some comments, fix
...
an off-by-one error in detecting over-size strings, and add testcase()
macros to verify that boundary values have been tested. (CVS 6434)
FossilOrigin-Name: 868a487f5fd7c795e04a08de36a85ba1e06bc8c6
2009-04-02 10:16:17 +00:00
drh
ef31c6aa97
Enforce the run-time sqlite3_limit() length limit on zeroblob(), not just
...
the compile-time SQLITE_MAX_LENGTH limit. (CVS 6433)
FossilOrigin-Name: a04f9e7959325da18f66a1aa4ead1c50993807cb
2009-04-02 09:07:12 +00:00
drh
64f798dddc
Increase test coverage of bitvec.c slightly. Fix the line length on a
...
comment in bitvec.c. (CVS 6432)
FossilOrigin-Name: ca3aa3ba7d751be1c2bcd100a203cd9c794a6cef
2009-04-01 23:49:04 +00:00
drh
2206a2b6ab
Mark untestable branches of memjournal.c as such. Reduce the size of a
...
single block allocation to a power of two. Reenable the inmemory_journal
permutation test. (CVS 6431)
FossilOrigin-Name: 05c182a5db9fa96f2d588dd884ce77916b0e60e4
2009-04-01 23:09:43 +00:00
drh
6eb41523f1
Fix the strftime() function so that the %s format can handle dates outside
...
of the range of 1901 to 2038. Ticket #3769 . (CVS 6430)
FossilOrigin-Name: a95b843a9251ca9f9a23e8b67c2126f4c297a534
2009-04-01 20:44:13 +00:00
drh
4b2b8b705d
Change an unreachable error condition test to an assert() in rowset.c. (CVS 6429)
...
FossilOrigin-Name: 36115e4073528f03253dd94fadf3954522c0dfb9
2009-04-01 19:35:55 +00:00
danielk1977
295dc10573
Remove an unreachable branch from lockBtree(). Add comments. (CVS 6428)
...
FossilOrigin-Name: 859792958b4d4a3623d68526ff773f778bdf3f0d
2009-04-01 19:07:03 +00:00
drh
aed382f9f1
Fix a bug in the sqlite3Utf16ByteLen() function so that it computes the
...
correct length even for strings that contain surrogate pairs.
Ticket #3766 . (CVS 6427)
FossilOrigin-Name: 766bb7e59c28884e40ce13e3fc55c870d06d7e34
2009-04-01 18:40:32 +00:00
danielk1977
856cc0fde9
Test that two database connections that use different VFS implementations may not share a cache. (CVS 6426)
...
FossilOrigin-Name: 3a92c95644ead7c4728ffec1ec70676663518188
2009-04-01 18:25:54 +00:00
danielk1977
20c6cc2b1b
Remove the unused SQLITE_Vtab flag. (CVS 6425)
...
FossilOrigin-Name: fdd78962fcb988edfb4147394045fc5d3944c620
2009-04-01 18:03:00 +00:00
danielk1977
d217e6f16d
In pageReinit() in btree.c, only reinitialize a page if there are one or more references to it, not including the transient reference held by pager.c. This was always the intent. (CVS 6424)
...
FossilOrigin-Name: 0c5a7d1117cfb322d1c89da89e8887b0bb091602
2009-04-01 17:13:51 +00:00
drh
769e97e032
Remove dead code from the UTF conversion routines. Fix a bug in
...
sqlite3_prepare16_v2() in which an out-of-memory error fails to
set the statement return pointer to NULL. (CVS 6423)
FossilOrigin-Name: 94e2f815ebb38981a2226d8aed9f3731f8833f7c
2009-04-01 16:33:37 +00:00
danielk1977
6011a75c0c
Remove an unreachable branch from allocateSpace() in btree.c. Add comments and asserts to the same function. (CVS 6422)
...
FossilOrigin-Name: f8e15a542df67fd9dc1c91c7d9e1c4df59acb82b
2009-04-01 16:25:32 +00:00
danielk1977
5b413d785f
Add some assert() statements to querySharedCacheTableLock(). (CVS 6421)
...
FossilOrigin-Name: 3e3b5e861aeff2e4ef568c422236fdf7fa22bed3
2009-04-01 09:41:54 +00:00
vapier
faa68dbb7d
add a sanity check to make sure the configure script and VERSION file are always in sync (CVS 6420)
...
FossilOrigin-Name: 1b9da6d73f603e66d078463c3571dda86ceedfb3
2009-04-01 07:38:31 +00:00
vapier
051cd806f1
update configure script so it has proper VERSION in it (CVS 6419)
...
FossilOrigin-Name: ce683cbd329eab45abb6f97f677f560b0fd1cdb6
2009-03-31 23:29:15 +00:00
drh
f6023ecae6
Version 3.6.12 (CVS 6418)
...
FossilOrigin-Name: 0db862a23aa4aae949d5cd90ad395a7f073d7fb8
2009-03-31 13:16:55 +00:00
shane
b08a67a772
Fix compiler warnings from gcc and MSVC; Correct typo in select.c; (CVS 6417)
...
FossilOrigin-Name: 768514179a63783c4e70b931d1697403c04bedf5
2009-03-31 03:41:56 +00:00
drh
86655a1d2a
Make sure a ROLLBACK that follows an incremental vacuum works. Ticket #3761 . (CVS 6416)
...
FossilOrigin-Name: 8c1d0c6ad9646816eb8ca15b7df4e79b9b1b59ee
2009-03-31 02:54:40 +00:00
drh
8711c7d62e
Remove two unused lines from pcache.c. (CVS 6415)
...
FossilOrigin-Name: d5cab05c9ecbc5cb5e9ed658a55c35434717e969
2009-03-31 01:32:18 +00:00
drh
2929db8167
Added a test case for ticket #3672 . (CVS 6414)
...
FossilOrigin-Name: 7f40576dd76cb67f5248739a0ef1fbe496a3b42a
2009-03-31 00:50:35 +00:00
danielk1977
f4027782b0
Fix a case where a pointer map page was not being journalled before a file truncation that occurs as part of an incremental vacuum. (CVS 6413)
...
FossilOrigin-Name: c5890935a0247090162feda73cfea85012317050
2009-03-30 18:50:04 +00:00
drh
5e8d8878fe
Add a comment to the pageReinit() routine explaining why the return code from
...
sqlite3BtreeInitPage() is ignored. Comment change only - no changes to code. (CVS 6412)
FossilOrigin-Name: 10f605be8c92ff94625a0da0e23b2ffd55ec7509
2009-03-30 17:19:48 +00:00
danielk1977
5be31f519b
Modify integrity-check to prevent a buffer overread when dealing with a corrupted database. (CVS 6411)
...
FossilOrigin-Name: 3c9097f19adae071a12e1114f64993d0c1da1163
2009-03-30 13:53:43 +00:00
drh
a111577b6b
Make sure recursive calls to winOpen() preserve the pVfs pointer.
...
Fault found while testing a mingw build in VMWare. (CVS 6410)
FossilOrigin-Name: 18b44f0df3d75689fb5cee20120eb3c6ae5882b3
2009-03-30 13:04:17 +00:00
drh
52b9c53fa7
Avoid calls to newer TCL interfaces in the test logic. This helps the
...
TCL test harness compile without warnings and link when using older versions
of the TCL library. (CVS 6409)
FossilOrigin-Name: 1ad176375746d680225d7ecddca54bc281b1556d
2009-03-30 12:56:52 +00:00
drh
5c905d6e91
Avoid all use of the "LL" suffix for long-long integer literals.
...
Ticket #3759 . (CVS 6408)
FossilOrigin-Name: 7ef36935424013a1b211906620954a97ffe08de7
2009-03-30 12:42:45 +00:00
drh
b71c1751dc
Display a warning that the notify2-3 test sometimes fails on single-core
...
machines. (CVS 6407)
FossilOrigin-Name: ab7c718dec56859c51bfb0b1c1d70a7c84feffd1
2009-03-30 11:59:30 +00:00
danielk1977
64a54c52fe
Another change related to (6401) and (6402): When an attempt to unlock a file fails in os_unix.c, close all files held open waiting for the unlock event anyway.
...
This prevents a file-descriptor leak when testing IO errors. (CVS 6406)
FossilOrigin-Name: 50fbcdea045f7d4266d9afa721616c720564aa93
2009-03-30 07:39:35 +00:00
drh
f9e749cbba
Add a comment to the doubleToInt64() routine that explains why returning
...
minInt is in fact correct when it seems like maxInt should be returned. (CVS 6405)
FossilOrigin-Name: 7f3be3608542bbc6ac7916e5c3a5436e5f0a552e
2009-03-29 15:12:09 +00:00
drh
e3e2ae4a6f
Turn off the debugging macros in where.c - left on by mistake in the
...
previous check-in. (CVS 6404)
FossilOrigin-Name: b601a57582051184baa37b807b1e18db93313e13
2009-03-29 00:15:54 +00:00
drh
75572e9de9
Improvements to cost estimation for evaluating the IN operator.
...
Ticket #3757 . (CVS 6403)
FossilOrigin-Name: 0c438e813c411e8f9e92d6c7405fccb7a36e110a
2009-03-29 00:13:03 +00:00
drh
f48f9ca65c
Previous commit ((6401)) did not quite fix the problem. This should work
...
better. (CVS 6402)
FossilOrigin-Name: 2e7d3cc9f04de1fe7ef95cd5736dbc409c209cef
2009-03-28 23:47:10 +00:00
drh
cd731cf540
In the unix-backend, when simulating an I/O error on an unlock operation,
...
still mark the connection as unlocked to avoid a future assert(). (CVS 6401)
FossilOrigin-Name: fb35cff855e17771caee2a992e7b2b4105b94862
2009-03-28 23:23:02 +00:00
drh
17561adc61
The test_async.c module must pass an unchanging filename to the underlying VFS. (CVS 6400)
...
FossilOrigin-Name: d1eeee21677a3dffdb4ee1182322007bf24ef03a
2009-03-28 18:56:14 +00:00
danielk1977
1a321c329b
Fix thread related problems in test modules test_async.c and test_journal.c. (CVS 6399)
...
FossilOrigin-Name: 45df27a22d283871ed1de334fe3b74b0121d57a6
2009-03-28 17:21:52 +00:00
drh
94dfe476fa
Back out check-in (6380). Replace it with a proper fix to the
...
xFullPathname method in the async VFS. (CVS 6398)
FossilOrigin-Name: 767a7f7b55456df404a7f8966a0c48318ddac120
2009-03-28 15:04:24 +00:00
danielk1977
ac86169fff
The fix in (6395) was not correct. Fix #3756 a different way. (CVS 6397)
...
FossilOrigin-Name: 9278f7b1e1f2d0d4c2f8829ca801a769e512c2a6
2009-03-28 10:54:22 +00:00
danielk1977
8594373a25
Fix a couple of test script bugs. No changes to SQLite code. (CVS 6396)
...
FossilOrigin-Name: c9fa329f54736de517cddaf747595c9eca931f32
2009-03-28 07:03:41 +00:00
danielk1977
546820e321
Fix readDbPage() so that if an SQLITE_IOERR_SHORT_READ is encountered, the page content is zeroed. Ticket #3756 . (CVS 6395)
...
FossilOrigin-Name: 647e3b156e32e37debd60b0079fc5a52bdc9b8c8
2009-03-28 06:59:41 +00:00
danielk1977
717811c995
When "PRAGMA case_sensitive_like" is invoked, override all existing "LIKE" functions, including UTF-16 versions. (CVS 6394)
...
FossilOrigin-Name: 1c6521e53b846eec2e046b1e9c04c60658b8e0e8
2009-03-27 15:26:03 +00:00
drh
bcf4f4840b
Fix another compiler warning in the test logic of tclsqlite.c. (CVS 6393)
...
FossilOrigin-Name: 47ffc4dca8f106d0da8cbc0a8ff7453016e9b40d
2009-03-27 12:44:35 +00:00