Commit Graph

4336 Commits

Author SHA1 Message Date
drh
334b299462 Base the name of the statement journal on the original database filename.
Remember the statement journal name for the lifetime of the Pager so
that the name pointer passed to xOpen persists as long as the file
exists. (CVS 4410)

FossilOrigin-Name: 44d8d1e92d93a5bb28bd10281b4d87e89586ef58
2007-09-06 23:28:23 +00:00
drh
bf4bca541e Allocate page cache headers and page cache data buffers separately.
The data buffer will be a power of two in size and this gives some
malloc implementation additional optimization opportunitites. (CVS 4409)

FossilOrigin-Name: 2b755defe51a565a2b6ace58381d6e91f6f17db8
2007-09-06 22:19:14 +00:00
drh
24e824c4eb Updated comments on journal.c. No changes to code. (CVS 4408)
FossilOrigin-Name: 3298441086330d1d24c30b7c061dfec98e9ea3ac
2007-09-06 13:49:37 +00:00
danielk1977
bd468510ee Add some extra comments to the header in test_async.c. (CVS 4407)
FossilOrigin-Name: 79cf4e886cd5f1cd22574ce13135d4e32c1047b6
2007-09-06 07:47:18 +00:00
pweilbacher
5056b41c1f Fix temp file handling for OS/2 so that trailing slashes or backslashes
are stripped off the path gotten from the environment. Otherwise full
paths might contain multiple slashes which causes opening of files to
fail. (CVS 4406)

FossilOrigin-Name: 96aa96ac11ab63b51e4322e88ded4f931e1e78c8
2007-09-05 22:28:23 +00:00
drh
8674261a8f Fix a harmless typo in the PRNG initialization on win32. Ticket #2617. (CVS 4405)
FossilOrigin-Name: ea1d76e3fae599f7197f32852f1722b61ae3f8a7
2007-09-05 17:06:03 +00:00
danielk1977
7a4252b2bb Fix error handling (malloc and io errors) in the asynchronous backend. (CVS 4404)
FossilOrigin-Name: 80a44382d149b9d53212c15368565ede31aa2dc4
2007-09-05 16:54:41 +00:00
danielk1977
7be2cce333 Test that the asynchronous backend works with components like "." or ".." in the path to the database file. (CVS 4403)
FossilOrigin-Name: 0a87a854226ccea920484613dd7f7873e673c96e
2007-09-05 14:32:25 +00:00
drh
df6a81c838 Restore the sqlite3_mutex_try() optimization on winNT systems. (CVS 4402)
FossilOrigin-Name: 3aace2fa91e96038f7a32366828ac7520470fa67
2007-09-05 14:30:42 +00:00
danielk1977
ed10afb4c0 Remove the unixFile.isOpen variable (no longer in use). (CVS 4401)
FossilOrigin-Name: 1786e9c881a67fbf8bd014d643590534c8c601dc
2007-09-05 13:56:32 +00:00
danielk1977
b6be675dcb Fix a problem in the test scripts for the asynchronous backend. (CVS 4400)
FossilOrigin-Name: 630fc71f3df5ab6129ddff9d8184893ecc6cf3c5
2007-09-05 11:34:54 +00:00
drh
ca49cbaf63 Do not use the TryEnterCriticalSection API on windows since it is
unavailable on some platforms. (CVS 4399)

FossilOrigin-Name: bf3d67d1bd1c48fff45dc24818b8358f79c9fdef
2007-09-04 22:31:36 +00:00
danielk1977
7eda2cdbae Add external locking to test_async.c. There are still some tests to come. (CVS 4398)
FossilOrigin-Name: 3794dcd31a74e90b181b336bf6a4c917bda526b8
2007-09-04 18:28:43 +00:00
danielk1977
5bccfc95b1 Fix a problem whereby the *ppVtab output buffer passed to sqlite3_module.xConstruct() could be invalidated (freed) if a malloc() failure occured within a call to sqlite3_declare_vtab(). (CVS 4397)
FossilOrigin-Name: efd61df1b9170f0134787ae17ac996a7eff64add
2007-09-04 15:38:57 +00:00
danielk1977
7c836f06d3 Add internal locking to the test_async.c backend. So that more than one connection may be used from within a single process. (CVS 4396)
FossilOrigin-Name: 17ca684c124445f17d1e36c37e169056c5fd4569
2007-09-04 14:31:47 +00:00
drh
c0b3abb276 Clarify documentation on the return value from sqlite3_column_blob() for
a zero-length BLOB.  Clarify the documentation on what happens when you
have a zeroblob() with a negative length.  Additional test cases but no
changes to code.  Ticket #2623. (CVS 4395)

