2534 Commits

Author SHA1 Message Date
drh
382ffd9e65 Check-in (6514) did not completely remove the obsolete test, resulting in a
segfault.  This check-in finishes the job.  Ticket #3802. (CVS 6516)

FossilOrigin-Name: c29b37ea36fe6a360807e66dffc467c66be00d38
2009-04-17 11:56:27 +00:00
drh
e52204b4ce Remove obsolete test from bindxfer.tcl. Ticket #3802. (CVS 6514)
FossilOrigin-Name: b1b096171812f77082b0b63e7ab0908c82d1d8bb
2009-04-16 16:32:20 +00:00
drh
7fee360d09 Make sure the 'unixepoch' converter in the date and time functions rounds
to the nearest millisecond rather than truncating downward to the next
smaller millisecond.  Ticket #3808. (CVS 6512)

FossilOrigin-Name: e6e036b345b130c207716c4b81719b5b7c884a11
2009-04-16 12:58:03 +00:00
drh
10c081adf8 In a 3-fold compound SELECT make sure early code generation of the SELECTs
to the right do not dereference non-existant columns in SELECTs on the left. (CVS 6511)

FossilOrigin-Name: 414f340809c487901fa913026a342b19a2956c0a
2009-04-16 00:24:23 +00:00
drh
8dc09a0616 Fix the group_concat() function so that it inserts the separator string
even if the initial content strings are empty.  Ticket #3806. (CVS 6510)

FossilOrigin-Name: b83fbf15a3920755ed77dc9c91b4f00a86ddb9ac
2009-04-15 15:16:53 +00:00
drh
b818008784 Disable the temptrigger.test test script when shared cache is disabled.
Ticket #3801. (CVS 6507)

FossilOrigin-Name: feedbce8f149820d082ecde4437109cc6b6ea0e3
2009-04-15 13:07:19 +00:00
drh
1180936671 Fix malloc5.test so it work on both 64-bit and 32-bit systems. The
::tcl_platform(wordSize) variable has to be used to adjust some memory
sizes. (CVS 6499)

FossilOrigin-Name: ea20f78edb50778c40ed7f03f894ab898f58d67c
2009-04-11 19:09:53 +00:00
drh
66fd216045 Fix an obscure problem with recovery from I/O errors while rolling back. (CVS 6498)
FossilOrigin-Name: 24ff486125b9ad62dd92314b62299093b55fe82b
2009-04-11 16:27:49 +00:00
danielk1977
e589a67f6c Fix a case where a corrupt database could cause an assert() to fail. (CVS 6496)
FossilOrigin-Name: 2c560e057e1da8a603efc36deea036f2392a4ab9
2009-04-11 16:06:15 +00:00
drh
457e621e6e Allocate a little extra scratch space for the memsubsys1 tests. The
extra space is needed in some configurations. (CVS 6495)

FossilOrigin-Name: 5484419294356b704c2c9064f36ed254875ca8c0
2009-04-11 14:46:43 +00:00
danielk1977
1c50179332 Replace invocation of (really_finish_test) from async.test with (finish_test). Otherwise a tcl exception may be thrown when running permutations. (CVS 6493)
FossilOrigin-Name: e6465e9da3d754833c21e0fb76c16a4efd047b91
2009-04-11 10:25:03 +00:00
drh
3e078c7afc In the async test, make sure procedures do not get renamed over top of one
another. (CVS 6490)

FossilOrigin-Name: b6430cc4297c426f89e68f180a2c50b9b1ecd8e3
2009-04-10 20:55:13 +00:00
danielk1977
07a108934d Increase the error tolerance when verifying the approximate size of a pseudo-random database in backup_ioerr.test. Otherwise the test could fail depending on the PRNG seed. (CVS 6488)
FossilOrigin-Name: deda5ab35e7663ba5f30c08b16ef3393d7146816
2009-04-10 18:41:01 +00:00
danielk1977
cb25790250 Do not run io.test as part of the inmemory_journal permutation. io.test uses the tcl API to test for journal files in the file-system (which of course never exist when running with in-memory journals). (CVS 6487)
FossilOrigin-Name: 493f03bd73a15de994f69f23e9df8bb3ee4d20dc
2009-04-10 18:32:29 +00:00
drh
fe53f2e3f5 Re-enable the alt_pcache tests in permutations.test so that they run
automatically during a full regression.  Fix async.test so that it
works with the permutation.test pcacheNN test modules. (CVS 6486)

