Commit Graph

4924 Commits

Author SHA1 Message Date
danielk1977
81a392f7d7 Do not run crash7.test as part of a quick test. (CVS 4898)
FossilOrigin-Name: 53b4a09040341a981b2f33399a1ddcee952ba3ef
2008-03-20 16:26:48 +00:00
drh
bb4957f858 Initial implementation of per-connection limits and the sqlite3_limit() API.
The sqllimits1.test script crashes.  SQLITE_LIMIT_PAGE_COUNT and
SQLITE_LIMIT_VDBE_OP are currently ignored. (CVS 4897)

FossilOrigin-Name: 60c77882b2de9f6a45f8bd87c9c6a0cc613f8373
2008-03-20 14:03:29 +00:00
danielk1977
f653d78282 Allow a VACUUM operation to change the page-size in the same way as it can be used to change a database between auto-vacuum and normal mode. (CVS 4896)
FossilOrigin-Name: 871df0e7c36a88f175cfc63797745e52a1b1796b
2008-03-20 11:04:21 +00:00
vapier
f219f196f8 stick everything that sqlite links against into Libs.private (CVS 4895)
FossilOrigin-Name: 8b198617f572d35f04d119ba688e0f5c67f81144
2008-03-20 10:44:42 +00:00
danielk1977
67c007bf4b Write the page-size into the first journal-header of each journal file. (CVS 4894)
FossilOrigin-Name: 79f573cc7be89b3dd5540c45ef132b5cedc98e9b
2008-03-20 04:45:49 +00:00
mlcreech
2379706c79 Make out-of-tree builds work as expected when using configure script (CVS 4893)
FossilOrigin-Name: e2d05ea3c3e4a11bc1c0cc4c4403a445b9c2b64d
2008-03-20 02:25:35 +00:00
drh
caa639f401 Fix the load-extension mechanism so that tests build with or without it.
This check-in also includes prototypes for the new sqlite3_limit()
interface, but no implementation. (CVS 4892)

FossilOrigin-Name: bee38c2dda50592fef5fedab01311d5486240b95
2008-03-20 00:32:20 +00:00
mlcreech
9323f76141 Fix build whether compiling with or without auto-extension enabled (CVS 4891)
FossilOrigin-Name: 7b9682c65f545b09d410173cf282f7c4f4438097
2008-03-19 23:52:34 +00:00
mlcreech
88ef0908b5 Don't wrongly look for the amalgamation in $(TOP) (CVS 4890)
FossilOrigin-Name: 41d6ca31acbc0bd8555e5487ba3b695db5c9a81a
2008-03-19 23:15:37 +00:00
drh
fa4a4b9159 Add a new interface, sqlite3_context_db_handle(), that returns the database
connection pointer for an application-defined function. (CVS 4889)

FossilOrigin-Name: 54c55cae556af5a16c0ce8be1a96d2932db80ad8
2008-03-19 21:45:51 +00:00
drh
f39d958829 Undefine the "isView" macro when compiling with SQLITE_OMIT_VIEW so that
the macro does not interfer with subsequent modules in the amalgamation. (CVS 4888)

FossilOrigin-Name: a42caa8f83ce19af1e569c4545ea8b2449152430
2008-03-19 20:42:13 +00:00
drh
8257f0c1da Use the xCurrentTime method of the default VFS instead of stdlib time() to
get the current time when compiling with SQLITE_OMIT_DATETIME_FUNCS. (CVS 4887)

FossilOrigin-Name: 73fbac7cf7b61b23831f62b996fbdd358695b473
2008-03-19 20:18:27 +00:00
drh
e5dd20a6ac Update the loadable extension module to include recently added interfaces. (CVS 4886)
FossilOrigin-Name: bf1cecede88d2a21eb4891a343f3c19bb5416263
2008-03-19 19:55:55 +00:00
drh
81cc3548c3 Initialize the MD5 SQL functions from test_func.c instead of using
conditional compilation in tclsqlite.c. (CVS 4885)

FossilOrigin-Name: 801a0e3c9972c1fc9f55a9c55cd0ff19fd79fa37
2008-03-19 19:01:21 +00:00
drh
da84ca8de9 Create the test_destructor16() test SQL function to enhance test coverage.
Prior to check-in (4883), the test_destructor() function was sufficient,
but we now need separate functions since the implementation is restricted
to using the published API. (CVS 4884)

FossilOrigin-Name: bb7218657f3b06d810ad710fe64e5c9984aa518c
2008-03-19 16:35:24 +00:00
drh
984bfaa4c7 Move SQL functions used for testing only out of func.c and into a new
test file named test_func.c.  Use sqlite3_auto_extension() to make sure
the test functions appear in every database connection. (CVS 4883)

FossilOrigin-Name: e90c4cc8a89838161f218739bc821126e247498c
2008-03-19 16:08:53 +00:00
drh
2fa1868fb6 Add a new api sqlite3_randomness() for providing access to SQLite's
internal PRNG.  Add sqlite3_test_control() verbs for controlling the PRNG. (CVS 4882)