FossilOrigin-Name: 63ca02a5b2700858f0eceadc9b58b942d473b191
2007-09-04 12:18:41 +00:00
drh
79491ab85d Documentation fixes. No changes to code. Tickets #2622 and #2624. (CVS 4394)
FossilOrigin-Name: 2eadef90162590a7b947c38acf0016d0c55821c7
2007-09-04 12:00:00 +00:00
drh
268567179c Fix yet another typo on the homepage. Ticket #2621. (CVS 4393)
FossilOrigin-Name: d5fec873102728a1ea9fbdae6799780bfb98bcfb
2007-09-04 03:28:27 +00:00
drh
0bd1d1827e Fix a typo on the homepage. Ticket #2619. (CVS 4392)
FossilOrigin-Name: deecd934e651e6813cc364c41015bf3b15a2b193
2007-09-04 03:08:56 +00:00
drh
cee5411458 Version 3.5.0 Alpha (CVS 4391)
FossilOrigin-Name: 1b690be22a1359696728961d21054fa38f55e866
2007-09-04 02:38:14 +00:00
drh
2769329295 More documentation changes prior to the 3.5.0 alpha release. (CVS 4390)
FossilOrigin-Name: b15b03dfd6baef696c80ba1621cd36b1dbec1286
2007-09-04 01:58:26 +00:00
drh
dc05efb4ff Fix the malloc-10 test in malloc.test so that it will run on windows when
invoked from exclusive3.test. (CVS 4389)

FossilOrigin-Name: 1166f9c7d1b3cb39a2ab96ed08a0552ba5fe1851
2007-09-04 01:25:48 +00:00
drh
d33991c7ee Fix Makefile.in so that it rebuilds all source files that use SQLITE_TEST
when constructing the testfixture. (CVS 4388)

FossilOrigin-Name: dced71a010c14a53e0f71841b5fd55108b7f88b3
2007-09-03 22:15:45 +00:00
drh
3285db26e4 Fix btree.c so that it works with -DSQLITE_THREADSAFE=0 and -DSQLITE_DEBUG=1 (CVS 4387)
FossilOrigin-Name: fee2d7c0e6d34dd19ff5f7631c1743879068c8ce
2007-09-03 22:00:39 +00:00
drh
3f3b635451 Documentation updates in preparation for the release of version 3.5.0. (CVS 4386)
FossilOrigin-Name: c6809bf77625f420ac62513635628ff4f1766f83
2007-09-03 20:32:45 +00:00
danielk1977
c8bbbc5373 In sqllimits1.test, set MAX_SQL_LENGTH to a value smaller than MAX_LENGTH. (CVS 4385)
FossilOrigin-Name: 51726a9bb6c7f98c496302745656dc317ad5c094
2007-09-03 18:01:24 +00:00
drh
70c01456e8 Unix OS interface returns SQLITE_CANTOPEN following a getcwd() failure. (CVS 4384)
FossilOrigin-Name: ed15db4610bc6202c624234e48d234e0005825e4
2007-09-03 17:42:17 +00:00
danielk1977
5ce240a618 Remove an unreachable case from xferOptimization(). Also other minor test coverage improvements. (CVS 4383)
FossilOrigin-Name: 75af7189c0ed1b24a32cff6960af7f17326cbc17
2007-09-03 17:30:06 +00:00
drh
af5f040589 Fix the open file counter on windows. (CVS 4382)
FossilOrigin-Name: 40cf0c177635c087b7695a8c4c3b37da57f74425
2007-09-03 17:09:03 +00:00
drh
dec6fae9d9 Get the io.test tests working on windows. (CVS 4381)
FossilOrigin-Name: 1be70015e24f715a4276f253d2e0c0eec44650ee
2007-09-03 17:02:50 +00:00
drh
dfdcf2c582 Fix the incrblob.test on windows. Disable line terminator translation. (CVS 4380)
FossilOrigin-Name: ccbd2efebaecfd26d7016eb6684ad26c0bcc4e6b
2007-09-03 16:45:35 +00:00
drh
5a3032b3e2 Enable threadsafe builds by default in configure. Ticket #2606.
Changes to test scripts to do better testing under all configurations. (CVS 4379)

FossilOrigin-Name: d66e08fd4f12407e565dc9fc53a5802216808378
2007-09-03 16:12:09 +00:00
drh
4753889c55 Test script fixes to get things running under varying configurations.
No changes to code. (CVS 4378)

FossilOrigin-Name: 340a6d09bcde11065c1887b84bb81805b523ffb6
2007-09-03 15:42:47 +00:00
drh
386ef28bc2 Remove the last traces of SQLITE_ENABLE_REDEF_IO. (CVS 4377)
FossilOrigin-Name: 38dff76ddf0ec7d2cd0d2e1282f9c36558e5661a
2007-09-03 15:26:20 +00:00
drh
33f4e02af6 Honor the SQLITE_OPEN_ flags passed into sqlite3_open_v2(). Some
test cases added but more are needed.  Ticket #2616. (CVS 4376)

