]>
git.ipfire.org Git - thirdparty/sqlite.git/log
drh [Fri, 4 Apr 2008 12:21:25 +0000 (12:21 +0000)]
Fix the output labels on the tests in malloc9. (CVS 4966)
FossilOrigin-Name:
9987a7b193095dc90a83666bdac5e23105909cba
drh [Fri, 4 Apr 2008 12:21:08 +0000 (12:21 +0000)]
Fix the TCL interface so that it does not use unpublished interfaces. (CVS 4965)
FossilOrigin-Name:
046a98a8c88be7389c1571a819ccf1907a3f7217
drh [Thu, 3 Apr 2008 21:46:57 +0000 (21:46 +0000)]
Remove superfluous code from btree.c. (CVS 4964)
FossilOrigin-Name:
40173010706fb52ecd60197ce6e97d51a1899267
drh [Thu, 3 Apr 2008 21:42:21 +0000 (21:42 +0000)]
Make sure the zTail return from sqlite3_prepare() is initialized even
if there is a malloc failure. (CVS 4963)
FossilOrigin-Name:
040cffe2727936ce9228666fce5b00db47493e7d
drh [Thu, 3 Apr 2008 20:09:06 +0000 (20:09 +0000)]
Fix to the previous check-in so that it works on a intel Mac. (CVS 4962)
FossilOrigin-Name:
1d67f41c885d052ab10a33892938a85b56882b3d
drh [Thu, 3 Apr 2008 19:40:59 +0000 (19:40 +0000)]
Use an improved RDTSC access routine. (CVS 4961)
FossilOrigin-Name:
b4eba9c533f6aac9dde4f2c9796fe02e25158a0f
drh [Thu, 3 Apr 2008 17:57:24 +0000 (17:57 +0000)]
Changes speedtest8 and speedtest16 so that the database file can be specified
on the command-line. Allows speed testing against a :memory: database. (CVS 4960)
FossilOrigin-Name:
64badc50531668de45d76a3dcd90db17e1fe1ab1
danielk1977 [Thu, 3 Apr 2008 16:28:24 +0000 (16:28 +0000)]
Instead of calling sqlite3_exec() to evaluate "PRAGMA encoding = UTF16" in sqlite3_open16(), set the connection encoding flag directly. (CVS 4959)
FossilOrigin-Name:
33a12e737c343dbc452a25321a63456c1a8f7548
drh [Thu, 3 Apr 2008 16:01:27 +0000 (16:01 +0000)]
Add the speedtest8.c and speedtest16.c files to the tools subdirectory. (CVS 4958)
FossilOrigin-Name:
b8d211a76fa56d812fc1758b58d65eef832494cb
danielk1977 [Thu, 3 Apr 2008 14:36:25 +0000 (14:36 +0000)]
Avoid an out-of-bounds read in sqlite3_prepare() and fix a case where the output variable *pzTail was being set incorrectly. Fix for #3027. (CVS 4957)
FossilOrigin-Name:
c287a7b29410be12cf88f886e8e2525a42aa9c03
danielk1977 [Thu, 3 Apr 2008 10:13:01 +0000 (10:13 +0000)]
Change the allocator in mem2.c (used when SQLITE_MEMDEBUG is defined) so that allocations are not rounded up to the nearest 4 byte boundary. Fix a couple of errors in malloc.test related to sqlite3OsAccess() returning -1. (CVS 4956)
FossilOrigin-Name:
fd97f8762cb1e4653c932402940f74d7c0ebf71f
drh [Wed, 2 Apr 2008 18:33:07 +0000 (18:33 +0000)]
Minor optimizations. (CVS 4955)
FossilOrigin-Name:
e8529455803e0dab167f4faba5846fa1eafef741
drh [Wed, 2 Apr 2008 16:29:30 +0000 (16:29 +0000)]
Simplifications to the LockTable opcode. (CVS 4954)
FossilOrigin-Name:
66c5d715bbb732b0861a8a6f994cb4a8f259f2f8
mlcreech [Wed, 2 Apr 2008 04:23:32 +0000 (04:23 +0000)]
Set flags = MEM_Null on allocation failure in sqlite3VdbeMemGrow (CVS 4953)
FossilOrigin-Name:
846f9739d3e288dc81e40f5bfab046bd80bb22b2
drh [Tue, 1 Apr 2008 18:04:11 +0000 (18:04 +0000)]
Avoid factoring single-instruction constants that end up getting replaced
by an SCopy instruction. (CVS 4952)
FossilOrigin-Name:
e84ff57b6217afa84d60547dcc3a270b5e116818
drh [Tue, 1 Apr 2008 15:06:33 +0000 (15:06 +0000)]
Add the testcase() macro. Additional CSE test coverage. (CVS 4951)
FossilOrigin-Name:
492490f9c86e52c7a706d9e1bf0ba216d5bb8aba
drh [Tue, 1 Apr 2008 12:24:11 +0000 (12:24 +0000)]
Fix a problem with CASTs and the new CSE mechanism. (CVS 4950)
FossilOrigin-Name:
e25939fb25ec8bde8500a672ca5be3cbb514ac3a
drh [Tue, 1 Apr 2008 05:07:14 +0000 (05:07 +0000)]
Fix the CSE mechanism so that it takes into account column affinity
changes that might be imposed by comparison operators. (CVS 4949)
FossilOrigin-Name:
91cc646e2b0c1d62a1989405cc9384a2c22d98d0
drh [Tue, 1 Apr 2008 03:27:39 +0000 (03:27 +0000)]
More test cases and bug fixes with CSE. (CVS 4948)
FossilOrigin-Name:
7e8156129d6d240fe046bbc4ea269ebe1657e2a1
mlcreech [Tue, 1 Apr 2008 02:45:22 +0000 (02:45 +0000)]
Add a configure option for using gcov (makes things easier for versions of
GCC that fail to build otherwise) (CVS 4947)
FossilOrigin-Name:
7d1e79716246b0dd4a64d7c9575b2300e0f6123e
drh [Tue, 1 Apr 2008 01:42:41 +0000 (01:42 +0000)]
Initial test cases and bug fixes in the CSE logic. (CVS 4946)
FossilOrigin-Name:
e5aff09ac693946dc7ebb2f245b6434995b12155
drh [Tue, 1 Apr 2008 00:36:10 +0000 (00:36 +0000)]
Break up the implementation of OP_Move, OP_Copy, and OP_SCopy to reduce
the number of branch instructions. (CVS 4945)
FossilOrigin-Name:
53e533d3a764d1973c24bffaacc505ea4b61a2b9
drh [Mon, 31 Mar 2008 23:51:35 +0000 (23:51 +0000)]
Add the veryquick.test script for a very fast overview test that omits
all i/o and malloc testing. (CVS 4944)
FossilOrigin-Name:
f61df8daa89f07dad2a0ded00c326ef35dead257
drh [Mon, 31 Mar 2008 23:48:03 +0000 (23:48 +0000)]
Avoid duplicate OP_Column opcodes by remembering prior results.
This is similar to CSE, but only applies to columns. (CVS 4943)
FossilOrigin-Name:
c29ee0fed23dcdbd9dde6b1e42b603100ea2389c
drh [Mon, 31 Mar 2008 18:19:54 +0000 (18:19 +0000)]
Factor constant subexpressions out of loops. (CVS 4942)
FossilOrigin-Name:
2126db39854c751aea6c95c67894ed9b9dfc0763
danielk1977 [Mon, 31 Mar 2008 17:41:18 +0000 (17:41 +0000)]
In setQuotedToken(), only make a malloced copy if the argument contains one or more " characters. (CVS 4941)
FossilOrigin-Name:
b266924b8975b69bdb9ab45cf462e41436f89cc2
mlcreech [Sat, 29 Mar 2008 23:25:27 +0000 (23:25 +0000)]
Minor cleanup: Use size_t for struct size cast (CVS 4940)
FossilOrigin-Name:
618df68b8b78d376d30cea79a273fd39140f5033
drh [Sat, 29 Mar 2008 17:26:01 +0000 (17:26 +0000)]
Set exclusive locking mode by default on the speed4p test. (CVS 4939)
FossilOrigin-Name:
2d9fea95335ab8f399868f63c51bee89ed7633fa
drh [Sat, 29 Mar 2008 16:01:04 +0000 (16:01 +0000)]
Make the sqlite3BtreeMoveto routine a no-op if the cursor is already pointing
at the cell we are trying to move to. (CVS 4938)
FossilOrigin-Name:
9b567ab61e7542141b7bc9c3c053c2d1180da92d
rse [Sat, 29 Mar 2008 12:50:33 +0000 (12:50 +0000)]
add two missing initializer values (CVS 4937)
FossilOrigin-Name:
bf28f1c260b3efbec3b031edb97ccb7b4b039947
rse [Sat, 29 Mar 2008 12:47:27 +0000 (12:47 +0000)]
eliminate compile-time warnings related to missing field initializations (CVS 4936)
FossilOrigin-Name:
d6a34d983e2181f1d1763bd3821a1e63f1e18818
rse [Sat, 29 Mar 2008 12:39:39 +0000 (12:39 +0000)]
add three missing initializers (CVS 4935)
FossilOrigin-Name:
f45f0593cf5dd8c0172b13c300a4a9393540e0d7
drh [Sat, 29 Mar 2008 11:00:54 +0000 (11:00 +0000)]
Add the --pause option to the main test driver. (CVS 4934)
FossilOrigin-Name:
37dfcdf529378a8ef37ed8672e28339a7d9e9da6
danielk1977 [Fri, 28 Mar 2008 19:16:56 +0000 (19:16 +0000)]
Fix a problem with min() and descending indexes. (CVS 4933)
FossilOrigin-Name:
39705b617a775d4299e98ac88fab4525a64d8b78
danielk1977 [Fri, 28 Mar 2008 19:16:33 +0000 (19:16 +0000)]
Fix a memory leak that can occur when the library API is misused. (CVS 4932)
FossilOrigin-Name:
2b6d3e015e3088531c62230c9b3bdab47ef534da
danielk1977 [Fri, 28 Mar 2008 19:15:34 +0000 (19:15 +0000)]
Do not incorrectly report a malloc() failure when allocating 0 bytes. Fixes a problem in bind.test. (CVS 4931)
FossilOrigin-Name:
b99d19d651b00dcc7bdb36facfd9ecffe4fafd9f
danielk1977 [Fri, 28 Mar 2008 18:11:16 +0000 (18:11 +0000)]
Fix for #3022. Handle queries like "SELECT min(b) FROM T WHERE a = X AND b > X" when there is an index on (a,b). (CVS 4930)
FossilOrigin-Name:
bce289753538ab504e55c4215d6cd4f5df137d9e
drh [Fri, 28 Mar 2008 17:41:13 +0000 (17:41 +0000)]
Change the pager's sector size algorithm to the maximum of the size
reported by xSectorSize() from the VFS and 512. It was using the
maximum of xSectorSize() and the current page size, but that was adding
an extra 512 bytes to the size of the journal file in the common case. (CVS 4929)
FossilOrigin-Name:
17ea0c97a8bac1b34af1f9183d93a2f2a6af9690
danielk1977 [Fri, 28 Mar 2008 15:44:09 +0000 (15:44 +0000)]
Changes to the Mem structure to reduce the frequency of freeing and reallocating the dynamic buffer. (CVS 4928)
FossilOrigin-Name:
d0bf73d81453da1d8e602e0445064d9f5e348063
drh [Fri, 28 Mar 2008 12:53:38 +0000 (12:53 +0000)]
Patch to the new memory tracing logic that allows it to build even if
memory debugging is turned off. (CVS 4927)
FossilOrigin-Name:
0a9c63b227b9c6d2bd0e7b491245947ffc83c828
danielk1977 [Fri, 28 Mar 2008 07:42:53 +0000 (07:42 +0000)]
If memory is leaked when running a test script with the --malloctrace option, write out a file called leaks.sql in the same format as mallocs.sql containing th e leaked applications. The same tools can then be used to examine the stack traces associated with leaked allocations. (CVS 4926)
FossilOrigin-Name:
f1b97ed93183378ff56b4fe7ae8ea269c24092fc
drh [Thu, 27 Mar 2008 22:42:51 +0000 (22:42 +0000)]
Allow the xAccess method in the VFS to return -1 to signal an I/O
error, and in particular an SQLITE_IOERR_NOMEM. (CVS 4925)
FossilOrigin-Name:
3cb704c4c439425781644b1b653b7e50f02fd91e
danielk1977 [Thu, 27 Mar 2008 17:59:01 +0000 (17:59 +0000)]
Allow creation of ephemeral pseudo-tables - pseudo-tables that copy a pointer to a row when inserted instead of copying the row data. (CVS 4924)
FossilOrigin-Name:
1a58a87023f7780aee813ac64dda1a80021002a7
drh [Thu, 27 Mar 2008 15:07:04 +0000 (15:07 +0000)]
Added the speed4p.test script for testing performance of views and triggers. (CVS 4923)
FossilOrigin-Name:
adf7645f9a1e12389a7511d2adca9013b7f330fa
danielk1977 [Wed, 26 Mar 2008 18:34:43 +0000 (18:34 +0000)]
Changes to delay freeing buffers associated with vdbe memory cells until either sqlite3_finalize() or sqlite3_release_memory() is called. (CVS 4922)
FossilOrigin-Name:
8c2f69521f13bc24cf005520efbe0589eeadd763
drh [Wed, 26 Mar 2008 17:18:48 +0000 (17:18 +0000)]
Work around problems with compilers that do not allow C preprocessor
macros with empty arguments. (CVS 4921)
FossilOrigin-Name:
afe1963ec5588d2195f027fa438cf63d49c89cd9
drh [Wed, 26 Mar 2008 15:56:22 +0000 (15:56 +0000)]
Change comment in sqliteLimit.h to correctly describe the
SQLITE_MAX_ATTACHED #define. Ticket #3016. (CVS 4920)
FossilOrigin-Name:
d016d0784097e6657de26ccc6bece34913093fb0
drh [Wed, 26 Mar 2008 14:56:34 +0000 (14:56 +0000)]
Make sure ON clause terms of a LEFT JOIN are not used with an index on the
right table of the join. Ticket #3015. (CVS 4919)
FossilOrigin-Name:
3fafa562593b51d38f58e7a691c193d34a812a05
drh [Wed, 26 Mar 2008 12:50:14 +0000 (12:50 +0000)]
Comment change on the previous check-in. No changes to code. (CVS 4918)
FossilOrigin-Name:
72ae456239eb9f75b744f6733c4441b380bd1be1
drh [Wed, 26 Mar 2008 12:46:23 +0000 (12:46 +0000)]
Make sure an imbalance in the number of columns on a compound SELECT is
detected and reported as an error before it can cause an assertion fault
or array-bounds overflow in the code generator.
Oops: part of the fix for ticket #3015 got included with this
check-in by mistake. (CVS 4917)
FossilOrigin-Name:
50de87dc808820a70d3a99277f532e418a2f97e2
drh [Tue, 25 Mar 2008 17:23:32 +0000 (17:23 +0000)]
Modify the {quote: IdxDelete} opcode so that it takes an array of registers rather
than a record formed using {quote: MakeRecord.} This avoids a needless packing
and unpacking of the record to be deleted. (CVS 4916)
FossilOrigin-Name:
ee381b43563e1b0637ee74389d076dff77deddf9
danielk1977 [Tue, 25 Mar 2008 16:16:29 +0000 (16:16 +0000)]
Test string values passed to bind_text() and result_text() for a nul-terminator. (CVS 4915)
FossilOrigin-Name:
24c3ebc0c5c53c234516d16dce761d713fb29578
danielk1977 [Tue, 25 Mar 2008 14:24:56 +0000 (14:24 +0000)]
Have each {quote: BtShared} structure hang on to a buffer of just under page-size bytes for temporary use. This reduces the number of calls to malloc(). (CVS 4914)
FossilOrigin-Name:
fe1bc0f3b7cd87cd65f7d03b91095b59788a6f8d
danielk1977 [Tue, 25 Mar 2008 09:56:44 +0000 (09:56 +0000)]
Fix for memory leak in malloc3.test. (CVS 4913)
FossilOrigin-Name:
ef0e40e814b3d3a00721f8ca39bac0db1be24347
danielk1977 [Tue, 25 Mar 2008 09:47:35 +0000 (09:47 +0000)]
Use a vdbe memory cell to allocate the space required for vdbe cursors. (CVS 4912)
FossilOrigin-Name:
047153648155654b0cd70b811935209d2e21776c
drh [Tue, 25 Mar 2008 00:22:21 +0000 (00:22 +0000)]
Removed the direct btree tests - part of the ongoing effort to test by
calling only public interfaces. Modify the sqlite3VdbeRecordCompare
interface to used a pre-parsed second key - resulting in a 13%
performance improvement on speed1p.test. (CVS 4911)
FossilOrigin-Name:
0e1d84f2f456e7680bb667266745b629ddf3605f
drh [Mon, 24 Mar 2008 12:51:46 +0000 (12:51 +0000)]
Improved documentation of sqlite3_blob_open(). (CVS 4910)
FossilOrigin-Name:
1ed695f560a58786f2a8467c601f281c67034fd4
drh [Sun, 23 Mar 2008 00:20:36 +0000 (00:20 +0000)]
Remove redundant tests from the reparenter in the btree module. (CVS 4909)
FossilOrigin-Name:
a807e7184b857414ce203af129ac1adf2012096c
drh [Sat, 22 Mar 2008 23:59:58 +0000 (23:59 +0000)]
Bug fix in the newly revised sqllimit1.test script. (CVS 4908)
FossilOrigin-Name:
2a89fb3c3e991b2c02e07b8b86b67b8d80e0360d
drh [Sat, 22 Mar 2008 01:08:00 +0000 (01:08 +0000)]
Add the speed1p.test script. Like speed1.test except that it tries to take
advantage of prepared statements. (CVS 4907)
FossilOrigin-Name:
ece4fb9f7b93dc3e3cb77e40b011d013d0750dcf
drh [Sat, 22 Mar 2008 01:07:17 +0000 (01:07 +0000)]
Add the SQLITE_OMIT_DECLTYPE compile-time option. Remove more code when
SQLITE_ENABLE_COLUMN_METADATA is not defined. (CVS 4906)
FossilOrigin-Name:
8ef26646cff9be75c584a9abfcfffcfdb49b3969
drh [Fri, 21 Mar 2008 18:01:14 +0000 (18:01 +0000)]
Defer allocating memory space to hold the array of column values and
names in sqlite3_exec() until there is a need to use the array. In
the common case where there is no callback, this avoids a malloc() call. (CVS 4905)
FossilOrigin-Name:
d8686abcdf9e566571033f2f137142f742df9357
danielk1977 [Fri, 21 Mar 2008 17:29:37 +0000 (17:29 +0000)]
Better integrate the new malloc related instrumentation with the test infrastructure. (CVS 4904)
FossilOrigin-Name:
d2140cae39dcced63e3ad5771e52d522ce587c96
drh [Fri, 21 Mar 2008 17:13:13 +0000 (17:13 +0000)]
Make sure the text result of an aggregate function has the correct
encoding. Ticket #3009. (CVS 4903)
FossilOrigin-Name:
13e388cecf53d680a79ef29ff4e82e59de8f1264
drh [Fri, 21 Mar 2008 16:45:47 +0000 (16:45 +0000)]
Add a completely new testing system for the Bitvec object. The new
testing system uses sqlite3_test_control() instead of unpublished
APIs. Now provides 100% condition/decision coverage. Obscure bugs
in Bitvec found and fixed as a result of the enhanced coverage. (CVS 4902)
FossilOrigin-Name:
2498d3ea36ecab6d9c0f04ef1c49d76a7a215a4f
danielk1977 [Fri, 21 Mar 2008 14:22:44 +0000 (14:22 +0000)]
Add some more logging to the malloc system used when SQLITE_MEMDEBUG is defined. (CVS 4901)
FossilOrigin-Name:
79738f582fbac87f2d335e0c6b7f53e3054b41ba
drh [Thu, 20 Mar 2008 18:00:49 +0000 (18:00 +0000)]
In the sqlite3_limit() interface, take out the feature where zero means
use the hard upper bound. If an application wants the hard upper bound,
it can set the limit to 0x7fffffff and the bound will be automatically
truncated. (CVS 4900)
FossilOrigin-Name:
d6be1f495ec57158f7bcca3e32145a9a8fde723a
drh [Thu, 20 Mar 2008 16:30:17 +0000 (16:30 +0000)]
Reinstate test cases for the limit tests. The sqlite3_limit() API is now
tested and working. (CVS 4899)
FossilOrigin-Name:
4c4be4c3c8aae97f1d85442b25afba9f0b02c8b3
danielk1977 [Thu, 20 Mar 2008 16:26:48 +0000 (16:26 +0000)]
Do not run crash7.test as part of a quick test. (CVS 4898)
FossilOrigin-Name:
53b4a09040341a981b2f33399a1ddcee952ba3ef
drh [Thu, 20 Mar 2008 14:03:29 +0000 (14:03 +0000)]
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
danielk1977 [Thu, 20 Mar 2008 11:04:21 +0000 (11:04 +0000)]
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
vapier [Thu, 20 Mar 2008 10:44:42 +0000 (10:44 +0000)]
stick everything that sqlite links against into Libs.private (CVS 4895)
FossilOrigin-Name:
8b198617f572d35f04d119ba688e0f5c67f81144
danielk1977 [Thu, 20 Mar 2008 04:45:49 +0000 (04:45 +0000)]
Write the page-size into the first journal-header of each journal file. (CVS 4894)
FossilOrigin-Name:
79f573cc7be89b3dd5540c45ef132b5cedc98e9b
mlcreech [Thu, 20 Mar 2008 02:25:35 +0000 (02:25 +0000)]
Make out-of-tree builds work as expected when using configure script (CVS 4893)
FossilOrigin-Name:
e2d05ea3c3e4a11bc1c0cc4c4403a445b9c2b64d
drh [Thu, 20 Mar 2008 00:32:20 +0000 (00:32 +0000)]
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
mlcreech [Wed, 19 Mar 2008 23:52:34 +0000 (23:52 +0000)]
Fix build whether compiling with or without auto-extension enabled (CVS 4891)
FossilOrigin-Name:
7b9682c65f545b09d410173cf282f7c4f4438097
mlcreech [Wed, 19 Mar 2008 23:15:37 +0000 (23:15 +0000)]
Don't wrongly look for the amalgamation in $(TOP) (CVS 4890)
FossilOrigin-Name:
41d6ca31acbc0bd8555e5487ba3b695db5c9a81a
drh [Wed, 19 Mar 2008 21:45:51 +0000 (21:45 +0000)]
Add a new interface, sqlite3_context_db_handle(), that returns the database
connection pointer for an application-defined function. (CVS 4889)
FossilOrigin-Name:
54c55cae556af5a16c0ce8be1a96d2932db80ad8
drh [Wed, 19 Mar 2008 20:42:13 +0000 (20:42 +0000)]
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
drh [Wed, 19 Mar 2008 20:18:27 +0000 (20:18 +0000)]
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
drh [Wed, 19 Mar 2008 19:55:55 +0000 (19:55 +0000)]
Update the loadable extension module to include recently added interfaces. (CVS 4886)
FossilOrigin-Name:
bf1cecede88d2a21eb4891a343f3c19bb5416263
drh [Wed, 19 Mar 2008 19:01:21 +0000 (19:01 +0000)]
Initialize the MD5 SQL functions from test_func.c instead of using
conditional compilation in tclsqlite.c. (CVS 4885)
FossilOrigin-Name:
801a0e3c9972c1fc9f55a9c55cd0ff19fd79fa37
drh [Wed, 19 Mar 2008 16:35:24 +0000 (16:35 +0000)]
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
drh [Wed, 19 Mar 2008 16:08:53 +0000 (16:08 +0000)]
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
drh [Wed, 19 Mar 2008 14:15:34 +0000 (14:15 +0000)]
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
drh [Wed, 19 Mar 2008 13:03:33 +0000 (13:03 +0000)]
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
drh [Wed, 19 Mar 2008 00:21:30 +0000 (00:21 +0000)]
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
drh [Tue, 18 Mar 2008 13:47:20 +0000 (13:47 +0000)]
Update the documentation to distinguish between protected and unprotected
sqlite3_value objects. (CVS 4879)
FossilOrigin-Name:
074ee55ffd1f0b7bb120a440d8bcf19e249ada96
drh [Tue, 18 Mar 2008 13:46:53 +0000 (13:46 +0000)]
Test script changes that go with the coverage enhancements of the
previous check-in. (CVS 4878)
FossilOrigin-Name:
f87ddf83a5d1340652f222972a7d75f4fdbe776b
drh [Tue, 18 Mar 2008 13:01:38 +0000 (13:01 +0000)]
Minor test coverage enhancements. (CVS 4877)
FossilOrigin-Name:
edd207b9a9df5d73ec34474a4e90fcb592f06cf1
drh [Tue, 18 Mar 2008 00:54:22 +0000 (00:54 +0000)]
Fix a memory leak introduced by the previous bug fix. (CVS 4876)
FossilOrigin-Name:
b9c5dce34985f7e6d1b6314ae8674f07d0bf518b
drh [Tue, 18 Mar 2008 00:07:10 +0000 (00:07 +0000)]
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
drh [Mon, 17 Mar 2008 19:03:03 +0000 (19:03 +0000)]
Version 3.5.7 (CVS 4874)
FossilOrigin-Name:
9a6583d375a1b922e88eed888e54e51cbc85f400
drh [Mon, 17 Mar 2008 17:18:37 +0000 (17:18 +0000)]
Fix an uninitialized variable in the Prev and Next opcodes. (CVS 4873)
FossilOrigin-Name:
fcf3d0a3d5d3a71155ab0aa5f533da72063d54f0
drh [Mon, 17 Mar 2008 17:08:33 +0000 (17:08 +0000)]
Abandon the OR optimization following a memory allocation failure,
to avoid referencing uninitialized memory. (CVS 4872)
FossilOrigin-Name:
9d2afbb543e1493e1d9c2eb4329143bcb1ceca19
drh [Mon, 17 Mar 2008 16:54:01 +0000 (16:54 +0000)]
Detect the failure to zero-terminate a result string due to a malloc
failure. (CVS 4871)
FossilOrigin-Name:
57db14067ff7d519291bebe695dcf991a9462372
drh [Mon, 17 Mar 2008 16:23:26 +0000 (16:23 +0000)]
Label test case bindxfer-1.9 as a misuse test case, since it is one. (CVS 4870)
FossilOrigin-Name:
7b99122632f467cd0c34ad1a91e18fee8833980b
drh [Mon, 17 Mar 2008 15:09:47 +0000 (15:09 +0000)]
Modify the tableapi.test script so that it works under windows. (CVS 4869)
FossilOrigin-Name:
89e06b4e083e7fd2c053c1cefc0063a5b772d7f8
drh [Mon, 17 Mar 2008 13:50:58 +0000 (13:50 +0000)]
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
danielk1977 [Mon, 17 Mar 2008 09:36:44 +0000 (09:36 +0000)]
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