FossilOrigin-Name: 15110ea02768bfe977a57eccd6b941a36ebd6b32
2008-03-19 14:15:34 +00:00
drh
345331507f When a parse of the sqlite_master table fails, include the name of the
object being parsed as part of the error message. (CVS 4881)

FossilOrigin-Name: 57805b588f6b6d070918102a0ff096ade674279a
2008-03-19 13:03:33 +00:00
drh
bb8a279e11 Remove the dependency on the direct btree interface from as many test
scripts as is practical.  Fix a bug in the output limiter of the
integrity_check pragma that came up while making this change. (CVS 4880)

FossilOrigin-Name: 24e769972eb6052b82dc94d20444c186a213e104
2008-03-19 00:21:30 +00:00
drh
aa28e1478a Update the documentation to distinguish between protected and unprotected
sqlite3_value objects. (CVS 4879)

FossilOrigin-Name: 074ee55ffd1f0b7bb120a440d8bcf19e249ada96
2008-03-18 13:47:20 +00:00
drh
d19744f353 Test script changes that go with the coverage enhancements of the
previous check-in. (CVS 4878)

FossilOrigin-Name: f87ddf83a5d1340652f222972a7d75f4fdbe776b
2008-03-18 13:46:53 +00:00
drh
77db4c05ec Minor test coverage enhancements. (CVS 4877)
FossilOrigin-Name: edd207b9a9df5d73ec34474a4e90fcb592f06cf1
2008-03-18 13:01:38 +00:00
drh
874c5d6a43 Fix a memory leak introduced by the previous bug fix. (CVS 4876)
FossilOrigin-Name: b9c5dce34985f7e6d1b6314ae8674f07d0bf518b
2008-03-18 00:54:22 +00:00
drh
5efaf07099 Add the ability to simulate out-of-memory errors when using the default
memory allocator, mem1.c.  Fix a bug that this enhancement revealed. (CVS 4875)

FossilOrigin-Name: d55a5e1c11ef90534abd2e5f18d06dd4739ade70
2008-03-18 00:07:10 +00:00
drh
0e8ebe5168 Version 3.5.7 (CVS 4874)
FossilOrigin-Name: 9a6583d375a1b922e88eed888e54e51cbc85f400
2008-03-17 19:03:03 +00:00
drh
6c44ea48b8 Fix an uninitialized variable in the Prev and Next opcodes. (CVS 4873)
FossilOrigin-Name: fcf3d0a3d5d3a71155ab0aa5f533da72063d54f0
2008-03-17 17:18:37 +00:00
drh
a53b914086 Abandon the OR optimization following a memory allocation failure,
to avoid referencing uninitialized memory. (CVS 4872)

FossilOrigin-Name: 9d2afbb543e1493e1d9c2eb4329143bcb1ceca19
2008-03-17 17:08:33 +00:00
drh
280396906f Detect the failure to zero-terminate a result string due to a malloc
failure. (CVS 4871)

FossilOrigin-Name: 57db14067ff7d519291bebe695dcf991a9462372
2008-03-17 16:54:01 +00:00
drh
7b12a521b9 Label test case bindxfer-1.9 as a misuse test case, since it is one. (CVS 4870)
FossilOrigin-Name: 7b99122632f467cd0c34ad1a91e18fee8833980b
2008-03-17 16:23:26 +00:00
drh
2a3c8ff815 Modify the tableapi.test script so that it works under windows. (CVS 4869)
FossilOrigin-Name: 89e06b4e083e7fd2c053c1cefc0063a5b772d7f8
2008-03-17 15:09:47 +00:00
drh
99b90c3fa9 Put the statement journal in the temp-file directory since that
directory is often on optimized storage such as RAM disk and because
unlike the main journal, the statement journal does not need to
be colocated with the database file. (CVS 4868)

FossilOrigin-Name: 72c40726932695a2cf5c593707d098c8fb6e8875
2008-03-17 13:50:58 +00:00
danielk1977
39359dc020 Return an error when an xBestIndex() method indicates that it intends to use the value of an unusable constraint. Related to #2998. (CVS 4867)
FossilOrigin-Name: ffd470279540b1b8e3fdce6eb14001bae489b16d
2008-03-17 09:36:44 +00:00
drh
17fe6c1d32 Skip tests that require setting detailed unix permissions on files when
running on filesystems such as AFP that do not support that capability. (CVS 4866)

FossilOrigin-Name: 5589b9d395fb8267a124d56dd5d7987e57505e3d
2008-03-15 14:53:04 +00:00
drh
175cd71bab Add tests to make sure the busy handler resets. (CVS 4865)
FossilOrigin-Name: 5e4df441815ed7d02e9ad8ee2e1c2f937ee675d7
2008-03-15 02:09:21 +00:00
drh
befdf83f58 Reset the busy callback iteration counter at the beginning of each
lock test loop. (CVS 4864)

