drh
05db3c7743
Simplify branch coverage testing by interchanging the order of two tests
...
in the whereLoopInsert() function.
FossilOrigin-Name: f7079b5365dd6cd8324a4fb23605e81476122ed6
2013-09-02 20:22:18 +00:00
dan
b49d1047c6
Further stat4 related tests.
...
FossilOrigin-Name: 0a702c4b4c35fdbcb62e3ab88b9e57d7ea0052a8
2013-09-02 18:58:11 +00:00
dan
84f48296fa
Add tests to check if ANALYZE is choosing common non-periodic samples for the stat4 table.
...
FossilOrigin-Name: 175842997af134138784bff6f8e93573deb5b36b
2013-09-02 11:52:11 +00:00
dan
575ab2f8f6
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
2013-09-02 07:16:40 +00:00
drh
1df556e6f2
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
2013-08-31 18:36:14 +00:00
mistachkin
1a88b14e5d
Revise the amalgamation tool to allow 'duplicate' include files to be retained manually while still preserving the existing line numbers.
...
FossilOrigin-Name: aa48284637b954d63bcf77e19b25e75c7ad1a6d3
2013-08-31 18:06:52 +00:00
dan
4a1aa3851a
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
2013-08-31 17:21:26 +00:00
mistachkin
28159a5ee9
Enhancements to the Win32 API definition macros.
...
FossilOrigin-Name: b1811baab6e35ecb1ba920a7ed3302997758d309
2013-08-31 17:01:56 +00:00
dan
3fa2a82b8b
Reenable a test accidentally disabled when the stat4 branch was merged.
...
FossilOrigin-Name: d9fadc8fa6ef02d516678d57896d93e0a5f52cfe
2013-08-31 14:56:30 +00:00
mistachkin
2a43c28f06
Avoid commenting out #include statements when building the amalgamation source code file.
...
FossilOrigin-Name: 2fca6d784b000fd3a4d6890e38a0b087767f3a7f
2013-08-31 05:46:42 +00:00
mistachkin
3fb4b6df07
Fix harmless MSVC compiler warning with MEMDEBUG defined.
...
FossilOrigin-Name: b48cfd2dfca70091a52deeeee16619237e1c270b
2013-08-31 05:13:22 +00:00
mistachkin
9f11ef1232
Improve the consistency of the diagnostic messages on Windows.
...
FossilOrigin-Name: c6f174a0cb27fe79740fffc7ce51081ec52a5dbd
2013-08-31 02:48:56 +00:00
mistachkin
d95a3d3527
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
2013-08-30 21:52:38 +00:00
dan
ad4c7aa10f
Fix compiler warnings in analyze.c.
...
FossilOrigin-Name: 5bbd2ccb3d2d6286fd667dac2ab658d6b89640a6
2013-08-30 20:19:52 +00:00
mistachkin
79e8445f63
Fix comment typo in analyze.c. No changes to code.
...
FossilOrigin-Name: dbc31750440226702fbf88f1bf6140ef403c9be1
2013-08-30 19:59:48 +00:00
drh
e56dd3ad7b
Fix comment typos in the where.c module. No code changes.
...
FossilOrigin-Name: 1e0b77cf0edf3d26f76d83aa5466e9ec0e60a710
2013-08-30 17:50:35 +00:00
drh
f46af73720
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
2013-08-30 17:35:44 +00:00
drh
77a3fdc1b0
Add the SQLITE_MINIMUM_FILE_DESCRIPTOR compile-time option, for control over
...
exactly which low-numbered file descriptors SQLite will use.
FossilOrigin-Name: ba5190534330a25722eeb7ea9c42da7a6d146014
2013-08-30 14:24:12 +00:00
dan
43398081a8
Add a test for fts4 unicode61 option remove_diacritics=0.
...
FossilOrigin-Name: 6bf7ae6ff6b18712544ddeafb6848b3b27ff22d2
2013-08-30 13:29:51 +00:00
drh
5128d009c6
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
2013-08-30 06:20:23 +00:00
drh
00ea0e1133
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
2013-08-29 23:36:49 +00:00
drh
35a0379a05
Change the unix VFS so that it refuses to open a database file using
...
a file descriptor less than 3.
FossilOrigin-Name: 66dddda06898abbf97fe0ac6a10ce1527ca8605e
2013-08-29 23:34:53 +00:00
drh
0c9a8e345e
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
2013-08-29 21:26:26 +00:00
dan
8bff07a55f
Restore fix [f15591f802], which was accidentally clobbered by the stat4 merge.
...
FossilOrigin-Name: d4b6ad3333cc3bad500c2ebf7a6ea552b6762b69
2013-08-29 14:56:14 +00:00
dan
cd40abb297
Candidate fix for [9f2eb3abac]: Have the whereShortCut() planner ignore indexes with more than four columns.
...
FossilOrigin-Name: c1152bdcbb5ac185f743015fff63769effa81b4b
2013-08-29 10:46:05 +00:00
mistachkin
1d406e0dfd
Small enhancements to unit testing infrastructure.
...
FossilOrigin-Name: 9229aeb361f9805894321327d05aba855b8799f3
2013-08-29 01:09:14 +00:00
mistachkin
8bcd3fa75a
Enable finer control of optimizations when compiling with the MSVC makefile. Also, several modularity enhancements to the MSVC makefile.
...
FossilOrigin-Name: 6c709338bc77fbed24a2597eabd88dd8c29b38d7
2013-08-29 01:03:38 +00:00
dan
1d2b70e3d2
Re-enable test file wild001.test.
...
FossilOrigin-Name: 4f182ddc36944fa54f1a34c1f0527db0ebb39c96
2013-08-28 19:01:07 +00:00
drh
e4f9b9b7c0
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
2013-08-28 18:18:12 +00:00
mistachkin
fe27b08934
Update list of supported Tcl shells to include 8.6. Remove stray OS2 references.
...
FossilOrigin-Name: ecd52ccf650ce2a4ab93c7c482289c1bc4768eeb
2013-08-28 18:06:26 +00:00
mistachkin
3259fe7910
Fix a couple comments.
...
FossilOrigin-Name: 945cb89ecb92a6c2075b3e58ce1ba3d419b1b6ca
2013-08-28 17:59:38 +00:00
drh
d41d39f24d
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
2013-08-28 16:27:01 +00:00
drh
38e587779d
Increase the version number to 3.8.1 due to the addition of STAT4 support.
...
FossilOrigin-Name: 41c089e2a21f52b3d6d850eccba60be17010c9fe
2013-08-28 13:46:09 +00:00
drh
868ccf2679
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
2013-08-28 13:33:40 +00:00
drh
f7f8de5fb2
Add a test case for empty quoted field in CSV import in the shell.
...
FossilOrigin-Name: 3df56e849164811117f9ac8ee2aee1eee188bb96
2013-08-28 11:57:52 +00:00
drh
6d57bbfe25
Label a certain branch as NEVER() only for non-STAT3/4 builds.
...
FossilOrigin-Name: b5ccf6e995ac2fe010f49d46d40b487ddbd28e5a
2013-08-28 11:43:49 +00:00
mistachkin
70e9ffa3bb
In the win32longpath test, move the journal mode change down where it was intended to be.
...
FossilOrigin-Name: 5cead293bbbcddd7d0976db41133e40704efcc99
2013-08-28 07:42:43 +00:00
mistachkin
3741827ea1
Support database file names longer than 260 characters using the new 'win32-longpath' VFS variant.
...
FossilOrigin-Name: 37e85e444cde18f061049437980b965d4485f43c
2013-08-28 05:49:39 +00:00
mistachkin
b324bc79e9
Make names of private functions in the Win32 VFS consistent. Fix comment typo in Win32 mutex implementation.
...
FossilOrigin-Name: c3b82c5bf97cfb35544c5b1fbcdf7b9c4827d1cf
2013-08-28 02:37:29 +00:00
mistachkin
533fb6de5b
Remove hard-coding of the directory separator in the Win32 VFS. Fixes to OSTRACE macros.
...
FossilOrigin-Name: fc98092f4bd42d64059024f09547904c1d70a517
2013-08-28 02:26:48 +00:00
mistachkin
f64188910d
Fix several harmless compiler warnings. Fix a couple compiler issues with the shell.
...
FossilOrigin-Name: 8917e9f9a0802cbfb6f33e2ab1c2f98e4df5babd
2013-08-28 01:54:12 +00:00
drh
1435a9a126
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
2013-08-27 23:15:44 +00:00
drh
9fecc546cb
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
2013-08-27 20:16:48 +00:00
dan
0dd8b87955
Update sqlite3.pc.in to use @PACKAGE_VERSION@ instead of @RELEASE@.
...
FossilOrigin-Name: 2460dfd8825d251e622e866e8dc1c0bf7fe7ec9f
2013-08-27 15:41:09 +00:00
drh
59b08dd449
In the ANALYZE command implementation make statInit() a 2-value function
...
since the 3rd parameter was always the same constant.
FossilOrigin-Name: 959bb5acdc3b4e2b481e3c38f20867131bfc9dbc
2013-08-27 14:14:14 +00:00
mistachkin
4496a2329a
Preparation for further Windows path name handling changes.
...
FossilOrigin-Name: ec99224b0c9cf1ccd64b3dc93252556d888e93a3
2013-08-26 23:18:57 +00:00
drh
2f53b90665
Merge the STAT4 capability into trunk.
...
FossilOrigin-Name: a32af0abe5fa6d570604fa3534e8230d5b6042fc
2013-08-26 23:18:06 +00:00
mistachkin
31706a2d94
Change MAX_PATH related defines to use character lengths where WCHARs are used.
...
FossilOrigin-Name: 0a497083e915520c0807cb6611264b1a35ff62b7
2013-08-26 20:45:50 +00:00
mistachkin
09b404419a
Merge updates from trunk.
...
FossilOrigin-Name: 9d6860098f96efc7ea60e2d6116fb7d0e2685a55
2013-08-26 19:36:18 +00:00
dan
4dd5144366
Fix for builds with both SQLITE_OMIT_WAL and SQLITE_MAX_MMAP_SIZE=0 defined.
...
FossilOrigin-Name: edd5dbdc3239fc88799b822941603fcc828ecbb6
2013-08-26 14:30:25 +00:00