]>
git.ipfire.org Git - thirdparty/sqlite.git/log
drh [Mon, 2 Sep 2013 23:40:47 +0000 (23:40 +0000)]
Add the experimental SQLITE_DEFAULT_INDEX_SHAPE=1 compile-time option that
makes a much more pessimistic guess at the effectiveness of unanalyzed
indices.
FossilOrigin-Name:
d8daaba7dae53c76858ff7d7de695af4763d9b1f
drh [Mon, 2 Sep 2013 20:22:18 +0000 (20:22 +0000)]
Simplify branch coverage testing by interchanging the order of two tests
in the whereLoopInsert() function.
FossilOrigin-Name:
f7079b5365dd6cd8324a4fb23605e81476122ed6
dan [Mon, 2 Sep 2013 18:58:11 +0000 (18:58 +0000)]
Further stat4 related tests.
FossilOrigin-Name:
0a702c4b4c35fdbcb62e3ab88b9e57d7ea0052a8
dan [Mon, 2 Sep 2013 11:52:11 +0000 (11:52 +0000)]
Add tests to check if ANALYZE is choosing common non-periodic samples for the stat4 table.
FossilOrigin-Name:
175842997af134138784bff6f8e93573deb5b36b
dan [Mon, 2 Sep 2013 07:16:40 +0000 (07:16 +0000)]
Fix a problem with using stat4 data to estimate the number of rows scanned by a range constraint on the second or subsequent column of any index where an affinity transformation must be applied to the constraint argument.
FossilOrigin-Name:
c21f58d84859e479a6cc619671a0df48b2f9692e
drh [Sat, 31 Aug 2013 18:36:14 +0000 (18:36 +0000)]
Cleanup of the windows VFS, including added support for Cygwin, fixes
for compiler warnings under unusual configurations, and improved diagnostic
error messages.
FossilOrigin-Name:
c94933f13208f3f7d6d1b117ce6d2821100655a4
mistachkin [Sat, 31 Aug 2013 18:06:52 +0000 (18:06 +0000)]
Revise the amalgamation tool to allow 'duplicate' include files to be retained manually while still preserving the existing line numbers.
FossilOrigin-Name:
aa48284637b954d63bcf77e19b25e75c7ad1a6d3
dan [Sat, 31 Aug 2013 17:21:26 +0000 (17:21 +0000)]
Fix a problem causing SQLite not to use stat4 or stat3 data to analyze constraints of the form "column = expr COLLATE collation" (those with an explicit COLLATE on the non-column side of the comparison operator).
FossilOrigin-Name:
1e86d81d46c9da6aaee0c6938ee40933f35e3d0d
mistachkin [Sat, 31 Aug 2013 17:01:56 +0000 (17:01 +0000)]
Enhancements to the Win32 API definition macros.
FossilOrigin-Name:
b1811baab6e35ecb1ba920a7ed3302997758d309
dan [Sat, 31 Aug 2013 14:56:30 +0000 (14:56 +0000)]
Reenable a test accidentally disabled when the stat4 branch was merged.
FossilOrigin-Name:
d9fadc8fa6ef02d516678d57896d93e0a5f52cfe
mistachkin [Sat, 31 Aug 2013 05:46:42 +0000 (05:46 +0000)]
Avoid commenting out #include statements when building the amalgamation source code file.
FossilOrigin-Name:
2fca6d784b000fd3a4d6890e38a0b087767f3a7f
mistachkin [Sat, 31 Aug 2013 05:13:22 +0000 (05:13 +0000)]
Fix harmless MSVC compiler warning with MEMDEBUG defined.
FossilOrigin-Name:
b48cfd2dfca70091a52deeeee16619237e1c270b
mistachkin [Sat, 31 Aug 2013 02:48:56 +0000 (02:48 +0000)]
Improve the consistency of the diagnostic messages on Windows.
FossilOrigin-Name:
c6f174a0cb27fe79740fffc7ce51081ec52a5dbd
mistachkin [Fri, 30 Aug 2013 21:52:38 +0000 (21:52 +0000)]
Add support for Cygwin when handling temporary file names. Improve error codes and diagnostic messages for temporary file name handling on Windows. Rename winConvertUtf8Filename to winConvertFromUtf8Filename. Improve placement and comments for forward function declarations.
FossilOrigin-Name:
a411df725153119acb3bcf44fb71deecaa307887
dan [Fri, 30 Aug 2013 20:19:52 +0000 (20:19 +0000)]
Fix compiler warnings in analyze.c.
FossilOrigin-Name:
5bbd2ccb3d2d6286fd667dac2ab658d6b89640a6
mistachkin [Fri, 30 Aug 2013 19:59:48 +0000 (19:59 +0000)]
Fix comment typo in analyze.c. No changes to code.
FossilOrigin-Name:
dbc31750440226702fbf88f1bf6140ef403c9be1
drh [Fri, 30 Aug 2013 17:50:35 +0000 (17:50 +0000)]
Fix comment typos in the where.c module. No code changes.
FossilOrigin-Name:
1e0b77cf0edf3d26f76d83aa5466e9ec0e60a710
drh [Fri, 30 Aug 2013 17:35:44 +0000 (17:35 +0000)]
If the cost of two whereLoop objects is the same in every way except that
one has fewer expected output rows than the other, then choose the one with
fewer output rows.
FossilOrigin-Name:
79e458ef7acfddbc189163e3e958da529becb130
drh [Fri, 30 Aug 2013 14:24:12 +0000 (14:24 +0000)]
Add the SQLITE_MINIMUM_FILE_DESCRIPTOR compile-time option, for control over
exactly which low-numbered file descriptors SQLite will use.
FossilOrigin-Name:
ba5190534330a25722eeb7ea9c42da7a6d146014
dan [Fri, 30 Aug 2013 13:29:51 +0000 (13:29 +0000)]
Add a test for fts4 unicode61 option remove_diacritics=0.
FossilOrigin-Name:
6bf7ae6ff6b18712544ddeafb6848b3b27ff22d2
drh [Fri, 30 Aug 2013 06:20:23 +0000 (06:20 +0000)]
Improvements to the robust_open() logic in the unix VFS so that if an attempt
is made to open a repository on file descriptors 0, 1, or 2, and blocking
that file descriptor by opening it on /dev/null fails, then the open will
fail.
FossilOrigin-Name:
d9c018f8155ab48df8e0e02519bba50588fe49fc
drh [Thu, 29 Aug 2013 23:36:49 +0000 (23:36 +0000)]
Make the unix VFS defensive against the error of having a database file open
on file descriptors 1 or 2, as an error message might easily be written onto
those file descriptors and thus overwrite and corrupt the database.
FossilOrigin-Name:
30d38cc44904d93508b87e373b2f45d5f93e556b
drh [Thu, 29 Aug 2013 23:34:53 +0000 (23:34 +0000)]
Change the unix VFS so that it refuses to open a database file using
a file descriptor less than 3.
FossilOrigin-Name:
66dddda06898abbf97fe0ac6a10ce1527ca8605e
drh [Thu, 29 Aug 2013 21:26:26 +0000 (21:26 +0000)]
Never leave an open file descriptor pointing into the middle of the
database file if the file descriptor number is 2 or less.
FossilOrigin-Name:
3426673e4659eb68dbd14a3e41d4620d748432db
dan [Thu, 29 Aug 2013 14:56:14 +0000 (14:56 +0000)]
Restore fix [
f15591f802 ], which was accidentally clobbered by the stat4 merge.
FossilOrigin-Name:
d4b6ad3333cc3bad500c2ebf7a6ea552b6762b69
dan [Thu, 29 Aug 2013 10:46:05 +0000 (10:46 +0000)]
Candidate fix for [
9f2eb3abac ]: Have the whereShortCut() planner ignore indexes with more than four columns.
FossilOrigin-Name:
c1152bdcbb5ac185f743015fff63769effa81b4b
mistachkin [Thu, 29 Aug 2013 01:09:14 +0000 (01:09 +0000)]
Small enhancements to unit testing infrastructure.
FossilOrigin-Name:
9229aeb361f9805894321327d05aba855b8799f3
mistachkin [Thu, 29 Aug 2013 01:03:38 +0000 (01:03 +0000)]
Enable finer control of optimizations when compiling with the MSVC makefile. Also, several modularity enhancements to the MSVC makefile.
FossilOrigin-Name:
6c709338bc77fbed24a2597eabd88dd8c29b38d7
dan [Wed, 28 Aug 2013 19:01:07 +0000 (19:01 +0000)]
Re-enable test file wild001.test.
FossilOrigin-Name:
4f182ddc36944fa54f1a34c1f0527db0ebb39c96
drh [Wed, 28 Aug 2013 18:18:12 +0000 (18:18 +0000)]
Add the win32-longpath VFS allowing windows filenames up to 32K characters in
length. Remove unused code when -DSQLITE_MAX_MMAP_SIZE=0. Fix some
compiler warnings on windows.
FossilOrigin-Name:
12d0a8859de0a9d823997cfeccc77bd572cb6d13
mistachkin [Wed, 28 Aug 2013 18:06:26 +0000 (18:06 +0000)]
Update list of supported Tcl shells to include 8.6. Remove stray OS2 references.
FossilOrigin-Name:
ecd52ccf650ce2a4ab93c7c482289c1bc4768eeb
mistachkin [Wed, 28 Aug 2013 17:59:38 +0000 (17:59 +0000)]
Fix a couple comments.
FossilOrigin-Name:
945cb89ecb92a6c2075b3e58ce1ba3d419b1b6ca
drh [Wed, 28 Aug 2013 16:27:01 +0000 (16:27 +0000)]
In the query optimizer, when converting BETWEEN and LIKE/GLOB expressions
into simpler forms for processing, be sure to transfer the LEFT JOIN markings.
Fix for ticket [
bc878246eafe0f52c ].
FossilOrigin-Name:
caab361ebee5f5c3fdafd9b1abe3d1ab7c5b4db9
drh [Wed, 28 Aug 2013 13:46:09 +0000 (13:46 +0000)]
Increase the version number to 3.8.1 due to the addition of STAT4 support.
FossilOrigin-Name:
41c089e2a21f52b3d6d850eccba60be17010c9fe
drh [Wed, 28 Aug 2013 13:33:40 +0000 (13:33 +0000)]
Fix an off-by-one error that causes a quoted empty string at the end of
a CRNL-terminated line of CSV input to be misread by the shell.
FossilOrigin-Name:
b5617e4fdadc4cded93c985008e90982dd48bc3b
drh [Wed, 28 Aug 2013 11:57:52 +0000 (11:57 +0000)]
Add a test case for empty quoted field in CSV import in the shell.
FossilOrigin-Name:
3df56e849164811117f9ac8ee2aee1eee188bb96
drh [Wed, 28 Aug 2013 11:43:49 +0000 (11:43 +0000)]
Label a certain branch as NEVER() only for non-STAT3/4 builds.
FossilOrigin-Name:
b5ccf6e995ac2fe010f49d46d40b487ddbd28e5a
mistachkin [Wed, 28 Aug 2013 07:42:43 +0000 (07:42 +0000)]
In the win32longpath test, move the journal mode change down where it was intended to be.
FossilOrigin-Name:
5cead293bbbcddd7d0976db41133e40704efcc99
mistachkin [Wed, 28 Aug 2013 05:49:39 +0000 (05:49 +0000)]
Support database file names longer than 260 characters using the new 'win32-longpath' VFS variant.
FossilOrigin-Name:
37e85e444cde18f061049437980b965d4485f43c
mistachkin [Wed, 28 Aug 2013 02:37:29 +0000 (02:37 +0000)]
Make names of private functions in the Win32 VFS consistent. Fix comment typo in Win32 mutex implementation.
FossilOrigin-Name:
c3b82c5bf97cfb35544c5b1fbcdf7b9c4827d1cf
mistachkin [Wed, 28 Aug 2013 02:26:48 +0000 (02:26 +0000)]
Remove hard-coding of the directory separator in the Win32 VFS. Fixes to OSTRACE macros.
FossilOrigin-Name:
fc98092f4bd42d64059024f09547904c1d70a517
mistachkin [Wed, 28 Aug 2013 01:54:12 +0000 (01:54 +0000)]
Fix several harmless compiler warnings. Fix a couple compiler issues with the shell.
FossilOrigin-Name:
8917e9f9a0802cbfb6f33e2ab1c2f98e4df5babd
drh [Tue, 27 Aug 2013 23:15:44 +0000 (23:15 +0000)]
Adjust ANALYZE for improved test coverage. Use the SQLITE_ENABLE_STAT3_OR_STAT4
macro (created in sqliteInt.h) to conditionally include code, instead of
a boolean specifying both macros separately.
FossilOrigin-Name:
67a9a392edd62ef5a5a1ad3010b20a39b285793d
drh [Tue, 27 Aug 2013 20:16:48 +0000 (20:16 +0000)]
Reduce the amount of code run and memory used for ANALYZE in the common case
where neither STAT3 and STAT4 are enabled.
FossilOrigin-Name:
9d1424c91a21ed740aca53e437b8f7c1f0823c03
dan [Tue, 27 Aug 2013 15:41:09 +0000 (15:41 +0000)]
Update sqlite3.pc.in to use @PACKAGE_VERSION@ instead of @RELEASE@.
FossilOrigin-Name:
2460dfd8825d251e622e866e8dc1c0bf7fe7ec9f
drh [Tue, 27 Aug 2013 14:14:14 +0000 (14:14 +0000)]
In the ANALYZE command implementation make statInit() a 2-value function
since the 3rd parameter was always the same constant.
FossilOrigin-Name:
959bb5acdc3b4e2b481e3c38f20867131bfc9dbc
mistachkin [Mon, 26 Aug 2013 23:18:57 +0000 (23:18 +0000)]
Preparation for further Windows path name handling changes.
FossilOrigin-Name:
ec99224b0c9cf1ccd64b3dc93252556d888e93a3
drh [Mon, 26 Aug 2013 23:18:06 +0000 (23:18 +0000)]
Merge the STAT4 capability into trunk.
FossilOrigin-Name:
a32af0abe5fa6d570604fa3534e8230d5b6042fc
mistachkin [Mon, 26 Aug 2013 20:45:50 +0000 (20:45 +0000)]
Change MAX_PATH related defines to use character lengths where WCHARs are used.
FossilOrigin-Name:
0a497083e915520c0807cb6611264b1a35ff62b7
mistachkin [Mon, 26 Aug 2013 19:36:18 +0000 (19:36 +0000)]
Merge updates from trunk.
FossilOrigin-Name:
9d6860098f96efc7ea60e2d6116fb7d0e2685a55
dan [Mon, 26 Aug 2013 14:30:25 +0000 (14:30 +0000)]
Fix for builds with both SQLITE_OMIT_WAL and SQLITE_MAX_MMAP_SIZE=0 defined.
FossilOrigin-Name:
edd5dbdc3239fc88799b822941603fcc828ecbb6
drh [Mon, 26 Aug 2013 04:50:08 +0000 (04:50 +0000)]
mistachkin [Sat, 24 Aug 2013 23:55:01 +0000 (23:55 +0000)]
Several modifications to the use of the MAX_PATH macro on Windows to improve consistency.
FossilOrigin-Name:
bda4c47df8e80b4cc9e8aac8fd74482869f96107
mistachkin [Sat, 24 Aug 2013 01:12:03 +0000 (01:12 +0000)]
Fix a couple compilation issues on Unix.
FossilOrigin-Name:
25b029d8f32440a94ef8af45153423f6702d7431
mistachkin [Sat, 24 Aug 2013 00:59:24 +0000 (00:59 +0000)]
Unify the result of PRAGMA mmap_size when mmap support is disabled.
FossilOrigin-Name:
032c31593d6f569842830cac6222362be68b2084
drh [Fri, 23 Aug 2013 17:33:46 +0000 (17:33 +0000)]
Adjust #ifdefs to get SQLITE_OMIT_AUTOMATIC_INDEX and SQLITE_OMIT_PAGER_PRAGMAS
to build.
FossilOrigin-Name:
ed310201628cf79c0f57674ae7478ee6738b1c6e
drh [Fri, 23 Aug 2013 16:47:40 +0000 (16:47 +0000)]
Fix a requirements comment in a test case. No changes to the testcase
itself nor to any code.
FossilOrigin-Name:
3ad1f998e5db044849b528c31c4a7e1f3d527320
dan [Fri, 23 Aug 2013 12:04:52 +0000 (12:04 +0000)]
Modify script mkautoconfamal.sh to use the download.html naming convention for the tar.gz it creates.
FossilOrigin-Name:
375b4e3db0e0c9e83034d1c33d7c57aca48e87b6
drh [Thu, 22 Aug 2013 02:56:28 +0000 (02:56 +0000)]
Defer the creation of automatic indices until the index is actually used.
FossilOrigin-Name:
0775501acf152dcbf4dd039f4511f3d8c4330d85
drh [Wed, 21 Aug 2013 23:42:32 +0000 (23:42 +0000)]
Simplify the btreeGetPage() routine so that it uses a single flag parameter
in place of two boolean parameters.
FossilOrigin-Name:
617e23ec283d3147fc3fd29c474ccedf4915cdc7
drh [Wed, 21 Aug 2013 22:54:55 +0000 (22:54 +0000)]
Minor performance tweaks to the pager.
FossilOrigin-Name:
9ae1f9ce7ea6beaeddc3711080b3796e05acc4f8
drh [Wed, 21 Aug 2013 22:09:25 +0000 (22:09 +0000)]
Refactor the sqlite3_randomness() implementation for improved performance.
FossilOrigin-Name:
4144dffb57b5ed791d7a6d2f26fab5e7dc77fbd1
drh [Wed, 21 Aug 2013 21:12:10 +0000 (21:12 +0000)]
Simplification to the StrAccum object and the sqlite3StrAccumAppend()
method that also results in slightly better performance.
FossilOrigin-Name:
700dbbea8647e0fdaee6d0aba3d3dd8ebfbac04a
dan [Wed, 21 Aug 2013 20:04:54 +0000 (20:04 +0000)]
Minor fixes for test cases. No code changes.
FossilOrigin-Name:
ef2a6a37366f91889dc2f1ba9cb6d1257d9b05db
mistachkin [Wed, 21 Aug 2013 19:59:14 +0000 (19:59 +0000)]
drh [Wed, 21 Aug 2013 19:13:53 +0000 (19:13 +0000)]
Update sqlite3MemCompare() to try common cases first, for a modest speed
improvement.
FossilOrigin-Name:
b25bac79191975149d88fe34618c74354de62c5e
dan [Wed, 21 Aug 2013 17:35:48 +0000 (17:35 +0000)]
If a virtual table xSync() returns an error message, copy it into a buffer allocated by sqlite3DbMalloc() before transfering it to Vdbe.zErrMsg.
FossilOrigin-Name:
854ba3049005adf033e07e6740a36e63f2a56758
drh [Wed, 21 Aug 2013 15:52:22 +0000 (15:52 +0000)]
Performance enhancement in btreeParseCellPtr().
FossilOrigin-Name:
a17190a2296e8cd5e59524ff5914fc5ea3560697
dan [Wed, 21 Aug 2013 15:45:27 +0000 (15:45 +0000)]
Fix an FTS4 problem introduced by [
361084e1eb ].
FossilOrigin-Name:
5f35c8cb8f8b67121c70f98c02c4aa7c25327690
dan [Wed, 21 Aug 2013 12:04:32 +0000 (12:04 +0000)]
dan [Wed, 21 Aug 2013 07:25:03 +0000 (07:25 +0000)]
Fix a minor problem in progress.test. No code changes.
FossilOrigin-Name:
a95ae93b32a9ad2ae017124ed0881802c3c741c0
dan [Tue, 20 Aug 2013 20:25:03 +0000 (20:25 +0000)]
Fix a couple of test scripts to work with DEFAULT_AUTOVACUUM and OMIT_VIRTUALTABLE.
FossilOrigin-Name:
356c6c59311eaf7d5633476f635e94a12b8b3924
dan [Tue, 20 Aug 2013 17:14:57 +0000 (17:14 +0000)]
Fix an invalid assert() in where.c. Also a crash that can occur in the EXPLAIN QUERY PLAN code under obscure circumstances.
FossilOrigin-Name:
ef192abb82c2fc31135f875d7a19908d67c076b0
drh [Tue, 20 Aug 2013 17:00:55 +0000 (17:00 +0000)]
Ignore IS NOT NULL and NOT NULL constraints on NOT NULL columns.
FossilOrigin-Name:
e476408e3c5ba5f3ba5e98ff264167c163d72e3f
dan [Tue, 20 Aug 2013 16:08:39 +0000 (16:08 +0000)]
Test script changes to support testing sqlite3_interrupt().
FossilOrigin-Name:
0cede9f898bcd13dab51b25cb0e72213d988d3d2
drh [Tue, 20 Aug 2013 03:13:51 +0000 (03:13 +0000)]
Performance optimizations in the VDBE and especially to the OP_Next and
related opcodes and in the sqlite3BtreeNext() and sqlite3BtreePrevious()
routines. This is a cherrypick of [
6f99b54aedeb ], [
d2efea1682a7 ], and
[
d78c5d89de4b ].
FossilOrigin-Name:
7f72fc4f47445a2c01910b268335873de9f75059
drh [Mon, 19 Aug 2013 20:04:10 +0000 (20:04 +0000)]
Performance improvement in sqlite3BtreeNext() and sqlite3BtreePrevious()
for the common case of a valid cursor.
FossilOrigin-Name:
dc65ad8c4c67b21e3b042b8df6580d02b634a90b
dan [Mon, 19 Aug 2013 19:29:50 +0000 (19:29 +0000)]
Initialize a variable in fts3_write.c on the grounds that the argument required to show that it does not require initialization with is complicated. Add an assert() to where.c to silence a clang scan-build warning.
FossilOrigin-Name:
d6c4d48a002a6d7057fccc30064ce0b049678f0c
dan [Mon, 19 Aug 2013 18:37:18 +0000 (18:37 +0000)]
Fix test script pragma2.test so that it works with ENABLE_MEMORY_MANAGEMENT.
FossilOrigin-Name:
6acf728100ff339e4451bcefd3a20fd5c3cfd662
dan [Mon, 19 Aug 2013 18:17:03 +0000 (18:17 +0000)]
Add some extra assert() statements to silence a few clang warnings.
FossilOrigin-Name:
1c63e9515b5f5cb9169928b108d002dcd18ad4fd
drh [Mon, 19 Aug 2013 14:23:31 +0000 (14:23 +0000)]
Remove unused variables from the command-line shell sources.
FossilOrigin-Name:
753a402e90f3c9f675155ea96ee048dbe7a68700
drh [Mon, 19 Aug 2013 14:19:00 +0000 (14:19 +0000)]
Fix a potential reference off the end of an array in the query planner.
FossilOrigin-Name:
f15591f80212dd6d4ed8e0f14be691cd578d4cdf
drh [Mon, 19 Aug 2013 11:15:48 +0000 (11:15 +0000)]
Fixes for harmless compiler warnings.
FossilOrigin-Name:
a0d9ca4f07f1dc3a189864f8ed9cdb0b1d791b1a
drh [Sat, 17 Aug 2013 18:57:15 +0000 (18:57 +0000)]
Adjustments to #ifdefs in analyze.c to all a clean compile with no
extra code with both ENABLE_STAT3 and ENABLE_STAT4 and with neither.
FossilOrigin-Name:
f86b75b6c7290ee6ddb3636090b00e99fc68c45e
drh [Sat, 17 Aug 2013 16:37:04 +0000 (16:37 +0000)]
Add the cache_spill pragma. Change the fullfsync and checkpoint_fullfsync
pragmas to apply to all attached databases.
FossilOrigin-Name:
65a85a156f3c827890e9f1fd22484a2f875c3b6f
drh [Sat, 17 Aug 2013 15:42:29 +0000 (15:42 +0000)]
The fullfsync, checkpoint_fullfsync, and cache_spill pragmas apply to all
files of a database connection, including those opened by future ATTACH
statements.
FossilOrigin-Name:
d07c4331a28d44deca1ece8a34118f5b121b3ee2
drh [Sat, 17 Aug 2013 00:25:07 +0000 (00:25 +0000)]
Test cases for the cache_spill pragma.
FossilOrigin-Name:
b85c9ec5e02c1b92faa8eeb9e56e02a576a43a96
drh [Fri, 16 Aug 2013 20:42:20 +0000 (20:42 +0000)]
Add the cache_spill pragma.
FossilOrigin-Name:
cdb181c04fa99c6c29f23eb68ccb5475e7f6bf9c
dan [Fri, 16 Aug 2013 17:46:49 +0000 (17:46 +0000)]
Add a test for the problem fixed by [
91733bc485 ].
FossilOrigin-Name:
5c591104813a7e55e59f4f557cbb3e500fa817c2
drh [Fri, 16 Aug 2013 17:18:02 +0000 (17:18 +0000)]
In sqlite3Stat4ProbeSetValue() change a local variable name iVar to iBindVar
to avoid confusion with iVal, and fix a place where the name was actually
confused.
FossilOrigin-Name:
91733bc4856034c10bc2ba0acdae1970b05d62b9
drh [Fri, 16 Aug 2013 14:51:32 +0000 (14:51 +0000)]
Merge the fork that resulted from a check-in race.
FossilOrigin-Name:
b7fe4f362bdf7b233a7b09eb9ce16d296165f82a
drh [Fri, 16 Aug 2013 14:49:00 +0000 (14:49 +0000)]
Fix valueFromExpr() so that it returns SQLITE_NOMEM following an OOM when
changing text encodings. Also fix some asserts to accommodate OOM errors.
FossilOrigin-Name:
dc1ccd09c443cebc4731dbe1a0dea84a9ccf6a9b
dan [Fri, 16 Aug 2013 14:48:23 +0000 (14:48 +0000)]
Fixes for test code that was not working with utf16 databases. Run the analyze*.test scripts as part of the 'utf16' permutation test.
FossilOrigin-Name:
fe99494d99df95f699ffab07b1e212800b5ff00d
dan [Fri, 16 Aug 2013 14:23:02 +0000 (14:23 +0000)]
Add extra tests. No code changes.
FossilOrigin-Name:
949127d53e0a907ed6f73c6828637d94b265468c
dan [Fri, 16 Aug 2013 14:09:43 +0000 (14:09 +0000)]
Avoid buffer overreads and false OOM error reports that could be caused by corrupted sample records in the sqlite_stat4 table.
FossilOrigin-Name:
9f85b6a52a0b9b1524daa6f24d85257e7f591e95
drh [Fri, 16 Aug 2013 13:34:50 +0000 (13:34 +0000)]
Fix a potential segfault following an OOM while running ANALYZE.
FossilOrigin-Name:
0118797823c9093e68113578f3f3aae65de41453
drh [Fri, 16 Aug 2013 12:26:33 +0000 (12:26 +0000)]
Merge recent trunk changes into the STAT4 branch.
FossilOrigin-Name:
c69b512af276a438399747af22659415af3a5d4d
drh [Thu, 15 Aug 2013 22:40:21 +0000 (22:40 +0000)]
Make sure that GROUP BY terms select input column names in preference to
output column names, in compliance with the SQL standard.
Ticket [
1c69be2dafc28 ].
FossilOrigin-Name:
f2d175f975cd0be63425424ec322a98fb650019e
drh [Thu, 15 Aug 2013 20:24:27 +0000 (20:24 +0000)]
Bare identifiers in ORDER BY clauses bind more tightly to output column name,
but identifiers in expressions bind more tightly to input column names.
This is a compromise between SQL92 and SQL99 behavior and is what
PostgreSQL and MS-SQL do. Ticket [
f617ea3125e9c ].
FossilOrigin-Name:
c78b357c00a35ed48ce2ffbc041de8d22570d1e2
mistachkin [Thu, 15 Aug 2013 20:05:03 +0000 (20:05 +0000)]
Make it easy to attach a debugger the test fixture process prior to any tests being run.
FossilOrigin-Name:
53cd9ebfaf401c7932bf591e134a527c9962b88e