FossilOrigin-Name: 66777f048195e4242905c40f790ed7360af7028b
2008-03-14 19:33:05 +00:00
drh
3099e1acab Change an instance of intptr_t to sqlite3_intptr_t. (CVS 4863)
FossilOrigin-Name: 6db7186c304ed5e06afb207ce11ebc2a47e491b0
2008-03-14 19:17:54 +00:00
mlcreech
dda5b68cb3 Revise Bitvec struct sizing to prevent assertion failure on 64-bit systems (CVS 4862)
FossilOrigin-Name: a3c12dbe95c8fb93f5b9006bf5d2c5b933fc5e87
2008-03-14 13:02:08 +00:00
danielk1977
d5fe8d6c43 Fix a second race condition in lock4.test. (CVS 4861)
FossilOrigin-Name: e62858b9b8a12ecbad8037868d03469d27418377
2008-03-14 08:57:41 +00:00
mlcreech
969b2cd74a Allow the testfixture to be built even when using the amalgamation (CVS 4860)
FossilOrigin-Name: 8a726e3731cd19cc52c6dab16d032d7237b7450b
2008-03-14 04:11:03 +00:00
mlcreech
17d0fa4986 One additional intptr_t conversion (in the same vein as check-in 4824) (CVS 4859)
FossilOrigin-Name: 2777ca788204c37ae5607f7acabe78f414255fa2
2008-03-13 23:34:38 +00:00
mlcreech
1428b37486 Apply patch for #2915 to add target extension for executables (CVS 4858)
FossilOrigin-Name: 63fc7b72078b1e12de39893dc8374a7e24703d2e
2008-03-13 23:28:22 +00:00
mlcreech
289234ce12 Specify installation lib in 'rpath' options for sqlite3 executable (CVS 4857)
FossilOrigin-Name: 5076d480337145f2e4b36798c6c13b9810f62721
2008-03-13 19:55:20 +00:00
mlcreech
eb6dc140d6 Add/move files in Makefile.in to bring it more in line with main.mk (CVS 4856)
FossilOrigin-Name: b57fc81c3d5f6c7091bdd37f8164887f990a5128
2008-03-13 18:28:03 +00:00
danielk1977
4ffb7b9a1d Eliminate a race condition from lock4.test. (CVS 4855)
FossilOrigin-Name: 85585f11049c4c3278dc2732676b0caa44cf1e9d
2008-03-13 04:53:52 +00:00
danielk1977
b2b95d41a1 Do not segfault after a parse error in a sub-select in a statement of the form "DELETE WHERE ... IN(sub-select)". Ticket #2991. (CVS 4854)
FossilOrigin-Name: 3f9f81e908aad6cdc0a16ec52f4ec46d89fd78bc
2008-03-12 10:39:00 +00:00
mlcreech
f3868117f9 If tclsh is not found, don't default to building the amalgamation (CVS 4853)
FossilOrigin-Name: cbc0167556bd0abd16eb24d1c840ecbc530fd854
2008-03-11 18:03:30 +00:00
drh
ce2da1f048 Increase the version number to 3.5.7 in anticipation of the next release. (CVS 4852)
FossilOrigin-Name: c85e97e4f0f02219b567e1ab2d4602c5680e7331
2008-03-11 15:41:14 +00:00
drh
747eff8a6f Remove the #includes of stdlib.h and sys/types.h from sqliteInt.h since
they are never used and because they broke the build. (CVS 4851)

FossilOrigin-Name: 2668000fc8e23a98fb3e104474032d6c70eeee38
2008-03-10 16:17:59 +00:00
drh
c81945e41f Add explicit !=0 tests in order to suppress warning messages in
Borland-C.  Ticket #2985 (CVS 4850)

FossilOrigin-Name: d4ab14b974f2249d9d9e5a78ae47f3764a88b657
2008-03-10 14:12:53 +00:00
mlcreech
ab1c47b0a4 Fix for #2981 - specifically use "tclsh8.4" if it's available (CVS 4849)
FossilOrigin-Name: 8ced1d6464585ea81227b31f7bfcd0874076aeaa
2008-03-09 02:51:10 +00:00
mlcreech
c658b0ffb8 Fix for #1802, #2041, and #2270 - link libsqlite with -lrt (CVS 4848)
FossilOrigin-Name: ccd70a6ee495a02362161b4004597fa191d46bc2
2008-03-09 02:20:11 +00:00
mlcreech
fb80d20a9f Change <sqlite3.h> to "sqlite3.h" in #includes (CVS 4847)
FossilOrigin-Name: 98e55fa4d32c4579d54b3a8cc26abdb3c8148e13
2008-03-09 02:00:19 +00:00
mlcreech
5b0a9ebe4c Use autoconf to detect presence of gmtime_r() and localtime_r() (CVS 4846)
FossilOrigin-Name: 9894d2ce418180b874406a7407e019dc872f289a
2008-03-09 01:38:09 +00:00
mlcreech
6f10b3c0c9 Replace SQLITE_EXTERN with SQLITE_API in exported variables when generating
the amalgamation.  Should fix #2982 (CVS 4845)

FossilOrigin-Name: f134c282ea841fe35f322a1f8c326242c6ad7b24
2008-03-09 01:14:41 +00:00
drh
1c3cfc605b Clarify the language in the sqlite3_create_function() documentation.
Ticket #2980. (CVS 4844)

