Commit Graph

4611 Commits

Author SHA1 Message Date
drh
78d1ef1a51 Add disabled test cases for ticket #2652. We will enable these test cases
after #2652 is fixed.  The fix will be difficult and will probably take
a while.  On the other hand, correlated aggregate queries have never
worked in SQLite and the problem is just now coming to light, so it is
probably not a pressing issue. (CVS 4435)

FossilOrigin-Name: 5c41619e292699c72231cff10e26dfbe9a363a00
2007-09-18 16:53:52 +00:00
drh
728b577934 Remove unneeded pSchema field from the Expr structure. (CVS 4434)
FossilOrigin-Name: b2d605a2714245febb316a24edc7a076e21a3849
2007-09-18 15:55:07 +00:00
danielk1977
adfb9b0501 Add a parameter to specify the size of the output buffer passed to xGetTempname() and xFullPathname(). This, and the previous commit, are changes to the public vfs API introduced in 3.5.0. (CVS 4433)
FossilOrigin-Name: 8b29f5fbfc723cdf67cf3410cd01f7c17ea39a4b
2007-09-17 07:02:56 +00:00
danielk1977
76ee37f9bb Change the names of xGetTempName and sqlite3OsGetTempName to xGetTempname. To be consistent with xFullPathname and sqlite3OsFullPathname. (CVS 4432)
FossilOrigin-Name: ad3687b16e9420d8bbaa3a645aaf803813b36061
2007-09-17 06:06:39 +00:00
drh
6ac164d708 Corrections to the winCE code. Untested. (CVS 4431)
FossilOrigin-Name: 8cc51e0a817115c4eb667f7257a3f5a4a39d0a4a
2007-09-14 20:32:18 +00:00
danielk1977
a15db35304 Minor fixes for the OMIT_INCRBLOB compilation option. (CVS 4430)
FossilOrigin-Name: 87e37eabf0ddef252bbc12f6857d33c2b136dcd3
2007-09-14 16:20:00 +00:00
danielk1977
b61c16d987 Add demo code for a vfs that operates on a single pre-allocated file. (CVS 4429)
FossilOrigin-Name: 15680ca4821ec0652dfbe863199b4c3f2afad4ba
2007-09-14 16:19:27 +00:00
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
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
danielk1977
95c8a54c7d Fix for registration of non-default vfs objects. (CVS 4360)
FossilOrigin-Name: 5f48fb95c26a713b3259ee49fd444108030376dc
2007-09-01 06:51:27 +00:00
danielk1977
c3f759bd33 Fix a bug in loadext.test. (CVS 4359)
FossilOrigin-Name: 2be8af9d402a5cd8da8c348883188eb38900f6dc
2007-09-01 06:19:05 +00:00
danielk1977
98cab2c038 Call sqlite3OsDlError to obtain error information after DlOpen or DlSym fail. (CVS 4358)
FossilOrigin-Name: 3d74256c9123e8434c68e6a0c5b61686b34a4328
2007-09-01 05:57:49 +00:00
drh
f869347555 Change the windows tempfile name generator so that it uses 119 bits
of randomness and does not bother to check to see if the file already
exists.  Ticket #2608.  (Unable to test from this machine, but the
changes are simple and isolated.  Hope it works.) (CVS 4357)

FossilOrigin-Name: ca6c1e3f44d8b9d9b76a0efe53ea6a6ad5e14d57
2007-09-01 02:13:10 +00:00
drh
0e3c083088 Get make doc working again. (CVS 4356)
FossilOrigin-Name: 8f73ebc6e30467d2c594701e0aa45b53147ef2ef
2007-08-31 18:50:31 +00:00
drh
9e33c2c108 Remove the xLockState method for sqlite3_io_methods. Replace it with
a defined call to xFileControl().  This simplifies the interface and
also gives us coverage testing of sqlite3_file_control(). (CVS 4355)

FossilOrigin-Name: 306586c412b87c6d12bac796641517afa3f9eb6a
2007-08-31 18:34:59 +00:00
danielk1977
e6a58a4e2a Allow sqllimits1.test to be run from a regular build of testfixture. Add the 'amalgamation-testfixture' target to main.mk - to build testfixture via sqlite3.c. (CVS 4354)
FossilOrigin-Name: d119427314d27f291b605073d34826cdb89746c1
2007-08-31 17:42:48 +00:00
drh
cc6bb3eaeb Initial implementation of the sqlite3_file_control() interface.
Compiles and passes all historical tests but the new method is itself
untested. (CVS 4353)

FossilOrigin-Name: d3ab3e3911f10b17d0859a34f4f007c790a0cd82
2007-08-31 16:11:35 +00:00
drh
3570ad93d8 Convert the TCL interface to use sqlite3_open_v2 (CVS 4352)
FossilOrigin-Name: 3434b7a9213f210498f43cb5094a0f3f5c25b957
2007-08-31 14:31:44 +00:00
danielk1977
85378228b6 Fix a problem in malloc3.test preventing all.test from completing. No code changes. (CVS 4351)
FossilOrigin-Name: ee9b3e5e38c52f5669009a08aec58678ccad0d87
2007-08-31 05:00:48 +00:00
drh
b67e8bf071 Add the experimental sqlite3_threadsafe() API. (CVS 4350)
FossilOrigin-Name: 1b39a714efbe1f4ccc8daf68a227a8c9b84a388f
2007-08-30 20:09:48 +00:00
drh
ad3e78b671 Fix the loadable extension module so that it will compile with
SQLITE_THREADSAFE=0. (CVS 4349)

FossilOrigin-Name: a73a8b50f76f4f948a4080070ac2354d8ea05515
2007-08-30 20:09:27 +00:00
shess
ae00b4e64b Fix discrepency in the test pointed out by a user. Was testing fts2 :-). (CVS 4348)
FossilOrigin-Name: 65c62ed85edd2cb3cf26f01fadf3b342c1e8a20f
2007-08-30 20:01:32 +00:00
shess
999cc5d7e8 Fix memory leak reported by an fts1 user. Was losing a doclist on a
query error. (CVS 4347)

FossilOrigin-Name: eee025024972852990e704253d1443c1cefb376c
2007-08-30 19:56:37 +00:00
drh
61f6dc608f Make mutex functions available to loadable extensions. Fix the
amalgamation generator to include the latest source files. (CVS 4346)

FossilOrigin-Name: 293a3f837bd6c6a26f694a9210e59ace23abb6bb
2007-08-30 17:15:37 +00:00
drh
e1843aff8c Fix a memory leak in the win32 OS driver. Ticket #2602. (CVS 4345)
FossilOrigin-Name: 1f80cf5e759af68b854d4de2e97badf546a465ca
2007-08-30 16:46:04 +00:00
danielk1977
8601124d56 Fix the "test_destructor" test function in utf-16 mode. Fix for test failure in utf16 version of func.test. (CVS 4344)
FossilOrigin-Name: c073b78040e5833de038dea464ac87c7358b8b51
2007-08-30 16:30:27 +00:00
drh
428e282662 Make the latest interfaces usable by loadable extensions. (CVS 4343)
FossilOrigin-Name: e9b2700b8c30b0255c9e33419ff18bdebb78087a
2007-08-30 16:23:19 +00:00
danielk1977
2f2d8c7331 Prevent sqlite from opening directories as databases under unix. Fix for test cae in misc7.test. (CVS 4342)
FossilOrigin-Name: e30546504c59c7d92d83a32d9b7e83edc175e247
2007-08-30 16:13:33 +00:00
danielk1977
cd03724cb2 Check in extra fixes for malloc4.test. (CVS 4341)
FossilOrigin-Name: 49ce3a838194f0316c883dbe1596d13c0c0fad1b
2007-08-30 15:46:06 +00:00
danielk1977
744f574889 Fixes for malloc4.test. (CVS 4340)
FossilOrigin-Name: 23746924db3c005d1f75572c6cbb91db6fc41eb4
2007-08-30 15:16:04 +00:00
drh
60d09a712c Fix the SQLITE_MIXED_ENDIAN_64BIT_FLOAT option so that it works on
goofy linux kernels that employ CONFIG_FPE_FASTFPE.  Patch from
Frank van Vugt. (CVS 4339)