FossilOrigin-Name: 310192cc0fb56f8ffaa8e742f5600f16956212e7
2009-04-10 18:21:29 +00:00
drh
01e61eecb3 Disable the select1-15 tests when locking_mode is EXCLUSIVE. Ticket #3771. (CVS 6484)
FossilOrigin-Name: 88cefbb4a12ab7037f025141ddbe041ea82a6c61
2009-04-10 15:38:42 +00:00
danielk1977
d0f1958682 Changes to jrnlmode.test to account for in-memory temp databases. (CVS 6483)
FossilOrigin-Name: c31d4359ae056dca9e9de61ef8ceb683b92850e7
2009-04-10 15:02:43 +00:00
danielk1977
2a50ff0309 Always set BtShared.db when entering the BtShared mutex. Ticket #3793. (CVS 6480)
FossilOrigin-Name: ed6620ba589ddbb6ca86f42a7652e3b019195647
2009-04-10 09:47:06 +00:00
drh
0f5ea0b34c Remove misuse detection from the deprecated sqlite3_transfer_bindings()
interface.  The code was hard to test and was simply taking up space. (CVS 6476)

FossilOrigin-Name: 4cd829107cc9e94b092490aa821574492292b425
2009-04-09 14:02:44 +00:00
drh
bb77b753c5 Enhance sqlite3_shutdown() so that it automatically invokes
sqlite3_reset_auto_extension().  This is a harmless no-op if applications
are already calling sqlite3_reset_auto_extension() prior to sqlite3_shutdown().
And it prevents possible memory corruption if they do not.  So it works
either way.  Most of the changes are to the test cases. (CVS 6475)

FossilOrigin-Name: 0c41f7cff4f6ffb9321f6f6b6ef3e431b750d41a
2009-04-09 01:23:49 +00:00
drh
0a9aa2253c Do not attempt to walk a TokenOnly or SpanOnly expression tree node.
Ticket #3791. (CVS 6469)

FossilOrigin-Name: 8362d883248f00a8ec7294bf027fd19758aec5f2
2009-04-08 12:21:30 +00:00
drh
65a73bad9e Fix the sqlite3_unlock_notify() interface so that when the callback is NULL
it simply cancels any outstanding callbacks. (CVS 6467)

FossilOrigin-Name: 9ccfcb760745df28b04e746355b1b6dec49a93de
2009-04-07 22:06:57 +00:00
danielk1977
2943c37228 Fix compilation and testing when SQLITE_OMIT_TRIGGER is defined. Ticket #3786. (CVS 6464)
FossilOrigin-Name: 277dace43d51fbc79c7a62fc841c150ecd8d0823
2009-04-07 14:14:22 +00:00
danielk1977
c4d201c632 Have OP_IdxRowid handle the case where the index entry it is reading from is deleted. (CVS 6461)
FossilOrigin-Name: cdad29b582ca832f6a717d8a6e3f3bca424e84a4
2009-04-07 09:16:56 +00:00
danielk1977
ef165cedeb Test cases and minor code changes to increase coverage of btree.c. (CVS 6456)
FossilOrigin-Name: def3a016914f683818b5f013ec4efecbb8fd4c0d
2009-04-06 17:50:03 +00:00
drh
69a442ef1f Make sure the reverse_unordered_selects pragma works even on unindexed
tables that are queried without a WHERE clause (CVS 6453)

FossilOrigin-Name: d8c6b28a734fccbbbd567d98ffa7e6557280f737
2009-04-06 12:26:57 +00:00
drh
3c71364643 Allow the journal_size_limit to be larger than 2147483647 bytes. (CVS 6449)
FossilOrigin-Name: 81931259611ef10de731ea0e38cee92eb8629733
2009-04-04 16:02:32 +00:00
drh
818e39ad35 Make sure count(*) works on the sqlite_master table of an empty database.
Ticket #3774. (CVS 6443)

FossilOrigin-Name: e0c1a780f5a356c48b2a4cc66fab988fe441722f
2009-04-02 20:27:28 +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
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
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
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
5b413d785f Add some assert() statements to querySharedCacheTableLock(). (CVS 6421)
FossilOrigin-Name: 3e3b5e861aeff2e4ef568c422236fdf7fa22bed3
2009-04-01 09:41:54 +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
2929db8167 Added a test case for ticket #3672. (CVS 6414)
FossilOrigin-Name: 7f40576dd76cb67f5248739a0ef1fbe496a3b42a
2009-03-31 00:50:35 +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
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
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
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
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
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
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
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