FossilOrigin-Name: 2db43738bfcd2db29167ff02f4291e74324225d7
2008-03-08 12:37:30 +00:00
drh
58edb657da Fix asserts in prepare.c to handle the misuse case of ppStmt==0. (CVS 4843)
FossilOrigin-Name: 788b2c6b537809a496bf30550a12e743c1697eb7
2008-03-08 12:23:30 +00:00
danielk1977
cac336ad95 Move a comment within the Parse structure to make it more accurate. No actual code changes. (CVS 4842)
FossilOrigin-Name: 0ca14399b19ee22870394065c5c6a136ea41418d
2008-03-08 06:16:29 +00:00
drh
3cb3edc19a Make sure all necessary mutexes are held prior to initializing the
schema in sqlite3_table_column_metadata(). (CVS 4841)

FossilOrigin-Name: 4996ff93573c69b51eb7b1348058f85e6cb2728a
2008-03-07 21:37:19 +00:00
drh
5ce88abaa3 Fix an alignment problem in test_async.c. (CVS 4840)
FossilOrigin-Name: 752d8e21bb250d7df58a3abc945fcd7a3b38ad15
2008-03-07 21:04:02 +00:00
drh
308aa32ffc Another fix to the OsUnlock I/O error logic. (CVS 4839)
FossilOrigin-Name: 22bd537ee2af6779ecb38502513ae533f85f7c2e
2008-03-07 20:14:38 +00:00
drh
1aa5af1151 Correctly handle I/O errors that occur during OsUnlock(). Before this
fix, an I/O error during OsUnlock() could lead to database corruption.
That is not a serious problem, though, since errors during OsUnlock()
are not possible on most systems. (CVS 4838)