FossilOrigin-Name: 71ab92e900512ad01047b46f734bd5f65998ecf9
2007-08-30 15:05:08 +00:00
drh
f81fe71c2a Fix a ref-count problem in the TCL bindings. Ticket #2597. (CVS 4338)
FossilOrigin-Name: 18a5babb72102f9a82cb24757612a8b683a3f995
2007-08-30 14:58:20 +00:00
danielk1977
c16d463085 Remove the SYNC_BARRIER flag. (CVS 4337)
FossilOrigin-Name: 5a22d8695b49cf7bc2eee382b66a98d29adb9e6e
2007-08-30 14:49:58 +00:00
danielk1977
37f0d22199 Fixes to malloc3.test so that it can run in transient or persistent failure mode. (CVS 4336)
FossilOrigin-Name: e14e3688eb64577a2a7070e4e47e715a5d7d5089
2007-08-30 14:41:34 +00:00
drh
c7ce76af8f Bug fixes in the mutex header file. Tickets #2599 and #2600. (CVS 4335)
FossilOrigin-Name: 4bdfe1419c536fec5b3c0a7fbe3d0ff52f183f43
2007-08-30 14:10:30 +00:00
danielk1977
7751940d6e Fixes for failures in fuzz_malloc.test. (CVS 4334)
FossilOrigin-Name: d3e502263808c1fe0487fda02f16adcbb1279183
2007-08-30 11:48:31 +00:00
danielk1977
eacb6c59bc Fix some problems in async2.test. No code changes. (CVS 4333)
FossilOrigin-Name: d80d87c239df06ef2182bc2b78e6d4c1852d28c9
2007-08-30 10:49:54 +00:00
danielk1977
992772c867 Better handle a malloc() failure in sqlite3PagerSetPagesize(). (CVS 4332)
FossilOrigin-Name: 41550d87c9395ab2fec5993655865e29235130a3
2007-08-30 10:07:38 +00:00
danielk1977
f3c626594e Fix a bug in a test file causing malloc5.test to crash. (CVS 4331)
FossilOrigin-Name: ab09967bd2dd291030850d44c0862fbb7d0d8118
2007-08-30 08:27:39 +00:00
danielk1977
65839c6afd Add tests for malloc() failure when the atomic-write optimization is being used. Also fix things so that rollback can occur without a malloc(), even if there is a master journal file. (CVS 4330)
FossilOrigin-Name: 481fd3a89e50e329596d96565170e3d9977aae29
2007-08-30 08:08:17 +00:00
drh
c1a7f94098 Test case fixes for fulltest. (CVS 4329)
FossilOrigin-Name: cddce4950569ac49c1a5224b200b00dcd83a2ba4
2007-08-30 02:26:53 +00:00
drh
fb98264aab Fix for the sqlite3AbortOtherActiveVdbes() problem. (CVS 4328)
FossilOrigin-Name: e40d40a5d41c491bef852a92e5846b273b206909
2007-08-30 01:19:59 +00:00
drh
107b25f1bd Fix minor problems on various tests. This is a snapshot prior to possible
major changes in order to fix the sqlite3AbortOtherActiveVdbes problem. (CVS 4327)

FossilOrigin-Name: 35cb63ecfd9d8ca7304aae1b150ee5d1c3498bde
2007-08-29 19:15:08 +00:00
drh
df12a9bca4 Fix a bug in test_server.c that resulted from the change in semantics
of sqlite3_enable_shared_cache().  All quick tests now pass. (CVS 4326)

FossilOrigin-Name: 5201fa4f8310ffc8b6881d96b152581d74e2df6b
2007-08-29 18:20:16 +00:00
drh
d6b9386c50 Disable tests that require SQLITE_ENABLE_ATOMIC_WRITE if that feature is
not enabled. (CVS 4325)

FossilOrigin-Name: 4874499377e8f89a25d8cc2cf7982e6811d53f1b
2007-08-29 17:59:42 +00:00
drh
ff0587c632 Improvements to mutex asserts. The quick test runs to completion without
assertion faults. (CVS 4324)

FossilOrigin-Name: 2732af0ec77dbc90c0439b6a61d893d9ea3b5697
2007-08-29 17:43:19 +00:00
danielk1977
26783a58e2 Use the DbMalloc() and DbRealloc() functions more consistently. (CVS 4323)
FossilOrigin-Name: c790c234c369c6b7610e67dcaaa9eee347df729c
2007-08-29 14:06:22 +00:00
drh
f53e9b5ad5 Be careful to verify the schema cookie when running the xfer optimization
on INSERT statements. (CVS 4322)

FossilOrigin-Name: d8ef7024172fffee049cfda6707220af2577e9a1
2007-08-29 13:45:58 +00:00
danielk1977
a1644fd863 Modifications to the malloc failure tests to test transient and persistent failures. (CVS 4321)
FossilOrigin-Name: e38ef81b85feb5bff2ad8448f3438ff0ab36571e
2007-08-29 12:31:25 +00:00
drh
1fee73e74a Better asserts(). But now some of the tests are busted again. (CVS 4320)
FossilOrigin-Name: e8060f85e7871572e2a38dc96f03e6e1f34cc8fd
2007-08-29 04:00:57 +00:00
drh
b1ab8ea7f3 More locking fixes. Now makes it all the way through quick.test. There
are errors but no assertion faults.  Progress. (CVS 4319)

FossilOrigin-Name: 844d40b8379d3374130e2d94f6e32c2cda34e0ca
2007-08-29 00:33:07 +00:00
drh
dfbf178469 The shared_err test runs with no errors. But a potential deadlock has been
discovered and is still unfixed. (CVS 4318)

FossilOrigin-Name: f093a0d7b29a819605e0527bf23a047e16c32688
2007-08-28 23:28:07 +00:00
drh
4cf7c7f7e7 The shared_err test runs with no errors. But a potential deadlock has been
discovered and is still unfixed. (CVS 4317)

FossilOrigin-Name: f84550be0a0c9e5859b852863b9a8f8ed3fd6919
2007-08-28 23:28:07 +00:00
drh
d0679edc7a Clean up the locking in the btree logic. (CVS 4316)
FossilOrigin-Name: 967ab229af462a8ae663090ea36b4cc10e351653
2007-08-28 22:24:34 +00:00
shess
27a770e044 Fix memory leak of InteriorReader.term. Comes up when doing queries
against large segments. (CVS 4315)

FossilOrigin-Name: 6c617bd89fc57881a2a308a6360e8ebb42835d46
2007-08-28 20:36:53 +00:00
pweilbacher
6e180029b3 remove unused os_os2.h (CVS 4314)
FossilOrigin-Name: dd43a2de3ed1659d70361370d07a184dd8ece45f
2007-08-28 19:21:21 +00:00
drh
ac32155213 Fix locking bug in btshared.c. (CVS 4313)
FossilOrigin-Name: af24e7d01a7fab5e33080a0f786e0bc6f610a6f3
2007-08-28 16:44:20 +00:00
drh
437b901371 Break up the mutex implementation into separate source files, one
each for unix, w32, and os2. (CVS 4312)

FossilOrigin-Name: fc5cd71aef5ac194f51d73350d773d532020967e
2007-08-28 16:34:42 +00:00
drh
9da9d96242 Updates to the sqlite3_open() documentation. Method the magic
:memory: filename.  Ticket #2591. (CVS 4311)

FossilOrigin-Name: 5f55b2fc4ecdfc1bb68f479751b8642926fd8833
2007-08-28 15:47:44 +00:00
drh
b6f5cf331c Update the sqlite3_vfs_register() documentation to make
the behavior undefined for VFSes with a NULL or empty string
as the name or with duplicate names. (CVS 4310)