FossilOrigin-Name: 020a2b10d408f51d4ef3211c5f701f5378fd4625
2007-09-03 15:19:34 +00:00
danielk1977
cd2543b6ae Fix a problem in hash.c when replacing entries in tables configured with copyKey==0. (CVS 4375)
FossilOrigin-Name: a19d3a73a91f2040ec35d913f11743ff4913ffb7
2007-09-03 15:03:20 +00:00
drh
d1a793126a Improvements to the xRandomness() method on the default windows VFS.
Ticket #2615. (CVS 4374)

FossilOrigin-Name: 91b50f31e35652a40d51f5d9bf22efce36d515e4
2007-09-03 13:06:11 +00:00
drh
ee6c9722cc Document the fact that xRandomness is only called once from the default VFS.
Ticket #2614. (CVS 4373)

FossilOrigin-Name: e89d4131a1b55da1a7f226d7f7b416f02f5e2c6e
2007-09-03 12:34:57 +00:00
danielk1977
860b6cd2b9 Add a module-destructor to the echo module (test8.c) to improve code coverage. (CVS 4372)
FossilOrigin-Name: e3dd3651421ee723f9b7550fc333a308a83b276d
2007-09-03 11:51:50 +00:00
danielk1977
fa18bece7a Handle transient malloc() failures in sqlite3CreateFunc(). (CVS 4371)
FossilOrigin-Name: c0ce63196458c81e0859fc8a38f2dd2145a580bc
2007-09-03 11:04:22 +00:00
danielk1977
369ff42e77 Fixes to test code so that the test suite passes without SQLITE_MEMDEBUG defined. (CVS 4370)
FossilOrigin-Name: ed2a2e0102c4fd2221096028d55a6f1d54f97274
2007-09-03 07:31:09 +00:00
drh
e9bb50ae50 The sqlite3_vfs_register() interface now calls sqlite3_vfs_find(0) to make
sure the VFS subsystem is initialized.  Ticket #2611. (CVS 4369)

FossilOrigin-Name: 4a9999a36d01a8c6490792605a6f7e233cc4402c
2007-09-02 17:52:04 +00:00
drh
0d097d4629 Fix function name typo in mem1.c. This bug managed to make it into
the tree because the code in mem1.c is only compiled when the
-DSQLITE_MEMDEBUG compile-time option is omitted.  But
pre-checkin tests usually include this option.  Ticket #2612. (CVS 4368)

FossilOrigin-Name: 59e02db2402f9fcadfbeee88ab5778d27ddde634
2007-09-02 17:50:35 +00:00
danielk1977
880c15beb9 Fix a bug in jrnlTruncate(). And other coverage improvements. (CVS 4367)
FossilOrigin-Name: 02b751fb9dbc683b1b77a2ed3cdeb4190f7339e0
2007-09-01 18:24:55 +00:00
drh
4ff7fa0d67 Comment changes in sqlite.h.in in order to generate better capi3ref.html
documentation. (CVS 4366)

FossilOrigin-Name: 280474595687bb843872f1bbc82cda3b1982085c
2007-09-01 18:17:21 +00:00
danielk1977
d7d2f93cbb Remove code for calling the SQL function randstr() with 0 or 1 argument, as it is registered with sqlite as requiring exactly 2. Also test io errors in sqlite3_release_memory(). (CVS 4365)
FossilOrigin-Name: 5842f68c1ba838f24e9ba02c818d308540d591a4
2007-09-01 17:00:12 +00:00
danielk1977
843e65f2fc Remove the syncOk argument to pager_recycle. Now that sqlite3_memory_release uses a global lru list of page, it is no longer required. (CVS 4364)
FossilOrigin-Name: fb27692ab10b22851b265348bb6b3e1dececd60f
2007-09-01 16:16:15 +00:00
danielk1977
28c66307d7 Test sqlite3_bind_zeroblob(). Only include sqlite3Utf8To8 in builds if SQLITE_DEBUG is defined. (CVS 4363)
FossilOrigin-Name: fde6142b7bb33198b3d6b65cfbddfad61694b1fb
2007-09-01 11:04:26 +00:00
danielk1977
b8cdbec246 Allow sqlite3GetInt32 to recognize 10-digit decimal numbers as 32-bit. (CVS 4362)
FossilOrigin-Name: 7571345d2078fb52029f9b9924d833ec36d443e6
2007-09-01 10:01:12 +00:00
danielk1977
ca0c89715e Fix a problem handling a malloc() failure in printf.c. Also some other things to improve test coverage. (CVS 4361)
FossilOrigin-Name: 595bfe72f053bc6ecb58bb9044a4cdc53d30b404
2007-09-01 09:02:53 +00:00