FossilOrigin-Name: b4c1258edb4a40501d13c9da674d0366d5a8c694
2008-03-07 19:51:14 +00:00
drh
339eb0b8af Cleanup the locking-style code in os_unix.c. (CVS 4837)
FossilOrigin-Name: 40f55c09dbd31f861b9f9c7641cce92553d94e35
2008-03-07 15:34:11 +00:00
mlcreech
b279941f73 Trivial documentation fixes (CVS 4836)
FossilOrigin-Name: 9819cefbd7032fe6884c6c891e8e399000e0821f
2008-03-07 03:20:31 +00:00
mlcreech
3c080bc6a0 Add missing prefix & exec_prefix to Makefile - fixes #2979. (CVS 4835)
FossilOrigin-Name: 4cda019b63e8ba9f1101fb296a7d745c69e84e00
2008-03-07 02:20:56 +00:00
drh
218c508433 Updates to the locking-style code in os_unix.c. Not yet working. (CVS 4834)
FossilOrigin-Name: 6ebce3b798c60050fb3c583d805570bb06837108
2008-03-07 00:27:10 +00:00
mlcreech
98dc4b1aba Clean up recent autoconf-related additions, add config.h to the amalgamation (CVS 4833)
FossilOrigin-Name: 8044623062e9aa43593c46e3e5d5bc7361ea7418
2008-03-06 16:28:58 +00:00
mlcreech
a9e852b667 Handle non-autoconf build correctly with new changes (CVS 4832)
FossilOrigin-Name: e2a9f5f1054f077e4773dd3d2c8f2ce5be118a01
2008-03-06 09:58:50 +00:00
mlcreech
7ff4a45e4e Typo in amalgamation non-x86 builds (CVS 4831)
FossilOrigin-Name: a8424e06064ee356db8231820737a7d5ba722873
2008-03-06 09:19:00 +00:00
mlcreech
bd0ae111ec Don't try and include common.h on stand-alone amalgamation builds (CVS 4830)
FossilOrigin-Name: 9898320be05cdbe78dac799f3fef34dccb644ca8
2008-03-06 09:16:24 +00:00
mlcreech
ae28e67da5 Remove amalgamation on "make clean" (fixes #2559) (CVS 4829)
FossilOrigin-Name: e03802f362307ee91fcecaeab6b8f3b43a61d4ca
2008-03-06 09:03:20 +00:00
mlcreech
8390bc382a Miscellaneous autoconf cleanups - get rid of TARGET_CFLAGS, fix header list (CVS 4828)
FossilOrigin-Name: a674f76db9035375772706b6ff1cfaa2a459ffb0
2008-03-06 08:54:38 +00:00
mlcreech
c55771f372 Respect user's configured bindir/libdir/includedir if present (fixes #558) (CVS 4827)
FossilOrigin-Name: 48c9fa97b9d9000f6fba5adb04c1026b162eb3ab
2008-03-06 08:09:12 +00:00
mlcreech
df59c7c7d1 Actually use TARGET_CFLAGS on autoconf-driven builds (CVS 4826)
FossilOrigin-Name: dda3d658998b00748f0e7693b3756d45400e8c8a
2008-03-06 07:51:15 +00:00
mlcreech
d7f59456ce Add headers for use with autoconf (missing from previous checkin) (CVS 4825)
FossilOrigin-Name: 4513a5f493bb612134d04685c0d6777e0d5c65bc
2008-03-06 07:36:18 +00:00
mlcreech
12d4082f26 Use intptr_t definition to silence warnings about ptr-int casts (CVS 4824)
FossilOrigin-Name: 54839a84e6ce080ea8a0f6ce32acaa053d20f311
2008-03-06 07:35:21 +00:00
mlcreech
b87057f26d Include inttypes.h when available, add support for intptr_t (CVS 4823)
FossilOrigin-Name: 88698fbdd5387b195e1c04c0c597f3c7458757c5
2008-03-06 07:19:20 +00:00
mlcreech
8e63f3db09 Make extension loading more easily configurable. Fixes #2977 (CVS 4822)
FossilOrigin-Name: fc401ad9d1c62db136ad4a1c931381aff047e164
2008-03-06 04:14:17 +00:00
mlcreech
a4edab0e59 Make extension loading more easily configurable. Fixes #2977 (CVS 4821)
FossilOrigin-Name: 2a2e8b64df3ff9ea5831b226984ab2c85771131e
2008-03-06 04:14:17 +00:00
mlcreech
9498491013 Build amalgamation by default on autoconf-driven builds, add
--disable-amalgamation option to configure script (CVS 4820)

FossilOrigin-Name: f9391fa06f22aea5c6af9e1c76d7f5404483189a
2008-03-04 19:03:08 +00:00
mlcreech
3a00f907a9 Various renames & cleanups to limit exported symbols on amalgamation build (CVS 4819)
FossilOrigin-Name: 9c6694bb61a8ecdbfb2d05e5e05a8cc97b792240
2008-03-04 17:45:01 +00:00
drh
17eaae7493 Additional documentation and tests making it clear that whenever
sqlite3_prepare() fails it sets *ppStmt to NULL. (CVS 4818)

FossilOrigin-Name: 39769f00c5d9ea20ad5d1c0569464529e953fa9d
2008-03-03 18:47:28 +00:00
mlcreech
47524b8c47 Add fts2/3 files to autoconf-generated Makefile (needed for amalgamation) (CVS 4817)
FossilOrigin-Name: 89666f94906c0ad651a444800dcf8ac886fe0c22
2008-03-02 05:40:05 +00:00
mlcreech
fcfe27d635 Add mem5.c to source files in autoconf-generated Makefile (CVS 4816)
FossilOrigin-Name: 8c1b6357f0bc86645017913e8b6ea8e82473f7df
2008-03-02 05:34:10 +00:00
mlcreech
d885c7bed8 Trivial text cleanups (CVS 4815)
FossilOrigin-Name: bbf9f0e6e23ce6c2729843535b8599c7bacb0f83
2008-03-02 03:32:05 +00:00
mlcreech
273588663c Fix typo for #2968 (CVS 4814)
FossilOrigin-Name: d1f6b243822c0dcbc4acf153e682b841cf6c22c2
2008-03-01 23:34:46 +00:00
mlcreech
5b9d867803 Add bitvec.lo to LIBOBJS and corresponding make rule (CVS 4813)
FossilOrigin-Name: 1d68f3af362f8bb5cdfbf60c60fb218bc316c5d0
2008-02-27 03:22:49 +00:00
drh
17c0ba276d Fix a math error when computing how much memory to allocate for
a new pager. (CVS 4812)

FossilOrigin-Name: 690d05cedae236251778a71fdd32319846580fdf
2008-02-26 18:40:11 +00:00
drh
04c3a46ed9 Add commentary to clarify what is happening when an I/O error occurs while
writing dirty pages to the database file. (CVS 4811)

FossilOrigin-Name: afe49d81f479715e13f18a97170d414a853a6cfe
2008-02-26 16:16:45 +00:00
drh
8f2e9a1a94 Add an assert() to verify that the dirty-page list in the pager is
valid before using it. (CVS 4810)

FossilOrigin-Name: 942daf94ef1f8ac678988e175ef968a2d3f801e9
2008-02-26 14:46:04 +00:00
danielk1977
43468d9138 Have sqlite3PagerPagecount() return -1 when the pager is in error state. Fix for #2961. (CVS 4809)
FossilOrigin-Name: 427e7f8b4a54eb6136174af63a467324d6fb051e
2008-02-26 06:05:31 +00:00
mlcreech
e0414bbceb Add bitvec to build (CVS 4808)
FossilOrigin-Name: c690dd68f20aa2137562dff573031ac041a29a4e
2008-02-26 03:45:59 +00:00
drh
9f504eab49 Fix a bug in the LIKE optimizer that occurs when the last character
before the wildcard is an upper-case 'Z'.  Ticket #2959. (CVS 4807)

FossilOrigin-Name: 610574b23b5e73b71be71df66e084c5bf37f6ccd
2008-02-23 21:55:39 +00:00
drh
e4d052a314 Additional test cases. (CVS 4806)
FossilOrigin-Name: 74126bf4e605dc875adbf5a0ee83bf8112891e35
2008-02-21 21:30:07 +00:00
drh
1cfdc90b43 Accept "Z" as the zulu timezone at the end of date strings. (CVS 4805)
FossilOrigin-Name: 4c9a7b42b797f42f2b1e2e8d6a260044bd22ef2d
2008-02-21 20:40:43 +00:00
drh
b4d58ae74d Updates to API documentation contained in comments of sqlite.h.in. (CVS 4804)
FossilOrigin-Name: 08276df3fdd63f210d502c414390f1efd8ebbbb7
2008-02-21 20:17:06 +00:00
drh
afc91047b2 Test coverage and documentation improvements. (CVS 4803)
FossilOrigin-Name: e0baceac412b85348e67f2376ea10000e1f76ab8
2008-02-21 02:09:45 +00:00
drh
d641d51171 Make multiple attempts to delete files marked DELETE_ON_CLOSE under
WinCE.  Ticket #2950. (CVS 4802)

FossilOrigin-Name: 5bc8e564e3499ada01a6c3d74b1e6d6906d2a118
2008-02-20 00:00:00 +00:00
drh
7694574abd Remove instances of strcpy() from test code. Use memcpy() or
sqlite3_snprintf() instead. (CVS 4801)

FossilOrigin-Name: 7b50140dc0fb41a1b40c8709d96e214d98b06f81
2008-02-19 18:29:07 +00:00
drh
85e5f0d477 Remove an instance of sprintf() from the VM implementation. SQLite should
not use sprintf() from the C library - it has its own implementation. (CVS 4800)

FossilOrigin-Name: 68f5ddddf0d1b5c8ed97dda0a32362a55637b5f2
2008-02-19 18:28:13 +00:00
drh
8fd3897cda Avoid the use of UTF16 functions in code that is part of a build when
UTF16 support is omitted.  Ticket #2949. (CVS 4799)

FossilOrigin-Name: 9db346dede59e7185afcd7f21b2f578c9a4f949e
2008-02-19 15:44:09 +00:00
drh
a4267dcc69 Make sure SQLITE_OPEN_DELETEONCLOSE is ignored by sqlite3_open_v2(). (CVS 4798)
FossilOrigin-Name: 33e26f6adf2ec2ab2e2711a8f86ce4cb11544e61
2008-02-19 15:20:44 +00:00
drh
49e4fd71a4 Change non-exported memory interfaces to following the naming conventions. (CVS 4797)
FossilOrigin-Name: 94774b41429c8bfa3582e30c09f414b9e5669575
2008-02-19 15:15:15 +00:00
drh
a9121e4c8e Use 16-bit integers for indexing within a page in btree. Tighter
bounds on the maximum number of cells within one page. (CVS 4796)

FossilOrigin-Name: 8fdbe4abab4e9c292111579b03471f68c1e855fb
2008-02-19 14:59:35 +00:00
drh
eee4c8ca11 Add the memory fault simulator to mem5.c. Enable soft heap limit on mem5.c.
Limit the size of hash tables and the vdbefifo when using mem5.c. (CVS 4795)

FossilOrigin-Name: 63da5d97542e4f54c33329833477c8d96ce05dd0
2008-02-18 22:24:57 +00:00
drh
f5e7bb513c Add the Bitvec object for tracking which pages have been journalled.
This reduces memory consumption and runs faster than the bitmap approach
it replaced. (CVS 4794)

FossilOrigin-Name: 7c57bdbcdb84d95419ec7029d2e13c593854a8d8
2008-02-18 14:47:33 +00:00
drh
2d7636e212 The power-of-two first-fit memory allocator is now working. (CVS 4793)
FossilOrigin-Name: d134d29cea971eb01a0e0fd94341ab79e2d5b57a
2008-02-16 16:21:45 +00:00
drh
66ce4d02fe Fix a bug in the ".show" command of the CLI. Ticket #2942. (CVS 4792)
FossilOrigin-Name: dedf5f230bf34a207f2ee0a8349a2ea602a38aba
2008-02-15 17:38:06 +00:00
drh
c52e355de1 Do not apply the query flattening optimization when the outer query is an
aggregate and the inner query contains an ORDER BY clause.  Ticket #2943. (CVS 4791)

FossilOrigin-Name: 6d33cbd99cb0db680767ceb31ec6345e90a805bc
2008-02-15 14:33:03 +00:00
drh
52391cb406 Fix a bug in EXPLAIN growing out of the new Mem implementation. (CVS 4790)
FossilOrigin-Name: 4df62a55d6fc92c3d0a416c9c03d86d76478feb6
2008-02-14 23:44:13 +00:00
drh
0d18020b80 Add the experimental mem5.c memory allocator. Allocate the content part
of cache pages separately from the header.  (See check-ins (4495) and (4409)). (CVS 4789)

FossilOrigin-Name: 669ece8c82bfa69add852589dd1211751cb26fb2
2008-02-14 23:26:56 +00:00
drh
7663e36c40 Fix a typo in a comment used to generate documentation. (CVS 4788)
FossilOrigin-Name: 65e66dd81cd821364a2d95a9078d174fd9486288
2008-02-14 23:24:16 +00:00
danielk1977
9172fd8cd0 Fix some VdbeMemCopy() related problems. (CVS 4787)
FossilOrigin-Name: aca2bee8662c3adaa47b3e70b1ef35347111f9eb
2008-02-14 15:31:52 +00:00
danielk1977
131b0ef7fd Fix a problem in the ptrchng.test script. (CVS 4786)
FossilOrigin-Name: 30a45f078421bc89da9218528110e3bd90054bbf
2008-02-14 05:44:45 +00:00
pweilbacher
d4c8a60358 small correctness fix for os2CheckReservedLock() (CVS 4785)
FossilOrigin-Name: f364d9342345cb11a4fd1961ab4f6387fb6abacc
2008-02-14 00:00:50 +00:00
pweilbacher
6034b1e07e always use random access mode when opening files (like on Windows) (CVS 4784)
FossilOrigin-Name: 9f4da1013b558fcabadc3a3bec6bcdae9b06399e
2008-02-13 23:48:02 +00:00
danielk1977
a7a8e14bf2 Where possible, avoid freeing buffers allocated for vdbe memory cells in case they can be reused. (CVS 4783)
FossilOrigin-Name: 990237e27e417aff3dbf05784b716c21f3761a3a
2008-02-13 18:25:27 +00:00
drh
0f35a6b529 When materializing a view for an UPDATE or DELETE make use of the WHERE
clause to limit the number of rows materialized.  Ticket #2938. (CVS 4782)

FossilOrigin-Name: 5ab71c3a79cac04cb2c576f83a62218d05571006
2008-02-12 16:52:14 +00:00
drh
8e5b5f8e54 ALTER TABLE uses double-quotes for quoting table names. (CVS 4781)
FossilOrigin-Name: 607247c27b80520b8c25c489757288b8ea186f9e
2008-02-09 14:30:29 +00:00
danielk1977
044d305c53 Modify shared.test to do case independent comparison of filenames. To account for the fact that "c:/test.db" and "C:/test.db" are the same file. (CVS 4780)
FossilOrigin-Name: 63915b54cfb41c2361c387636aa904145b166411
2008-02-08 18:25:48 +00:00
danielk1977
0ee26d943f Change the test code used for speed tests so that it does not throw an exception if the time command returns "0 microseconds per iteration". (CVS 4779)
FossilOrigin-Name: f37e8637d234e50436760497f8001c33975510ce
2008-02-08 18:25:29 +00:00
drh
1ece7325bb Do not release registers used to hold the results of a compound select
after just the first select has run.  Ticket #2927.  For now, we will
never release the registers used to hold the result set, since the same
register set will be used for each select.  This is not an unacceptable
register leak and it is the safest approach. (CVS 4778)

FossilOrigin-Name: e9fcb793998be07eaea01404407087b71c29853d
2008-02-06 23:52:36 +00:00
drh
ef10389ec4 Version 3.5.6 (CVS 4777)
FossilOrigin-Name: 1d82ab6987e567fff051cf4dd7b1a0bf6d174145
2008-02-06 16:58:27 +00:00
drh
a756546e4d Bump the version number to 3.5.6. (CVS 4776)
FossilOrigin-Name: 3444efabfc3d9a30b7ef22f40ecfa401d033d43f
2008-02-06 14:14:45 +00:00
drh
69544ec9cb Add the sqlite3_result_error_code() application interface. Use it in the
ATTACH function so that a failed attach returns a proper error code.
Ticket #2914. (CVS 4775)

FossilOrigin-Name: c24616204307936d03d39d2ef0fe6856113f6977
2008-02-06 14:11:34 +00:00
drh
45b5ba88dc Delete unused "pager3_refinfo_enable" flag and its associated debugging
macros.  Ticket #2923. (CVS 4774)

FossilOrigin-Name: fccb217d91d08c5a2f5d51b21c6035474931957b
2008-02-02 20:47:38 +00:00
danielk1977
1f12107a1c When OMIT_TRIGGER is defined, provide a no-op macro for sqlite3SelectMask(). Fix for #2918. (CVS 4773)
FossilOrigin-Name: 1d478e9091ef5775297ca4d50c85e39ccdf9e245
2008-02-02 04:47:09 +00:00
drh
755beb4564 Add more test cases to prove that ticket #2920 does not exist in
CVS HEAD.  The problem was previously fixed by the changes to
ticket #2686.  Ticket #2920 is a duplicate of #2686. (CVS 4772)

FossilOrigin-Name: b3259e872124fd7e17bbc23e582aa4d802044837
2008-02-02 02:48:52 +00:00
pweilbacher
6ee442bcc9 Use the buffer size as limit for temp file names. This is done for windows too, see check-in (4595). (CVS 4771)
FossilOrigin-Name: 99275bcd624c57585fc962235082fb0ca213d9c0
2008-02-01 19:44:28 +00:00
pweilbacher
dc965c3c81 fix broken OS/2 mutex implementation (Ticket #2905) (CVS 4770)
FossilOrigin-Name: 05afd86e2d25a219843be48c21c212e84f94e7ef
2008-02-01 19:42:37 +00:00
drh
dd95535f20 Minor fixes to FTS3 so that it works better when appended to the end
of the amalgamation. (CVS 4769)

FossilOrigin-Name: 62ede6699d8f116921a5a0baddca5e7e63740cd3
2008-02-01 15:34:09 +00:00
drh
05dbd1fd16 Fix the build scripts for windows binaries. ticket #2916. (CVS 4768)
FossilOrigin-Name: c336b2318a56c1deb94c41107754f5f622a9b1ee
2008-02-01 13:44:33 +00:00
drh
a2647cae50 Modify the printf test script so that it does not depend on the platform
printf, so that we do not spurious test failures when moving from one
platform to another. (CVS 4767)

FossilOrigin-Name: 514d7e474391278a121af285dc4aca6216358ad7
2008-02-01 01:19:53 +00:00
pweilbacher
0fd508e3f6 make os2Truncate() actually do something and fix os2FullPathname() to be more elegant and work more correctly in all cases (Ticket #2904) (CVS 4766)
FossilOrigin-Name: 921c7a0ac4581255ea5061980ff7991088b9b78a
2008-02-01 00:31:59 +00:00
drh
1d454a31b5 Fix a problem with virtual tables and left joins introduced by
check-in (4761).  Ticket #2894 and #2913. (CVS 4765)

FossilOrigin-Name: ebeac2a499ce16ac7e6d12daa5ce9d41e9067d28
2008-01-31 19:34:51 +00:00
drh
78398d269f Version 3.5.5 (CVS 4764)
FossilOrigin-Name: cb5bf4642f30ccd9052d76c3a47e7c5afc32afe6
2008-01-31 17:25:14 +00:00
drh
03c5a38124 Remove a broken hyperlink from the API documentation. (CVS 4763)
FossilOrigin-Name: 5fbda121743261f965d18342356a7c270daba416
2008-01-31 17:21:21 +00:00
drh
414025db57 Fixes to API definition comments in sqlite.h.in. Updates to the
build script - ticket #2874. (CVS 4762)

FossilOrigin-Name: c23f51de61398b08a9f02cc65befcbfe506137c0
2008-01-31 16:36:40 +00:00
drh
2945b4a1ac Make sure virtual table interfaces are not invoked after EOF when
the virtual table appears in an outer join.  Ticket #2894. (CVS 4761)

FossilOrigin-Name: face510bc14f440fc08dd5a354882ae05499bfa7
2008-01-31 15:53:45 +00:00
danielk1977
7c36d07715 Add "return rc;" to the end of sqlite3_test_control(). (CVS 4760)
FossilOrigin-Name: b547e7ea75294997de4298e30af813f36dfa3b05
2008-01-31 15:31:01 +00:00
drh
72190430c5 Fix assertion fault in sqllimits1.test encountered when auto_vacuum is
enabled.  Correct the sqllimit1 tests to account for extra pages inserted
by auto_vacuum. (CVS 4759)

FossilOrigin-Name: 9b207d1a6690206a6d7a10fcb517579b8bdadca2
2008-01-31 14:54:43 +00:00
drh
ed13d98c8c Add the sqlite3_test_control() API. Use it to control the fault injector. (CVS 4758)
FossilOrigin-Name: 413ddade6a13f993cddc57389d1107d82fa19972
2008-01-31 14:43:24 +00:00
drh
820a90694e Version number to 3.5.5. Include FTS3 in the amalgamation by default
(but disabled unless compiled with -DSQLITE_ENABLE_FTS3).  Fix a memory
allocation problem. (CVS 4757)

FossilOrigin-Name: 72411043e60d5358d5a7adf566d662d65d3b3336
2008-01-31 13:35:48 +00:00
drh
21ac7f9dcd Additional API documentation updates in sqlite.h.in. (CVS 4756)
FossilOrigin-Name: 9b6ab9faad39dd20d761efa68f137c596fbcd7a5
2008-01-31 12:26:49 +00:00
drh
33c1be3962 Improvements to the API documentation found in comments in the sqlite.h.in
source file. (CVS 4755)

FossilOrigin-Name: 0b8b5c2e833c90aec1c14d16c12334e01b50f35f
2008-01-30 16:16:14 +00:00
drh
4bbf464fe0 Disable the likely() and unlikely() macros as they do not work some
older versions of GCC. (CVS 4754)

FossilOrigin-Name: e01f9ed9450d3e23fc052e1b779c7a1965e76f7e
2008-01-30 16:14:23 +00:00
aswift
ee99b90def Committed changes for ticket #2909 (CVS 4753)
FossilOrigin-Name: 29ce204dbf2ccd051032f23f175b5c225f209fda
2008-01-28 22:09:23 +00:00
drh
9d36b4da99 Fix an incorrect comment on the Mem object in vdbeInt.h. (CVS 4752)
FossilOrigin-Name: 50c9cf9bbbe858d53697b4d3a0c1ec2d63ff5b18
2008-01-28 15:19:26 +00:00
rse
d18eef5c57 remove an unused variable (CVS 4751)
FossilOrigin-Name: 88846195474e620d0c3029d464d074aea6e82a22
2008-01-27 10:35:56 +00:00
drh
ca4241140c Error messages says "no such view" instead of "no such table" when
trying to DROP a VIEW that does not exist. (CVS 4750)

FossilOrigin-Name: 50815a82e0ec9a5c1399f5fe6ef416434b55a821
2008-01-25 15:04:48 +00:00
danielk1977
cdf3020ca3 Fix a segfault that may follow a malloc failure during compilation of an INSTEAD OF trigger. (CVS 4749)
FossilOrigin-Name: c6635a71dbb2a06d56a0cfce7f0383325e12dc01
2008-01-24 14:27:44 +00:00