FossilOrigin-Name: e7a98b48384ea581d98dad5118ee33468d526c62
2007-08-28 15:21:45 +00:00
danielk1977
6e513c16dc Use "affected" instead of "effected". Ticket #2589. No code changes. (CVS 4309)
FossilOrigin-Name: 4c5631ce347a25dd6df90e7e4395a55cd750c1c9
2007-08-28 08:19:49 +00:00
danielk1977
84f786fcdd Add some comments and test-cases for the global lru page list (used by sqlite3_release_memory()). (CVS 4308)
FossilOrigin-Name: 0b80168895993af5774369f839f284712d006f0a
2007-08-28 08:00:17 +00:00
drh
900b31ef49 Work toward correct btree locking in a multithreaded environment. (CVS 4307)
FossilOrigin-Name: b8cc493b47e618648f645ab73eb0253739e03fcd
2007-08-28 02:27:51 +00:00
drh
da57895fec Disable tests that debug on SQLITE_MEMDEBUG when that macro is not defined. (CVS 4306)
FossilOrigin-Name: 741d6fb096dcb232871d3a8468c386022afcf554
2007-08-27 23:48:23 +00:00
drh
4bfc8a97f9 Fix the autoconf makefile with all the latest changes. (CVS 4305)
FossilOrigin-Name: bc6d73d015327a9cf6b687aaf4b3f0d07e0fd484
2007-08-27 23:38:43 +00:00
drh
46c99e0f5d Work around problem with forward declarations of constants in MSVC
in the amalgamation.  Ticket #2574. (CVS 4304)

FossilOrigin-Name: dc80b2e1f4e1d31479aad9f39e651e62f2601fb8
2007-08-27 23:26:59 +00:00
drh
97c8ec325d Bring the amalgamation builder up to date with the latest changes.
Remove some vestigial code. (CVS 4303)

FossilOrigin-Name: 0ae30e5c76d9094307ea086a9993a953631ab9da
2007-08-27 21:49:34 +00:00
drh
50d3f9064b Added the 34to35.html document describing the changes between 3.4.2 and
3.5.0.  Minor interface cleanups. (CVS 4302)

FossilOrigin-Name: 0791f917bb18d7305b805b9cbcb308bdd7b3a1f5
2007-08-27 21:10:36 +00:00
danielk1977
9f61c2f129 Modify sqlite3_release_memory() to use a global LRU list of pages. Untested. (CVS 4301)
FossilOrigin-Name: 5626ce0b5e249d48b56fdc4561ef663941eb23dc
2007-08-27 17:27:49 +00:00
drh
4b6b4ab0d2 Create a fresh pthread_mutexattr_t every time a recursive mutex is
allocated.  Ticket #2588. (CVS 4300)

FossilOrigin-Name: 3d746343add3feb9d208302a00b419d71d6ba246
2007-08-25 16:31:29 +00:00
drh
8bacf9743f Documentation and comment updates in sqlite.h.in and mutex.c. (CVS 4299)
FossilOrigin-Name: 7289079d6b4a7a160063e34c0f5e43637ef7476f
2007-08-25 16:21:29 +00:00
drh
f77a2ff5dc Clarification in the documentation of the sqlite3_mutex_held() and
sqlite3_mutex_notheld() interfaces.  Make it clear that these routines
are only for use inside assert(). (CVS 4298)

FossilOrigin-Name: a6bbf6eaf6ccc471b4efe02cd8a3971112d909ab
2007-08-25 14:49:36 +00:00
drh
058897a92e Use recursive mutexes in pthreads. If the pthreads implementation does not
support recursive mutexes, then you cannot compile SQLite with
SQLITE_THREADSAFE=1.  Ticket #2588. (CVS 4297)

FossilOrigin-Name: 1668284d151e78d16b0d83bf55dfd9d349a452a7
2007-08-25 14:39:45 +00:00
danielk1977
222a757dba Update the rest of the malloc failure test scripts to use the new interface. (CVS 4296)
FossilOrigin-Name: b076e1655d6bae5ae10e6ceee646f502435da66a
2007-08-25 13:37:48 +00:00
danielk1977
cdc3a6bcbc Fix bugs in the altermalloc.test and incrblob_err.test scripts. (CVS 4295)
FossilOrigin-Name: e5ec17071720a973bbd213a8b23038d3aff25315
2007-08-25 13:09:26 +00:00
danielk1977
df7ca22abb Update the async2.test test script to use the new malloc() failure simulation interface. (CVS 4294)
FossilOrigin-Name: 686fcfeda407c29cdb51fe814da616f1ccac5414
2007-08-25 12:39:28 +00:00
danielk1977
0e87b70100 Make the test_async backend work again. (CVS 4293)
FossilOrigin-Name: 04167483aad42d319393e8caf470d8de11e468d8
2007-08-25 12:29:30 +00:00
drh
dc3060fea3 Bug fix in the implementation of recursive mutexes using non-recursive
pthreads mutexes.  Ticket #2588. (CVS 4292)

FossilOrigin-Name: 7d24c3a5a7641df2bbb8c91a0bc5aa75c96a73fe
2007-08-25 03:59:08 +00:00
drh
bff101efd7 New mutex implementation for both Unix and windows. (CVS 4291)
FossilOrigin-Name: e144b81f699ca991cc4fa12a487156391db0b367
2007-08-24 20:46:59 +00:00
rse
e806566248 fix cleanup by removing sqlite3.pc (generated by 'configure') on 'make distclean', too (CVS 4290)
FossilOrigin-Name: 3c908648353a575c3ff57be5dd9454a946d23b9f
2007-08-24 18:32:58 +00:00
drh
b11caac316 Rework the win32 OS driver to use malloc()/free() directly rather than
going through the SQLite memory allocation layer.  With this change, the
complete quick.test script now runs on windows.  There are a few errors,
but no segfaults.  Progress. (CVS 4289)

FossilOrigin-Name: 75aad316981690d7a93ea6ac1c187f7d98f6d715
2007-08-24 17:52:21 +00:00
drh
ae28c01aa8 Fix bugs in temp database handling introduced by the prevous check-in. (CVS 4288)
FossilOrigin-Name: 300038be9368556a29efce7cf3657fabfe54d8f9
2007-08-24 16:29:23 +00:00
drh
1cc8c448b5 Remove nRef and vfsMutex from the sqlite3_vfs structure. Omit the
sqlite3_vfs_release() interface.  Less memory allocated for a pager
in the common case where the size of the pathname is less than MAX_PATH. (CVS 4287)

FossilOrigin-Name: b8451da378179d43f25d9a014480c0f13dd1dc37
2007-08-24 16:08:29 +00:00
danielk1977
9663b8f92d Select the default page size for new databases based on the sector-size and IOCAP flags. (CVS 4286)
FossilOrigin-Name: 13dda2e8e879835c21e539ba3ff8f96face1af4c
2007-08-24 11:52:28 +00:00
drh
f78799e637 Remove unnecessary sqlite3MallocDisallow() that was preventing win32 from
running. (CVS 4285)

FossilOrigin-Name: eb6c98fc1097b327453d7e8ec8877101ea8187c3
2007-08-24 11:43:36 +00:00
danielk1977
f55b899824 Add tests to simulate power-failure on devices that support IOCAP_SEQUENTIAL or IOCAP_SAFE_APPEND. (CVS 4284)
FossilOrigin-Name: bdf5cb8d25d93d48220ce46acad2ccf967a87843
2007-08-24 08:15:53 +00:00
drh
d5499d648f Bug fix in the memory leak trace output. (CVS 4283)
FossilOrigin-Name: a1b495c28a092c7eb79ffeeb6a217749acb4c12c
2007-08-24 04:15:00 +00:00
drh
153c62c461 The win32 driver compiles but does not yet work well. Many bugs
fixed. (CVS 4282)

FossilOrigin-Name: 3a68fcddfa9184e4b310ce0a21312c54b9462ec8
2007-08-24 03:51:33 +00:00
shess
bae37537b0 Make comments and variable naming more consistent WRT rowid versus
docid/blockid.  This should have no code impact. (CVS 4281)

FossilOrigin-Name: 76f1e18ebc25d692f122784e87d202992c4cfed2
2007-08-23 20:28:49 +00:00
shess
6beeb0329a Fix fts3 to not have the VACUUM bug from fts2. %_content.docid is an
alias to fix the rowid for documents, %_segments.blockid is an alias
to fix the rowid for segment blocks.  Unit test for the problem. (CVS 4280)

