Commit Graph

4354 Commits

Author SHA1 Message Date
drh
326c3fca85 Add tests to prevent a regression of the short read problem discovered
in version 3.2.2. (CVS 4428)

FossilOrigin-Name: 995c63b561e935b6a1da34590cb40582f5c30cee
2007-09-14 01:48:11 +00:00
shess
961303c1e7 Drop the forced error from fts3.c and add forced errors to fts2.c and
fts1.c. (CVS 4427)

FossilOrigin-Name: fec6567a0f8a868cda9bba2a473491dfb17b6c88
2007-09-13 18:16:08 +00:00
shess
d83ae45639 Add an implicit (HIDDEN) docid column. This works as an alias to
rowid, similar to how things work in SQLite tables with INTEGER
PRIMARY KEY.  Add tests to verify operation. (CVS 4426)

FossilOrigin-Name: c8d2345200f9ece1af712543982097d0b6f348c7
2007-09-13 18:14:49 +00:00
shess
0ec85ae216 Mark the table-named column HIDDEN. Add tests to make sure it's
working as expected. (CVS 4425)

FossilOrigin-Name: ca669eaf1b4af441741129bee4af02f32a7c74b8
2007-09-13 18:12:09 +00:00
drh
8e70e34a28 Fix incorrect index cost assumptions that occur after an ANALYZE.
Ticket #2643. (CVS 4424)

FossilOrigin-Name: 2cfdbfe6543bac42961deecec7d085d806e604b5
2007-09-13 17:54:40 +00:00
danielk1977
4152e677b8 Fixes for compilation/testing when the various OMIT macros are defined. (CVS 4423)
FossilOrigin-Name: c8405b15c074c94dab5e33272cf1471f458d11df
2007-09-12 17:01:45 +00:00
drh
a430ae8e54 In the query optimizer, make sure table dependencies from all terms
of a compound SELECT statement are recognized so that subqueries in
a WHERE clause are not evaluated too early.  Fix for ticket #2640. (CVS 4422)

FossilOrigin-Name: 9c9c2a1da2b6235b3b0541d1f55a02a1f350567f
2007-09-12 15:41:01 +00:00
danielk1977
076f1c0d63 Add a missing semi-colon to os_win.c. Ticket #2642. (CVS 4421)
FossilOrigin-Name: c6ee5929e7d1f9b7c351f57ee8886f71ea0b6619
2007-09-12 14:09:23 +00:00
danielk1977
c15f0b3df7 Fix a problem in the noop-mutexes used for testing. (CVS 4420)
FossilOrigin-Name: 4dbeb915b3138194abd5554b52003162235f9a5f
2007-09-10 16:12:59 +00:00
danielk1977
e9dcd5e6e3 Add another test file to help verify thread-safety. (CVS 4419)
FossilOrigin-Name: c758cc1d885b4528c0b0ef6382119f20956d4816
2007-09-10 10:53:01 +00:00
danielk1977
49e439d934 Enhance thread001.test again, this time to also test in shared-cache mode. (CVS 4418)
FossilOrigin-Name: 54f87899033ddd892bfd3a16310f64fb42d807ae
2007-09-10 07:35:47 +00:00
danielk1977
d9b5b1177d Upgrade thread001.test to test with multiple database handles. (CVS 4417)
FossilOrigin-Name: 6ee2b8ffc4310c8e329f634f3ade058b33c53a2a
2007-09-10 06:23:53 +00:00
danielk1977
667a6c98e9 Fix an undeclared identifier in an IOTRACE (debugging) block. (CVS 4416)
FossilOrigin-Name: 48e59c747f2be08102f16290fa57dfffc2ae920d
2007-09-10 06:12:04 +00:00
danielk1977
570f7e2505 Modify test_thread.c to use tcl apis for creating threads. (CVS 4415)
FossilOrigin-Name: 9b7bab7fc28201b62159e959651acb980095ad06
2007-09-07 18:40:38 +00:00
drh
b9ee493971 Fix a segfault that could occur while attempting to add new pages
to the freelist in a corrupt database. (CVS 4414)

FossilOrigin-Name: c8e85fff7ede68f0b8c8ebfe3df4b26a630abeff
2007-09-07 14:32:06 +00:00
danielk1977
44918fa036 Add the beginning of the thread-safety tests. There are more to come. (CVS 4413)
FossilOrigin-Name: 753908e8411024abd5c3da1b8c62f70e35f8734d
2007-09-07 11:29:25 +00:00
drh
91a66398f1 Modify the CLI so that it will ignore whitespace at the end of lines.
Ticket #2631 (CVS 4412)

FossilOrigin-Name: f780a17f4b0e679479c2b368d8659a0ee61c343d
2007-09-07 01:12:32 +00:00
drh
7dc385ee85 Throw an error on an attempt to open a database where the page
size is larger than SQLITE_MAX_PAGE_SIZE.  Ticket #2628. (CVS 4411)

FossilOrigin-Name: 4881f7cb37e35dcf5da358464ac858a508128e47
2007-09-06 23:39:36 +00:00
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