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
drh
69910da997
Fix some compiler warnings in test code. (CVS 6392)
...
FossilOrigin-Name: a43ecc9cb91ea8693e0fcce12c1bb5c5e4baf434
2009-03-27 12:32:54 +00:00
danielk1977
62e5a81a5a
Fix an incompatibility between the test_async.c backend and change (6390). (CVS 6391)
...
FossilOrigin-Name: 6762625d29d5e0053afdad033fe54e2d9121046a
2009-03-27 09:10:12 +00:00
danielk1977
ee8b799d47
Check that the first byte of a potentially hot journal file is non-zero before beginning hot-journal rollback. Fix for #3751 and #3745 . (CVS 6390)
...
FossilOrigin-Name: 80241a050296067937d0b0529fdf0c347358f86c
2009-03-26 17:13:06 +00:00
danielk1977
6d96100912
Prevent the tcl test suite from throwing an exception when a threadsafe SQLite is linked against a non-threadsafe Tcl for testing. Print a warning instead. Ticket #3753 . (CVS 6389)
...
FossilOrigin-Name: a22e7c818b2227a4c80ad84b299d11f365e3b17d
2009-03-26 14:48:07 +00:00
drh
73cd27300d
Added new tests of the scratch memory allocator for increased test coverage. (CVS 6388)
...
FossilOrigin-Name: e99e28efbbfff3e46eec0f90d566991de4406fd8
2009-03-26 12:20:32 +00:00
danielk1977
5a2cc667ca
Ensure that the test vfs in test_journal.c zeroes sqlite3_file.pMethods if an xOpen() call fails. Similar problem to that fixed by #6384 . This was a problem with test code, not SQLite itself. (CVS 6387)
...
FossilOrigin-Name: 45ae830d5631afa5d994361f5122c2f0b6fbab4c
2009-03-26 11:49:11 +00:00
drh
7c01f1d754
Remove an unused parameter from sqlite3DequoteExpr. Fix another unrelated
...
and harmless compiler warning. (CVS 6386)
FossilOrigin-Name: 8589b0fcc51a32188386e442655fd91f421ca7f8
2009-03-25 16:51:43 +00:00
danielk1977
357864ecb6
Fix a problem preventing sqlite3_extended_errcode() from working correctly. (CVS 6385)
...
FossilOrigin-Name: de469c46f55bf772ab8a49a185dc1b87360a937f
2009-03-25 15:43:08 +00:00
drh
072db2fb13
When a VFS.xOpen fails, make sure the pMethods pointer is zeroed on the
...
sqlite3_file object so that subsequent xClose() operations against that
same file handler are no-ops. Bug in the test_async.c module only - not
in the core library. Ticket #3744 . (CVS 6384)
FossilOrigin-Name: c32b454118f4b0cc615edb9b35f749db45f6b36d
2009-03-25 14:24:41 +00:00
drh
892404323f
Use fdatasync() only on linux, unless -Dfdatasync=fdatasync is set at
...
compilation time. (CVS 6383)
FossilOrigin-Name: cbf2ca4cc41f1f710635b863db6e98074bd5e8bc
2009-03-25 01:06:01 +00:00
drh
72bcfa6eeb
Change OS_UNIX to SQLITE_OS_UNIX in test_thread.c. Modify notify2.test to
...
print out its timings in addition to reporting success or failure. (CVS 6382)
FossilOrigin-Name: 940d72d2bae95ddd1aea9b63424179735f440296
2009-03-24 18:42:16 +00:00
drh
86d7a3157c
Get the OOM tester in async2.test working again. (CVS 6381)
...
FossilOrigin-Name: f398a2d1b0a731bbb600d0bb70ab79f1334ceda9
2009-03-24 17:43:56 +00:00
drh
37eecdd41d
Adjust the lock.test and lock3.test scripts so that they work with the
...
asynchronous VFS. (CVS 6380)
FossilOrigin-Name: 40df926b4606b3abe8c797bf17163f996bd03ad5
2009-03-24 16:55:43 +00:00
drh
9a6dedaef8
Include sqliteInt.h in test_async.c so that the asynchronous VFS tests
...
will run even if SQLITE_OS_UNIX is not explicitly defined. (CVS 6379)
FossilOrigin-Name: 29b0d6a3fe519c71a92e2436d7c5860f3f0178ef
2009-03-24 16:27:09 +00:00
drh
1af466eb6b
New assert()s added to verify that the Expr.token value is used correctly. Ticket #3743 . (CVS 6378)
...
FossilOrigin-Name: cf3d84ab73b7f519921a984f88bdad81996a3a82
2009-03-24 15:31:28 +00:00
drh
d9da78a2c8
Changes to insure that lookaside memory allocations are never used to hold
...
schema content.
Ticket #3743 . (CVS 6377)
FossilOrigin-Name: ea74d8dc62f5784089aa8ef098e97c505a79b176
2009-03-24 15:08:09 +00:00
danielk1977
4be6469146
Add a comment to prepare.c explaining why the lookaside buffer is disabled before sqlite3_exec() is called to parse a schema statement. No code changes. (CVS 6376)
...
FossilOrigin-Name: 8ca6a665650c9683a202f3ced17b14f7c85624bf
2009-03-24 04:46:08 +00:00
drh
347a7cb35b
Clarify the meaning of a comment. No changes to code. (CVS 6375)
...
FossilOrigin-Name: 7c2df04b52a40d5d1b744ad1097f7c12143d8c2c
2009-03-23 21:37:04 +00:00
drh
7047e25c45
Add asserts to make sure that database connection locks are held when
...
accessing the lookaside memory allocation buffers. No defects were found. (CVS 6374)
FossilOrigin-Name: 8a9f3e66069146ad1b1bc2686567882dc87603a9
2009-03-23 17:49:14 +00:00
danielk1977
a8bbef84bf
Fix an obscure race condition that can occur when multiple threads, shared cache and DDL statements are combined. Enhance notify2.test to test this scenario. (CVS 6373)
...
FossilOrigin-Name: 92ec5975123284aff3a69ee16c397d9e2a844c0b
2009-03-23 17:11:26 +00:00
danielk1977
bc73971db6
Use the ROUND8() macro to round an integer up to the nearest multiple of 8 and ROUNDDOWN8() macro to round down to the nearest multiple of 8. This is a cosmetic change. (CVS 6372)
...
FossilOrigin-Name: db1d4d2f5083adf5438c7f387b115180800e7bd9
2009-03-23 04:33:32 +00:00
shane
ca18d20fd6
Fix compiler warning in MSVC. (CVS 6371)
...
FossilOrigin-Name: 83a4d5b3d7abe983c2be00a694cc7d4c4847f253
2009-03-23 02:34:32 +00:00
drh
296a483c2e
Allow the keyword INDEXED to be used as the name of a table or index or
...
column - for backwards compatibility. (CVS 6370)
FossilOrigin-Name: 53149c9f5d5cfaba3374703cd3af92a9d4cf8718
2009-03-22 20:36:18 +00:00
drh
0fa991b9e3
Update comments in build.c to conform to the latest implementation. (CVS 6369)
...
FossilOrigin-Name: a915e8e0a429ab6a10536c45264a790c2d076461
2009-03-21 16:19:26 +00:00
drh
4a7384a25f
Rig the unix backend to use fdatasync() by default, without having to set the
...
HAVE_FDATASYNC macro. Systems that do not support fdatasync() can be compiled
using -Dfdatasync=fsync. (CVS 6368)
FossilOrigin-Name: a331562727be465874a66c2c1d15ee070f96f7e0
2009-03-21 14:56:52 +00:00
drh
0b647ffd47
On unix, always use fdatasync() instead of fsync() when available, even if
...
the file size changes, since (we are told) fdatasync() will automatically
flush the inode when the file size changes. (CVS 6367)
FossilOrigin-Name: 0d6b11bcf67f86e5554806869d32338e5831833e
2009-03-21 14:41:04 +00:00
danielk1977
2b31b211c3
Add a test to try to hit the race-condition fixed by (6363). (CVS 6366)
...
FossilOrigin-Name: 4310411f5027dba18e017023e21cb09982e26752
2009-03-20 15:16:05 +00:00
danielk1977
c926b6a65b
Fix an assert failure introduced by (6355). (CVS 6365)
...
FossilOrigin-Name: a08324d16d1e9a4e7c1b294bc71fc939d173f826
2009-03-20 14:42:11 +00:00
danielk1977
be2296501c
Make sure struct WhereClause is aligned on an 8-byte boundary. Fix for #3613 , #3736 . (CVS 6364)
...
FossilOrigin-Name: 093a0cf4adc8613f744c2ccdef61f0b30a46818c
2009-03-20 14:18:51 +00:00
drh
7555d8ec40
Rename the unused MEM2 static mutex to OPEN and reuse it to serialize access
...
to the sqlite3BtreeOpen() routine to prevent a race condition on detection
of sharable caches. Ticket #3735 . (CVS 6363)
FossilOrigin-Name: 19fa5a29b97f017a9e176e48c848100299ba6920
2009-03-20 13:15:30 +00:00
danielk1977
df0f3c06b6
Fix a problem in thread005.test cause errors on osx. (CVS 6362)
...
FossilOrigin-Name: 56e6fca1a9da69c3a0fe43b00db9a6d9d93f03ba
2009-03-20 10:24:03 +00:00
danielk1977
eefa000331
Fix a problem in loadext.test causing an error on OSX. This is not a real problem, just a case of the test script expecting a slightly different error message than the one returned. (CVS 6361)
...
FossilOrigin-Name: 18680989b5365b0e35fadca5919dfced22433ff4
2009-03-20 09:09:37 +00:00
danielk1977
238746a650
Fix a couple of fairly obscure cases where an assert() could fail following a malloc failure. (CVS 6360)
...
FossilOrigin-Name: cc0d925669ddeb55048e88aa5b4f658be60b0962
2009-03-19 18:51:06 +00:00
danielk1977
65a2ea1155
Change sqlite3_step() to return SQLITE_LOCKED if a statement cannot be re-compiled due to locks on the shared-cache schema. Also add a blocking wrapper of sqlite3_prepare_v2() to the test code. (CVS 6359)
...
FossilOrigin-Name: e8be1af922098e298902820730f8b28603bd6fae
2009-03-19 07:58:31 +00:00
danielk1977
cb9d8d8821
Fix a crash that could occur when creating an index in shared-cache mode with lookaside enabled. (CVS 6358)
...
FossilOrigin-Name: 097737e3689b9a7e32815fe9c6fc6eed796ae53c
2009-03-18 18:43:36 +00:00
danielk1977
308ef5a548
Modify test script backup2.test so that it works on OSX. (CVS 6357)
...
FossilOrigin-Name: d82e8cd43f46dda15fd15b567901a7dbb2276287
2009-03-18 13:55:29 +00:00
drh
0bb1221eed
Add comments and testcase() macros to the fix for shared-cache schema default
...
value problem of check-in (6353). (CVS 6356)
FossilOrigin-Name: 05d8607d44cd3ff262c07cc1192f4471f3192b09
2009-03-18 10:36:12 +00:00