FossilOrigin-Name: 6eb2d74a8cfce322930f05c97d4ec255f3711efb
2007-08-23 20:23:37 +00:00
danielk1977
6897ca30b5 Add some warm-body tests for rollback journal i/o enhancements. (CVS 4279)
FossilOrigin-Name: ff3770f855c1dd75025b1f2496f8c75e9f17ee44
2007-08-23 16:27:21 +00:00
danielk1977
4cd2cd5c69 Add code to reduce rollback journal i/o based on IOCAP flags. As yet untested. (CVS 4278)
FossilOrigin-Name: 595568492e63822caed5b6970542dcee4615dc4d
2007-08-23 14:48:23 +00:00
danielk1977
863c0f9b87 Ensure temporary files are deleted when they are closed. (CVS 4277)
FossilOrigin-Name: cf4e3c158aa71afc91f263a314c2e750d191fb41
2007-08-23 11:47:59 +00:00
danielk1977
f8940aefb6 Add some further tests and a bugfix for the atomic-write optimization. (CVS 4276)
FossilOrigin-Name: 5f0fb894f44069c4aa9b8dba62b4d8a262c991de
2007-08-23 11:07:10 +00:00
danielk1977
2ca0f86354 Add some tests for the atomic-write optimization. (CVS 4275)
FossilOrigin-Name: e2cc7b4a3476a733b2701546f6b4ec9abc18152b
2007-08-23 08:06:44 +00:00
drh
aa9f112137 Change names of constants in lemon.c to work around name conflicts
on Solaris.  Ticket #2583. (CVS 4274)

FossilOrigin-Name: e4e74cd0f9343448ea38e57f08bb4f0616825f31
2007-08-23 02:50:56 +00:00
drh
4a50aac564 Improvements to memory leak detection. The --backtrace=NNN option is now
recognized by tester.tcl.  Memory leak summaries are automatically written
to the file ./memleak.txt and each leak is tagged with the test in which
it occurred.  The quick.test script runs on Linux with no errors and
no leaks. (CVS 4273)

FossilOrigin-Name: 21f6b31097692171c6493e6ca6de6acbd62dc595
2007-08-23 02:47:53 +00:00
drh
ed138fb3bc All of the malloc test cases run. Still seeing failures in malloc4.test. (CVS 4272)
FossilOrigin-Name: 205d0b881d541db65837ce6cf44d58d607635bc2
2007-08-22 22:04:37 +00:00
drh
f3a65f7e44 The malloc.test script now passes all tests with no errors. (CVS 4271)
FossilOrigin-Name: db818430e9ea4ef4a4af575784009d5acae785a3
2007-08-22 20:18:21 +00:00
danielk1977
dd97a49c1a Fix a bug in the logic for journaling pages when the device sector-size is greater than the page size. (CVS 4270)
FossilOrigin-Name: b6399dff1370449912391cc5925bdc468b5dade0
2007-08-22 18:54:32 +00:00
drh
cab5ed7a57 Get the quick.test script running with SQLITE_THREADSAFE enabled. (CVS 4269)
FossilOrigin-Name: 1f28b7e47bba221c14a10a37e7425c9975bb2312
2007-08-22 11:41:18 +00:00
danielk1977
c7b6017c8a Add code for the atomic-write optimisation. Disabled by default. (CVS 4268)
FossilOrigin-Name: 581fadfe31757e3fb97b12f93c1e3c085e4b6009
2007-08-22 11:22:03 +00:00
drh
1f12f9aa30 Remove a debugging btree_breakpoint from vtab1.test. (CVS 4267)
FossilOrigin-Name: 6cc8641ed2fbfc32d418ce153f2819052f230be2
2007-08-22 02:57:16 +00:00
drh
27641703cc A complete run of quick.test with mutex debugging enabled. (CVS 4266)
FossilOrigin-Name: 783e07d561d1f5509de9475f3b9f38315f247002
2007-08-22 02:56:42 +00:00
drh
86f8c197dd Reenable the memory management logic. The quick.test script now runs with
SQLITE_MEMDEBUG and SQLITE_ENABLE_MEMORY_MANAGEMENT. 7 minor errors. (CVS 4265)

FossilOrigin-Name: 1914044b8832041f13b20ead613bd13725425d7a
2007-08-22 00:39:19 +00:00
drh
32bc3f6e01 All mutexing and locking appears to be in place. Now we just have to
test it and make it all work. (CVS 4264)

FossilOrigin-Name: 0f7941aef976aa4f3be3e0046edd1ae042e5d9a3
2007-08-21 20:25:39 +00:00
drh
b21c8cd4f6 The sqlite3_value object now carries an sqlite3* pointer to use for
recording malloc failures.  This eliminates the need to pass sqlite3*
pointers into many internal interfaces.  Also added more mutexing. (CVS 4263)

FossilOrigin-Name: 9287276191a582c1cf7cf6b71d8399727d8e534d
2007-08-21 19:33:56 +00:00
drh
e30f442622 Adding more thread locking code. This is an incremental check-in. (CVS 4262)
FossilOrigin-Name: 7428732b1fa04b83eda0a3539834693ef351313e
2007-08-21 16:15:55 +00:00
drh
605264d2d8 Readded the sqlite3_open_v2() interface. No test cases yet.
Additional progress toward adding mutexes to all interfaces. (CVS 4261)

FossilOrigin-Name: 3787563e90d7210d349ee36484c3f008c955552e
2007-08-21 15:13:19 +00:00
danielk1977
7a2b1eeb7f Delay opening temporary pager files until they are first written. (CVS 4260)
FossilOrigin-Name: 3fb97a63ef70662abdba18ce8b480e6b0badcfb1
2007-08-21 14:27:01 +00:00
drh
51fc347a2e Remove the obsolete static mutexes. Use only the lastest static mutex code. (CVS 4259)
FossilOrigin-Name: 6225cd461cdd2132eeb480aa4deb8986b7f63c15
2007-08-21 13:51:23 +00:00
danielk1977
46abae817e Add the tests that go with the previous commit. (CVS 4258)
FossilOrigin-Name: a87f32e13e91250ab4d9366d2e9a3a7024a12fb9
2007-08-21 13:30:07 +00:00
danielk1977
6e465eb0fc Avoid journalling an extra page when a btree insert operation uses the 'quick-balance' trick. (CVS 4257)
FossilOrigin-Name: 0da48209140b6c1ba47df799ce6065054b994f02
2007-08-21 13:11:00 +00:00
danielk1977
f1da17a388 Fix some problems in the crash-test backend. (CVS 4256)
FossilOrigin-Name: 5bced2392ad77aff0aa1ddea83f2ff9e3ffe28a8
2007-08-21 13:07:46 +00:00
drh
29278e3dbb Remove unnecessary #includes of "os.h". New mutex implementations. (CVS 4255)
FossilOrigin-Name: fbbd5bda544ffec4e1b43407b12e546235dc7873
2007-08-21 10:44:15 +00:00
drh
a2451e2255 The quick test runs again with a handfull of errors after adding the
mutex locks to btree, the VFS registration interfaces, and FTS3. (CVS 4254)

FossilOrigin-Name: 6cf725d212d468cbd7c7cbc22ca5ab13f1d77939
2007-08-20 23:50:24 +00:00
drh
d677b3d688 Work toward multithreading support. Currently crashes quickly on a test. (CVS 4253)
FossilOrigin-Name: 1315bd8e125602275fb718780f9b2730bd37f6ab
2007-08-20 22:48:41 +00:00
shess
7e3c77df0d Oops - a random fts2 test I had abandoned slipped into the fts3 batch. (CVS 4252)
FossilOrigin-Name: 709f2aa18a4802a7ca6638c00b2b99440b4a3191
2007-08-20 17:52:59 +00:00
shess
db00b6aebb Replicate the fts2*.test files as fts3a*.test, and convert fts2 to
fts3 in the text of the files. (CVS 4251)

FossilOrigin-Name: 24739f148e7687532fd04794a041aade8626c630
2007-08-20 17:38:42 +00:00
shess
69c4ae2413 Add support for building with fts3. (CVS 4250)
FossilOrigin-Name: 95ef963232ab1f15a7c42229819d33d3571a753e
2007-08-20 17:37:47 +00:00
shess
acce22f5c7 Copy fts2 to fts3, renaming, and replacing references to fts2 with
fts3, including capitalization variants. (CVS 4249)

FossilOrigin-Name: 216c91d2fc49792d9ff53596746f1162f5b7f8d4
2007-08-20 17:37:02 +00:00
danielk1977
2a6bdf6d5b Call sqlite3OsSleep() with an argument in microseconds, not milliseconds. (CVS 4248)
FossilOrigin-Name: 917790413ced92266bf5c7cca6d130ed7ac6221b
2007-08-20 16:07:00 +00:00
danielk1977
967a4a1c96 Changes to crash-test io backend (test6.c) so that it works with the sqlite3_vfs interface. (CVS 4247)
FossilOrigin-Name: 40f66ada815fa1043d24c9cd6d898e1797e7044a
2007-08-20 14:23:44 +00:00
drh
abddb0c8c4 Bug fix in BTree shared cache locking code. (CVS 4246)
FossilOrigin-Name: 399d3e755253a7b4604a62b9f171e0f1154134e2
2007-08-20 13:14:28 +00:00
drh
482ea18fde Get main.c to compile when HAVE_USLEEP is 0. (CVS 4245)
FossilOrigin-Name: b27f022fb924709f1c5e4642d5d59cab942e826d
2007-08-20 11:12:40 +00:00
danielk1977
ad94b58a5e Update the locking-style code in os_unix.c. The updates are as yet untested. (CVS 4244)
FossilOrigin-Name: 41f2175b1ed7eccf271b687ee5c3ea262a0cd096
2007-08-20 06:44:22 +00:00
danielk1977
f036aef061 Fix full_fsync() related functionality broken as part of the migration to sqlite3_vfs. (CVS 4243)
FossilOrigin-Name: cb24cda179c2b526c5ac48be75e372d2b9db808c
2007-08-20 05:36:51 +00:00
danielk1977
fee2d25a70 Further progress on migration to sqlite3_vfs. (CVS 4242)
FossilOrigin-Name: a258c4ec240f96bccfe493e98d0827ec7dd12e67
2007-08-18 10:59:19 +00:00
danielk1977
90949c2003 Remove some old OsFile and IoMethod related code. Add the sqlite3OsLockState function. (CVS 4241)
FossilOrigin-Name: 08a0f48028794abbeae1b4852652062b38d37d88
2007-08-17 16:50:38 +00:00
danielk1977
b4b47411ab Begin migration to using sqlite3_vfs interface. (CVS 4240)
FossilOrigin-Name: af3e3c7acdc67013dd733effebe981620d922dd1
2007-08-17 15:53:36 +00:00
drh
e53831d644 Begin adding mutexes. Compiles without SQLITE_OMIT_SHARED_CACHE but we
get an assertion fault on the shared cache testing. (CVS 4239)

FossilOrigin-Name: 4c1e9ffebe7c611a8b6a89153ae97ab9bca19ea3
2007-08-17 01:14:38 +00:00
drh
6bdec4afb4 Change the design of the mutex interface to allow for
both "fast" and "recursive" mutexes. (CVS 4238)

FossilOrigin-Name: 160593dcc5690af715b775c81137c6e09cca6454
2007-08-16 19:40:16 +00:00
drh
dce8bdb8c0 Remove the thread specific data subsystem from the unix build. Remove
legacy cruft from sqliteInt.h.  Use the new mutex subsystem in the PRNG. (CVS 4237)

FossilOrigin-Name: 3d60c14a32955b69e714a73372924d421899f83b
2007-08-16 13:01:44 +00:00
drh
abb6fcabcb Combine sqlite3DbOfVdbe() and sqlite3VdbeDb() into a single function. (CVS 4236)
FossilOrigin-Name: ba80ee59a72afe36817997de705ef81d876b6f35
2007-08-16 12:24:01 +00:00
danielk1977
31dad9da7e Fix some more small problems introduced by recent refactoring. (CVS 4235)
FossilOrigin-Name: 5e2795d0eb8ea2a076b3014cfa9096aa7e8f69d7
2007-08-16 11:36:15 +00:00
danielk1977
c6cc77d368 Replace a few sqlite3_malloc() calls that should be sqlite3MallocZero(). (CVS 4234)
FossilOrigin-Name: 384d0ca9bc96309e7057e4a2bd4bac5049485e9b
2007-08-16 10:36:33 +00:00
danielk1977
1e5369531e More work on refactoring of malloc() interfaces. There are still many errors. (CVS 4233)
FossilOrigin-Name: 77b1671351fe94b0ebc126a63140643deae2aa64
2007-08-16 10:09:01 +00:00
danielk1977
9fb3ecbc5b Add a test for malloc() failure when compiling a trigger step of the form "INSERT INTO ... SELECT ...". Currently causes a segfault. (CVS 4232)
FossilOrigin-Name: 161643a694458e76849cd663f277892ae7c6b729
2007-08-16 04:39:01 +00:00
drh
174357527a Half-way through a major refactoring of the memory allocation.
I have not even attempted to compile so I am certain there are
countless errors. (CVS 4231)

FossilOrigin-Name: deb7ecd65f7b83eaf0ba610eeef3b0ede61db1c3
2007-08-16 04:30:38 +00:00
drh
0e6f1546b0 Enhancements and smoke testing of the new memory allocation subsystem.
Have not yet cut it over to the core, though. (CVS 4230)

FossilOrigin-Name: 1dad2c0a1f00596b13b02ccef664bd2346a677a4
2007-08-15 20:41:28 +00:00
drh
2f999a6758 Test infrastructure for the new memory subsystem. (CVS 4229)
FossilOrigin-Name: 9e506656720fb3a3205b8cc398152272ce56f6f3
2007-08-15 19:16:43 +00:00
danielk1977
6207906027 Modify the crash-recovery test code in test6.c for 3.5. Also change some other code to use the new sqlite3_io_methods interface. Lots of things are broken now. (CVS 4228)
FossilOrigin-Name: af9503daf3f7703fcddad754bc1dc9e179830b6e
2007-08-15 17:08:46 +00:00
drh
4c3645c601 Add a debugging memory allocator. (CVS 4227)
FossilOrigin-Name: 8d2d1c4ff9dca61f75e3048107ee9712d346a28c
2007-08-15 17:07:57 +00:00
drh
90f6a5beff Add initial implementations of mutex and memory subsystem modules. (CVS 4226)
FossilOrigin-Name: c0fa3769790af199a4c8715c80bb8ff900730520
2007-08-15 13:04:54 +00:00
drh
d84f946be8 Revisions to the interface design for 3.5. (CVS 4225)
FossilOrigin-Name: 174116f7c0ceeceb5e32868b29fabf8a6943cbf6
2007-08-15 11:28:56 +00:00
drh
871f6ca15a Clarify documentation on sqlite3_interrupt(). (CVS 4224)
FossilOrigin-Name: 0b5b526c9de22a34c5051d14735a062ed3f898eb
2007-08-14 18:03:14 +00:00
danielk1977
0d24e6b876 Add comments describing upcoming changes to crash-test module (test6.c). No code
changes. (CVS 4223)

FossilOrigin-Name: 63631c17376bcb5a7aa305408aaeaf03738d7b95
2007-08-14 17:42:05 +00:00
drh
6d2069d9e8 Add a first cut at the new version 3.5 interface definitions to sqlite.h.in. (CVS 4219)
FossilOrigin-Name: 0a57f3dd4de12278732e3ca9d8a95f85c351da03
2007-08-14 01:58:53 +00:00
drh
60ce3653c1 Version 3.4.2 (CVS 4218)
FossilOrigin-Name: 64989904d44556eee0ea0270f8d4f0e903ffcfdf
2007-08-13 20:31:01 +00:00
drh
d0b567a944 Update version number of documentation in preparation for version 3.4.2. (CVS 4217)
FossilOrigin-Name: 1ed51e3ca04bee887326cb323bc7046ff1a98946
2007-08-13 16:15:29 +00:00
danielk1977
ea4d9e2dc8 Invalidate prepared SQL statements when rolling back a transaction that includes schema modifications. (CVS 4216)
FossilOrigin-Name: a07143fc0578a5fc7c891e94616ee0b353674d6e
2007-08-13 15:28:33 +00:00
drh
a7fba4b055 Disable tests that require 80-bit long doubles when the host only
provides 64-bit long doubles.  Ticket #2570. (CVS 4215)

FossilOrigin-Name: 4f4f8ef416394b7e54e8894f7a0d067d64636fc4
2007-08-13 15:18:27 +00:00
drh
117066ce50 Fix a page leak in btree balance routines that follows a malloc failure.
This problem detected by the new soft-heap-limit testing. (CVS 4214)

FossilOrigin-Name: bad661bb0bfabf982a2d711ea4165af130a4cae0
2007-08-13 14:56:44 +00:00
danielk1977
5814c1a9fc When loading a database schema, do not clear the SQLITE_InternChanges flag. This fixes the problem illustrated by (4211). (CVS 4213)
FossilOrigin-Name: 540a7b28bc37709056cfdb13286274ec5bdd8423
2007-08-13 14:41:19 +00:00
drh
b403574a2d Fix the test labels in mallocC.test. (CVS 4212)
FossilOrigin-Name: 7d4cdff444b98b76a34bd85d0a43cda28e7dffe4
2007-08-13 12:58:18 +00:00
drh
b3226e857c Add a new test cases for a problem with malloc failure during the parsing
of CREATE TABLE statements in autovacuum mode. (CVS 4211)

FossilOrigin-Name: be50387e658a9a73e12b07ca89ae75e871489f16
2007-08-13 12:39:03 +00:00
drh
00a18e476a Remove a memory allocation from sqlite3VdbeIOTraceSql(). This means that
when doing I/O tracing, the text of an SQL statement is truncated to the
first 1000 characters.  But it also means tracing works in an out-of-memory
situation. (CVS 4210)

FossilOrigin-Name: 578da2476e356ea35d272e18faf490efedeaf25c
2007-08-13 11:10:34 +00:00
drh
3aefabaf94 Updates to test scripts for better support of soft-heap-limit testing. (CVS 4209)
FossilOrigin-Name: 990f621f2247f1636e895dcf51fea1e08f202d31
2007-08-12 20:07:58 +00:00
drh
8940f4ee56 Backout check-in (4206) and replace it with a much better and more
general fix for the problem identified in ticket #2565. (CVS 4208)

FossilOrigin-Name: 7961a7385013d74ec78cbdfff6867c505528c163
2007-08-11 00:26:20 +00:00
drh
34f5621ff1 Fix some incorrect asserts() in the pager - problems brought to light by
the new soft-heap-limit testing apparatus of check-in (4202). (CVS 4207)

FossilOrigin-Name: 51f3e01b7486f23b67bdfb6bb19fc5297b2c8cec
2007-08-10 23:56:35 +00:00
drh
fdd30b0e46 Fix the corruption problem of ticket #2565 as demonstrated by the test added
in (4204).  There may yet be other instances of similar problems lurking in
the code. (CVS 4206)

FossilOrigin-Name: 7ed2f59e70e0d9a8ad0c47c8c12fae0aaddcedce
2007-08-10 23:54:16 +00:00
shess
9fa502205d Convert fts2 to use sqlite3_prepare_v2() to prevent certain logic
errors around SQLITE_SCHEMA handling.  This also allows
sql_step_statement() and sql_step_leaf_statement() to be replaced with
sqlite3_step().

Also fix a logic error in flushPendingTerms() which was clearing the
term table in case of error.  This was wrong in the face of
SQLITE_SCHEMA.  Even though the change to sqlite3_prepare_v2() should
cause us not to see SQLITE_SCHEMA any longer, it was still a logic
error... (CVS 4205)

FossilOrigin-Name: 16730cb137eaf576b87cdc17913564c9c5c0ed82
2007-08-10 23:47:03 +00:00
drh
9a47736e47 Add a test case to reproduce the database corruption problem reported
by ticket #2565. (CVS 4204)

FossilOrigin-Name: f267ce809424ec2cc167bf9750989413a8f925c1
2007-08-10 19:46:43 +00:00
drh
b771228e9d Update tests so that they work properly even if the soft-heap-limit
is set low. (CVS 4203)

FossilOrigin-Name: e01eb99edfa3390e97847a210532847cc64803da
2007-08-10 19:46:13 +00:00
drh
3a7fb7c459 Add the --soft-heap-limit=N option to the test scripts. Set this value to
enforce a soft heap limit across all tests.  This changes exposes several
new bugs. (CVS 4202)

FossilOrigin-Name: 8be845981654d2a846c95c699395af222b6c3b43
2007-08-10 16:41:08 +00:00
drh
915d2150f8 Fix documentation typos. Tickets #2168 and #2560. (CVS 4201)
FossilOrigin-Name: 4333b231af8866e3d2d75bc64083b6c36c8da8d8
2007-08-09 00:00:26 +00:00
drh
73be501329 More tweaking of linkage. Ticket #2554. (CVS 4200)
FossilOrigin-Name: 3759a38fe8e8a873dc3aae8dc99ca1010551b50b
2007-08-08 12:11:21 +00:00
drh
f7083bf6d2 Additional refinements on the amalgamation: Give a couple of constants
file scope and add the SQLITE_API prefix to some interfaces that need it.
Ticket #2554. (CVS 4199)

FossilOrigin-Name: c09ec102c4f62e492dd3676ef0aa1a183d6ce3b3
2007-08-08 01:04:52 +00:00
drh
fd131daecd Remove all tabs from source code files. Ticket #2556. (CVS 4198)
FossilOrigin-Name: 7550dd1d5980a399fbb06b4ed69216700f879a0b
2007-08-07 17:13:03 +00:00
drh
0a0e131c7e Revise the amalgamation so that all symbols have file scope except those
that begin with "sqlite3_".  Ticket #2554. (CVS 4197)

FossilOrigin-Name: 73db545289a1a99bd48b22895d2a3ee86540f107
2007-08-07 17:04:59 +00:00
drh
e6e4d6bb1a Fix some compiler warnings. (CVS 4196)
FossilOrigin-Name: 6cc15409ad6baefbe6e2214a4ac1cb3a0433f922
2007-08-05 23:52:05 +00:00
danielk1977
19b26f37b7 Change some (English language) grammar in faq.tcl. Ticket #2480. No code changes. (CVS 4195)
FossilOrigin-Name: e526817f158883f617720fd389741a29454ad483
2007-08-03 08:18:44 +00:00
danielk1977
d42f8fdc7a Avoid reloading the schema when an expired statement is finalized or reset.
This is only necessary when the in-memory schema does not match the file-system schema. (CVS 4194)

FossilOrigin-Name: 61de5b52daa0a862a04147dbaf71fafb696052f6
2007-08-03 07:33:08 +00:00
drh
bb9491293b Fix a typo in limits.html. (CVS 4193)
FossilOrigin-Name: c709140b51610a2fbbff15c1fd80783218780f6f
2007-07-30 23:02:38 +00:00
drh
b695acae1f Make excess output from the CLI appear inside SQL comments so as not
to interfere with generated SQL.  Ticket #2544. (CVS 4192)

FossilOrigin-Name: 49a2e85511e845051cfc6ae4318207b1866d43c9
2007-07-30 20:41:52 +00:00
rse
e21733baa5 Fix ticket #2439: the FTS1 and FTS2 extensions use the non-standard,
unportable and highly deprecated <malloc.h> header on all platforms
except Apple Mac OS X. The <malloc.h> actually is never required on
any OS with an at least partly POSIX-conforming API as the malloc(3) &
friends functions officially live in <stdlib.h> since over 10 years.
Under some platform like FreeBSD the inclusion of <malloc.h> since a few
years even causes an "#error" and this way a build failure. So, just get
rid of the bad <malloc.h> usage in FTS1 and FTS2 extensions at all and
stick with <stdlib.h> there only. (CVS 4191)

FossilOrigin-Name: 3f9a666143a8aafa0b1a5d56ec68f69f2b3d6a21
2007-07-30 18:55:36 +00:00
rse
8f30448a30 "extern" declarations inside function bodies are not every compiler's
favorite, so move to global scope. Additionally, at least under Unix
environment use <unistd.h> to get the proper prototype instead of using
a K&R-style own declaration. (CVS 4190)

FossilOrigin-Name: 5955a77d6c902dc65897ba19d6e06db3e10bd3ee
2007-07-30 18:31:53 +00:00
rse
43e47c8ec1 Get rid of the following compile-time warnings:
tool/mkkeywordhash.c:353: warning: array subscript has type 'char'
tool/mkkeywordhash.c:354: warning: array subscript has type 'char' (CVS 4189)

FossilOrigin-Name: c01d7944799d8a96a29f8d4f6d2bb7c4bb0e14bb
2007-07-30 18:26:19 +00:00
rse
be0a909683 Get rid of the following compile-time warning:
"src/shell.c:112: warning: 'iotracePrintf' defined but not used" (CVS 4188)

FossilOrigin-Name: 271e27fd30f3b99e6d6ad2fc2c6e87f43f4c76c8
2007-07-30 18:24:38 +00:00
danielk1977
eb5453d122 Fix a bug with explicit collation sequences attached to a column reference expression that is on the right-hand-side of a binary comparison operator. (CVS 4187)
FossilOrigin-Name: 7b69968618bfc19f0c1ab25c5f16c9fdff5af094
2007-07-30 14:40:48 +00:00
danielk1977
0c3f607c21 Test that an explicit collation sequence overrides an implicit one attached to a 'new' reference (it does). No code changes. (CVS 4186)
FossilOrigin-Name: a443b07ed659223401ee7acaf613d0b04f33fc89
2007-07-26 10:16:30 +00:00
danielk1977
e0fc52618c Fix two obscure memory leaks that can follow a malloc() failure in sqlite3_set_auxdata(). Ticket #2534. (CVS 4185)
FossilOrigin-Name: b88af1827bec3e8a32450dd0a073ffc3b12a5939
2007-07-26 06:50:05 +00:00
shess
a2d04e9a0f Implement xRename() for fts1 so that it is possible to rename fts1 tables.
See http://www.sqlite.org/cvstrac/chngview?cn=4143 (CVS 4184)

FossilOrigin-Name: febf75f022b9414fc456ddf274d301f95d61e1b8
2007-07-25 00:56:09 +00:00
shess
443ecd036d Replicates http://www.sqlite.org/cvstrac/chngview?cn=4151 which
modified fts2:

Modify handling of SQLITE_SCHEMA in fts2 code. An SQLITE_SCHEMA error
may cause SQLite to reload the internal schema, deleting and
recreating v-table objects. So the sqlite3_vtab structure can be
deleted out from under a v-table implementation. (CVS 4183)

FossilOrigin-Name: f9020cffda02923ef45979bb447ec2e232086ad5
2007-07-25 00:38:05 +00:00
shess
f6e3624cfc Sorry, previous check-in included a last-minute "Did it really work?"
change :-). (CVS 4182)

FossilOrigin-Name: 5db25e369a1a4b5a4d87947abdbf25f96fe64807
2007-07-25 00:27:59 +00:00
shess
9f8a4b43ef Apply change 4095 to fts1. Fix snippet generation when the left-most
column of an fts table is used in the MATCH clause. Fix for ticket
#2429. (CVS 4181)

FossilOrigin-Name: c2ba3cc0f7ac9f5dfe5ffb554f9a1cd96b28335a
2007-07-25 00:25:20 +00:00
drh
75b97c2207 Remove the comment in the documentation that says that incremental vacuum
mode is not persistent because as of 3.4.1 it is persistent.  Ticket #2528. (CVS 4180)

FossilOrigin-Name: 6c4040941e3cf84ac0b1f5797cd700c7a2ce9353
2007-07-24 10:22:57 +00:00
drh
36379e973b Detect nested aggregate functions even if the inner aggregate function is
aliased using an AS clause.  Ticket #2526. (CVS 4179)

FossilOrigin-Name: de000280c6d0b13440d2450eb6ba42073ad46c56
2007-07-23 22:51:15 +00:00
drh
2e06c67c08 The REPLACE conflict resolution falls back to FAIL when on a
CHECK constraint violation.  Ticket #2525. (CVS 4178)

FossilOrigin-Name: b213614abff90c65cc7228c87f4973150e8a9679
2007-07-23 19:39:46 +00:00
drh
95bdbbbd9e Move prototypes for LEMON-generated parser functions into sqliteInt.h.
Ticket #2521. (CVS 4177)

FossilOrigin-Name: bc02c7f1621ff46707f147c75f7e98462b01907f
2007-07-23 19:31:16 +00:00
drh
67f80b67bb Check the return value of sqlite3PagerWrite() when autovacuuming.
Ticket #2524. (CVS 4176)

FossilOrigin-Name: b4a5c62b853f7a7d38863c39be274dccd2640944
2007-07-23 19:26:17 +00:00
drh
6615095629 Rework the UTF8 reader logic in order to avoid the use of malloc().
Ticket #2523. (CVS 4175)

FossilOrigin-Name: 9a059cb6bced5cdc950f7816602ac92d89a899be
2007-07-23 19:12:41 +00:00
drh
ad6b3159be Fix a bad sizeof in vdbe.c. Ticket #2522. (CVS 4174)
FossilOrigin-Name: 77ebc3feb089c28155cf20873fb4eabd26fa50c1
2007-07-22 19:10:20 +00:00
drh
ddb63de659 Work around a bug in GCC. Ticket #2469. (CVS 4173)
FossilOrigin-Name: 1924ba5207bdc8d503c17cd9460c1a9f9c357635
2007-07-21 19:41:45 +00:00
aswift
f6f426be4e Work around an AFP file system byte-range locking error caused by opening and closing a second file descriptor on the database file as RDWR which clears the exclusive byte-range lock and results in an fcntl error when the AFP locking code attempts to clear it afterwards. This error is caused by the test harness and isn't a flaw in the sqlite or its implementation of AFP file locking. (CVS 4172)
FossilOrigin-Name: b2ba3e81fb1015d6f979a490e00a45fb7d5e1a9a
2007-07-20 20:25:37 +00:00
drh
d6e78a2e4f Updates to build scripts. Added scripts for building FTS2 shared libraries. (CVS 4171)
FossilOrigin-Name: e269f6e9f6273210259a488c356f4996d75c6436
2007-07-20 13:42:26 +00:00
drh
cda62a771d Version 3.4.1 (CVS 4170)
FossilOrigin-Name: 81a4dd07c1d7099461e9e6668433dac5d99b1f32
2007-07-20 10:56:07 +00:00
drh
d8a2b3845d Keep sqlite3ext.h backwards compatible. This really should have been part
of the previous check-in. (CVS 4169)

FossilOrigin-Name: 7cf15a5f651f0777972e21e0a96d601cf294f0f3
2007-07-20 10:48:35 +00:00
drh
6bf0ae74c2 Add new APIs to the end of the sqlite3_apis structure in loadext.c, in order
to preserve backwards compatibility.  Fix an incompatibility introduced
by (4108). (CVS 4168)

FossilOrigin-Name: 639993490ea829208b5f309bbe6c166c34e89d14
2007-07-20 10:33:58 +00:00
drh
85d5ef8b78 Documentation change in preparation for version 3.4.1. (CVS 4167)
FossilOrigin-Name: cf227766aca5065fd68e83f145943fe9d15cd7ef
2007-07-20 01:17:28 +00:00
drh
a693bcde02 Fix a memory leak in the Rename method of the echo test virtual table.
No changes to the core. (CVS 4166)

FossilOrigin-Name: e5c132fff3e8a0478622527a7e47d679594f899a
2007-07-20 00:35:58 +00:00
drh
b100391318 Cleanup unused function in pager.c. This is the conclusion of the fix
to ticket #2518. We believe the fix is complete and correct. (CVS 4165)

FossilOrigin-Name: 31dba1e933c523a47fdd007c2c7492133dfe72f2
2007-07-20 00:33:36 +00:00
drh
3260548b53 Disable tests that use the progress handler when the progress handler
is disabled at compile-time.  Followup to ticket #2497. (CVS 4164)

FossilOrigin-Name: cbc56fd4ec60d08a13a3aa181d044e726c49ef3c
2007-07-19 22:30:19 +00:00
drh
f85953edd0 Preliminary fix for ticket #2518. Make sure the VACUUM command
increments the change counter. (CVS 4163)

FossilOrigin-Name: 75263797e29af437290c09e85cd5fd2aea08694f
2007-07-19 16:35:17 +00:00
drh
21f06723fb Clarify the documentation on the nByte parameter to sqlite3_prepare().
Make it clear that nByte is a maximum string length.  Ticket #2516. (CVS 4162)

FossilOrigin-Name: d1ae3de4613d36b5352eb852f1951a09d4a92ac1
2007-07-19 12:41:39 +00:00
drh
309be02483 Get the min/max optimization working with descending indices. Ticket #2514. (CVS 4161)
FossilOrigin-Name: a80a3c9d0a5e0a8a3d67bd841e2076893fd5e9aa
2007-07-18 18:17:11 +00:00
drh
e927818455 Additional diagnostics added to the "out" file generated by lemon. (CVS 4160)
FossilOrigin-Name: 7ef2aaf72a8a953df7a763dd94657bb4ff05294f
2007-07-18 18:16:29 +00:00
shess
d8c1648301 Fix annoying emacs warning about suspicious line. The change removes
a leading space (emacs wants Makefiles to use leading tabs there). (CVS 4159)

FossilOrigin-Name: 4daadf659afe6b2524e1b37347247f233a211950
2007-07-17 17:22:03 +00:00
drh
1ef2ca0fd1 Add an extra integrity_check to the transaction test script. (CVS 4158)
FossilOrigin-Name: 5ea43b2db1f0263c5f0ab76351bc9ca940d1428a
2007-07-13 10:36:47 +00:00
drh
f4c932bb07 Update documentation to make it clear that VACUUM is free to
change implicit rowids.  Ticket #2382. (CVS 4157)

FossilOrigin-Name: d111b1daa547fea51d9e1fbe49c0b1338298484e
2007-07-13 10:35:14 +00:00
drh
eba1a1ebee "extern" prototypes cause problems for the Digital Mars compiler. So
remove them.  Ticket #2502. (CVS 4156)

FossilOrigin-Name: f35fbf8070d770a603960b2a2afdeae91574ed5f
2007-07-13 10:26:08 +00:00
danielk1977
612642de32 Fix for #2497. Set the database error code to the return value of sqlite3_step(). (CVS 4155)
FossilOrigin-Name: b01fda5f50e40b6122faf169c44486bde7ffe16c
2007-07-12 13:18:05 +00:00
pweilbacher
d8e9b6238e Fix compilation warnings shown when using strict GCC options for os_os2.c. (CVS 4154)
FossilOrigin-Name: 22277b7e1b3eb1678280de5d49a6613908ab4bff
2007-07-03 23:37:09 +00:00
danielk1977
2ac2762f37 Fix a memory leak in shell.c. Reported on the mailing list. This has only been informally tested. (CVS 4153)
FossilOrigin-Name: a008905b39e7d4cd5b39db4906eb3b678e3ee8b7
2007-07-03 05:31:16 +00:00
drh
1c55ba094a Fix a comment typo reported on the mailing list. (CVS 4152)
FossilOrigin-Name: 25e6df9cdd7d0cbb2bdee9ce76806cfd08314212
2007-07-02 19:31:27 +00:00
danielk1977
ab9749ebb9 Modify handling of SQLITE_SCHEMA in fts2 code. An SQLITE_SCHEMA error may cause SQLite to reload the internal schema, deleting and recreating v-table objects. So the sqlite3_vtab structure can be deleted out from under a v-table implementation. (CVS 4151)
FossilOrigin-Name: dee1a0fd28e8341af6523ab0c5628b671d7d2811
2007-07-02 10:16:49 +00:00
drh
12e8dcfbf6 Remove an unnecessary temporary variable for clarity of presentation in
a loop that GCC 4.2.0 is miscompiling.  Ticket #2469.  GCC 4.2.0 miscompiles
this loop regardless of whether or not the temporary variable is used, but
by removing the variable, we hope to make it easier to explain the problem
to GCC maintainers.  The error only appears if -ftree-vrp is used (which
is turned on by -O2). (CVS 4150)

FossilOrigin-Name: 35ae398bd37e4abbe362b0b780fc51153145b43d
2007-07-01 21:18:40 +00:00
pweilbacher
503028d61a Change OS/2 version of sqlite3Os2FullPathname() for cross-compiler compatibility:
- allocate zBuff on demand (restricted stack space on old compilers)
- 2 bytes in zDrive in include '\0'
- pass drive number to DosQueryCurrentDir() instead of 0 to make EMX work
- zFull does not need to be preallocated (CVS 4149)

FossilOrigin-Name: cc2105176563c352a6dccef89a429a76b6f3adf5
2007-07-01 15:41:02 +00:00
pweilbacher
2b9ca8d3e4 Including os2safe.h from os_os2.c is no longer necessary (now that it's including from os.h) (CVS 4148)
FossilOrigin-Name: 6432bbe1c1db1d31bd0057d99a9d6b6a428d8ffc
2007-06-30 16:30:39 +00:00
pweilbacher
3f61bc79ae old emx/gcc sets __EMX__ (with double underscores) as builtin #define (CVS 4147)
FossilOrigin-Name: d69204fec718a5d6d95351ee7a0c068a1c59222d
2007-06-30 15:24:37 +00:00
drh
e78669b6b8 Set FD_CLOEXEC on all open files under Unix. Ticket #2475. (CVS 4146)
FossilOrigin-Name: f1e5fed8eb0fb92bd0f040666c017850afe3cf9f
2007-06-29 12:04:26 +00:00
drh
6bd00bfda7 Add a test case to verify that ticket #2470 has been fixed. (CVS 4145)
FossilOrigin-Name: b3f442698e01ad55666703025c4457445f2efc9b
2007-06-27 23:52:18 +00:00
danielk1977
5c55886059 Test error handling when renaming fts2 tables. (CVS 4144)
FossilOrigin-Name: 57840eba6a4380a0b71dc9514cdda41e2c455bb0
2007-06-27 17:09:24 +00:00
danielk1977
c033b64276 Implement xRename() for fts2 so that it is possible to rename fts2 tables. (CVS 4143)
FossilOrigin-Name: 488474fde753c5a7a14ed8f2fad7f16efd236491
2007-06-27 16:26:07 +00:00
danielk1977
182c4ba979 Allow ALTER TABLE on virtual tables. (CVS 4142)
FossilOrigin-Name: 37d1f9f37ea9d2e8a4dbe0ec67c0d6eb7fcc5f3f
2007-06-27 15:53:34 +00:00
vapier
c3d56d1509 respect $LDFLAGS from env/configure (CVS 4141)
FossilOrigin-Name: 9c13fc0f4bf22c8e05b11ef5feaaf07d8a8b3f01
2007-06-27 15:01:45 +00:00
danielk1977
b7865fbc53 Fix for compiling with OMIT_VIRTUALTABLE defined. (CVS 4140)
FossilOrigin-Name: 850822e2904bc340afd0b7535ef51fbdf9e1f486
2007-06-27 11:10:03 +00:00
drh
a6b81bad55 Fix typo in comments of the sqlite.h.in header file - comments from which
documentation is automatically extracted and generated.  Ticket #2468. (CVS 4139)

FossilOrigin-Name: 53b526203c22961447b9c1cebbd885ecc8bc3e09
2007-06-27 10:21:38 +00:00
drh
5db828180c Make sure auto_vacuum is turned off before running the tests in pragma2.test. (CVS 4138)
FossilOrigin-Name: fc85c8aa160cc46419b9ce83d9eb47970c67118a
2007-06-27 10:20:00 +00:00
drh
0e8003dff6 Set the connection error code when sqlite3_blob_read() or
sqlite3_blob_write() fail.  Ticket #2464. (CVS 4137)

FossilOrigin-Name: 3bd990be3cb8a74be9eaa8d5710852be6733cb58
2007-06-27 00:36:13 +00:00
drh
6d31df30d8 Update the FAQ to describe how moving sqlite3 handles across threads is
not safe with SQLITE_ENABLE_MEMORY_MANAGEMENT.  Tickets #2357 and #2463. (CVS 4136)

FossilOrigin-Name: 2640f518deba1d196201fac903ec4d3ab26d4bb3
2007-06-27 00:08:39 +00:00
drh
985e0c63fc Make sure the TCL bindings always use Tcl_GetWideIntFromObj() even if the
reported type is "int" because on x86-64 and "int" type is 64-bits.
Ticket #2465. (CVS 4135)

FossilOrigin-Name: 5c93324b937b4d8394b0eb7d7fe74f7965623cbe
2007-06-26 22:55:37 +00:00
drh
99bcd30bfb Fix a test case so that it (hopefully) works on x86-64. Ticket #2465. (CVS 4134)
FossilOrigin-Name: 3daf7cae18ae2ee6404f770e69e4cd0c715615e5
2007-06-26 22:42:56 +00:00
drh
2f9ad1b47d Remove vestigal code from Makefile.linux-gcc. Ticket #2466. (CVS 4133)
FossilOrigin-Name: 338c18791006bac3709410087316700aad3b332f
2007-06-26 22:10:12 +00:00