mistachkin
d1ef9b6da1
Cleanup the semantics surrounding use of the GetLastError function on Windows.
...
FossilOrigin-Name: 7e657bbb800107c992a6ee7a3b35bc0a073bf3e4
2011-11-21 00:54:37 +00:00
drh
5e4461b261
Change the multiplexor to use a 3-digit suffix.
...
FossilOrigin-Name: 0b7edc44757660c8a5ae3b91cbcc3e6afd419b28
2011-11-18 13:10:51 +00:00
drh
21495ba8a3
Improvements to the documentation of the sqlite3_db_filename() interface.
...
FossilOrigin-Name: 1c45b2a0c055f6fc5da9d00ae2e9171099d904d4
2011-11-17 11:49:58 +00:00
drh
070ad6b6fe
Restore the test for sqlite3OsFullPathname() failure that was mistakenly
...
removed when [ceee03c79a] was backed out by [69ec53fc1c].
FossilOrigin-Name: 4d3cf9e1d8ac356db5a708913f614e42a6a56b94
2011-11-17 11:43:19 +00:00
drh
283829cb20
Add the sqlite3_db_filename() interface.
...
FossilOrigin-Name: 93a947989b57959aacc37007a143fdf3921793ab
2011-11-17 00:56:20 +00:00
drh
f20fb8c6f3
Back out the [ceee03c79a] change.
...
FossilOrigin-Name: 69ec53fc1c60b07bf4aaa983dcd5bf3164fb1ea5
2011-11-16 23:29:37 +00:00
drh
09419b4bae
Add the sqlite3_db_release_memory() interface and the shrink_memory pragma.
...
FossilOrigin-Name: 3f58e7c8895d1252eff56282c08b1a6f1194452c
2011-11-16 19:29:17 +00:00
drh
870c0178f7
Merge the PCACHE2 changes into trunk.
...
FossilOrigin-Name: 457513f21f2438c61b1a214716e338a4e3eeaafa
2011-11-16 18:08:07 +00:00
drh
d236b16412
Change the multiplexor suffix from 2 to 3 digits.
...
FossilOrigin-Name: 06e0cdaf9112f722c23692e25c5b1f99b61c2d78
2011-11-16 17:32:28 +00:00
drh
8f10acdb5b
Remove code made obsolete by the changes to index processing that allow
...
range search on the rowid.
FossilOrigin-Name: a5418c7fc216a30abf7b2fa8c579aee586393a91
2011-11-16 16:23:15 +00:00
dan
6f13323118
Fix an invalid assert() statement added by [3b58f5f066].
...
FossilOrigin-Name: 888b09dd8fc0a31b69852a2c10eebb5f31fe35de
2011-11-16 15:41:29 +00:00
dan
0c733f67d8
Where possible, take advantage of the rowid at the end of index records to optimize range constraints (<, >, <=, >=) on the rowid column.
...
FossilOrigin-Name: 3b58f5f06648205a47e5cace0201269c406e476a
2011-11-16 15:27:09 +00:00
dan
bf567db91d
Update memsubsys1.test to account for the recently increased size of the MemPage structure in btreeInt.h.
...
FossilOrigin-Name: 4fb3ca756a3a7c66baa4745a9b2c1e246a67c699
2011-11-16 08:18:20 +00:00
drh
3f5b98df17
Forward port the 8-byte alignment fix from branch-3.7.9.
...
FossilOrigin-Name: ebf6eb6ed756c0a3158b4cb5fb4b460c79d93c29
2011-11-14 03:00:28 +00:00
drh
e09b84c558
Fix a 8-byte alignment problem that causes a SIGBUS on Sparc.
...
FossilOrigin-Name: 54cc11981127b52145e39f551d958580b1d45169
2011-11-14 02:53:54 +00:00
drh
81ef0f97ef
Add a version number to the sqlite3_pcache_methods2 object. Other PCACHE2
...
documentation improvements.
FossilOrigin-Name: 9f839ac05a9f3cfe587d2ccdccd50dac41baedbe
2011-11-13 21:44:03 +00:00
drh
f923f82118
Attempt to modify btree.c so that it assumes that calls to sqlite3PagerWrite()
...
will reallocate the page buffer. As there is not good way to test this
assumption yet, probably a few spots were missed.
FossilOrigin-Name: ceee03c79a55ea39866758aa76b78b10e5f4246d
2011-11-12 23:10:13 +00:00
drh
d515660523
Remove a couple of incorrect assert statements so that the test suite will
...
run with -DSQLITE_DEFAULT_CACHE_SIZE=0.
FossilOrigin-Name: 87614b62ace530761e0e1170ec5840b212735ec6
2011-11-12 16:46:55 +00:00
drh
cc682cc875
Merge the windows xSyscall enhancements into trunk.
...
FossilOrigin-Name: c1fab9aca1fe1dda2b4c7e4fdc0a406998847bdb
2011-11-12 15:41:52 +00:00
mistachkin
6c3c1a0951
Make sure to flag benign malloc failures in the Windows VFS as such. Expand use of the DO_OS_MALLOC_TEST to cover the VFS functions that can now return an out of memory error. Support an experimental --match option to the test suite that will run only those tests matching the specified pattern.
...
FossilOrigin-Name: 76dec8aa9dbbc39e0a7c3b358b58ce7f7a477a2b
2011-11-12 03:17:40 +00:00
drh
4cb5f436cb
Catch and report errors from sqlite3OsFullPathname().
...
FossilOrigin-Name: 77119785c84ac7f416ed72c38c532399b6093d7a
2011-11-11 23:51:15 +00:00
mistachkin
5f075388de
Remove use of malloc and free from the Windows VFS. Also, prevent sqlite3BtreeOpen from assuming that sqlite3OsFullPathname cannot fail.
...
FossilOrigin-Name: 8966ec1797be63d1305628d459bdad5be08cf3ca
2011-11-11 23:31:04 +00:00
mistachkin
318507b74f
Work in progress to implement the 'syscall' functionality for Windows.
...
FossilOrigin-Name: ed88fb00240de75457c0da19e87c12082622ca17
2011-11-11 22:08:54 +00:00
drh
c90747313e
Pull over all the latest changes from trunk.
...
FossilOrigin-Name: 1bbbf8574a820c5f787a937f02a8e2a91264ace0
2011-11-11 14:12:36 +00:00
drh
3def2357e6
Make sure a corrupt index does not cause a buffer overread in
...
sqlite3VdbeRecordCompare().
FossilOrigin-Name: 471cf0d8e7857110e525e029c2d535cb518dba6a
2011-11-11 00:27:15 +00:00
mistachkin
a9664a14ea
Expand passing of a last error argument to the getLastErrorMsg function. Also, remove unused SQLITE_W32_THREADS define.
...
FossilOrigin-Name: 8f28797984c1d4700357a75815ca4b324c3ebf5c
2011-11-10 21:45:06 +00:00
mistachkin
2aef997cbd
In winAccess, save the Win32 last error value prior to invoking user logging callback. Also, explicitly pass the Win32 last error value to winLogError in order to keep it accurate. Fixes a problem reported on the mailing list.
...
FossilOrigin-Name: 32ab365715e2c50f30aa2f92a323857b9d917bf6
2011-11-10 20:21:20 +00:00
drh
61a4bd5c6c
Follow-on to the previous check-in to prevent a division by zero if the
...
lookahead slot size is something goofy like 6 on a 32-bit machine.
FossilOrigin-Name: 6bda711f93e753dd0be8d896a007b3f7b5064787
2011-11-10 02:39:28 +00:00
drh
8225d66be6
Use sqlite3MallocSize() to get the actual size of the memory allocation
...
used for lookaside cache and increase the size of the cache to use the
full allocation.
FossilOrigin-Name: 0e53ecad9468d0a13d155a4462551d4c234a7d5c
2011-11-10 02:24:11 +00:00
drh
d6ca4b9fe1
Omit an unnecessary Sleep() call in windows pending-lock retry
...
logic. Enhance the comment on that logic to discourage people
from copying it into other VFSes.
FossilOrigin-Name: 0c951a970436725b6bbd64568de500f7a4e6460b
2011-11-09 18:07:34 +00:00
mistachkin
32121199be
When compiling with MSVC, use the _msize function.
...
FossilOrigin-Name: 797a147934743a565c6f1f9dd4d41574690b4c2b
2011-11-09 17:01:40 +00:00
drh
e73c91496f
Minor changes needed to restore full branch test coverage.
...
FossilOrigin-Name: bc10a753579b65ba4604867204b7b3d8383f3ac7
2011-11-09 16:12:24 +00:00
drh
3b42abb35b
A negative value N for the cache_size pragma adjusts the number of cache
...
pages to use approximately N kibibytes of memory.
FossilOrigin-Name: b3faa680aedc94ed8aa2819228c0d304b181cc51
2011-11-09 14:23:04 +00:00
drh
6a8ab6d9cb
For the mem1.c system malloc implementation, use the malloc_usable_size()
...
function if the HAVE_MALLOC_USABLE_SIZE macro is defined. Update autoconf
to look for that function when configuring.
FossilOrigin-Name: 2e8ab3cedfebc33a831837792b523d1aa7cdc6b7
2011-11-09 01:53:25 +00:00
drh
e5c40b18e3
Update the API documentation for the new pcache2 interface. Change the
...
order of parameters on the xCreate method of pcache2.
FossilOrigin-Name: 4da7095683ec821414e255419d63a24dbd9d726d
2011-11-09 00:06:05 +00:00
dan
22e21ff4fc
Experimental change to the pcache interface to allow page buffers to be allocated separately from their associated container structures.
...
FossilOrigin-Name: c275c9d323cb1dccb031b199d413ac3a0b244fea
2011-11-08 20:08:44 +00:00
drh
5802464316
Make the unix VFS tolerant of read() calls that return less than the
...
requested number of bytes.
FossilOrigin-Name: a210695abcfa5cb04279edfd04824d881b7c4ada
2011-11-07 18:16:00 +00:00
drh
a46739eae0
Amplify the restriction on commit-hooks that they cannot recursively
...
run SQL on the same database connection.
FossilOrigin-Name: 4fe5b73115a8b44950767f1b528107261d7312c9
2011-11-07 17:54:26 +00:00
drh
f4fd9ed3cd
Add a makefile target for tclsqlite3.c to Makefile.in.
...
FossilOrigin-Name: f521b6b7e42c82f09a91df5a5acf4e46c860e72a
2011-11-07 16:46:43 +00:00
drh
bf3f5f8d5c
Change the default file format from 1 to 4. This means that, unless
...
PRAGMA legacy_file_format=ON is used first,
new databases will not be readable by versions prior to 3.3.0 (2006-01-10).
FossilOrigin-Name: a35f52b1ad22c2ad49fb1083f892b92c72da348c
2011-11-07 13:05:23 +00:00
dan
f673e09ef5
Move function sqlite3PagerClearCache() out of the "ifndef SQLITE_OMIT_WAL" block and into an "ifndef SQLITE_OMIT_VACUUM" block.
...
FossilOrigin-Name: 5dbfaed8c3e09ea35033dacf6faa3d6a0202cc68
2011-11-06 05:06:13 +00:00
drh
ccdf1baebf
Update the xfer optimization code so that the xfer optimization can be used
...
with INTEGER PRIMARY KEY ON CONFLICT ... as long as the destination table
is initially empty. Improvements to the comments on the xfer optimization.
New test cases added.
FossilOrigin-Name: e3f368cd5ef66a56fd4bd05a77276039e26b9e0e
2011-11-04 14:36:02 +00:00
dan
d28286181d
Change a memcpy() in sqlite3FileSuffix() to memmove() on the grounds that the source and destination may overlap.
...
FossilOrigin-Name: 5e1d247e5b3b5dcf6763f01002e996786db48152
2011-11-04 12:05:52 +00:00
dan
689e38f7cf
Add a missing va_end() macro to fts3.c.
...
FossilOrigin-Name: e6f825748a1d510c8f5529c79656bb5db9216231
2011-11-04 10:37:21 +00:00
drh
9ef6bc427a
Use mkdir() and rmdir() rather than open() and unlink() to create the lock
...
files with the unix-dotlock VFS. The change is backwards compatible and,
we are told, works better on some network filesystems.
FossilOrigin-Name: e2f08426d7a84a2ac6148f485b7af377201a175b
2011-11-04 02:24:02 +00:00
drh
6ac7a58b14
Enhance the shell so that the ".schema" command works with case insensitive
...
LIKE patterns even with PRAGMA cache_sensitive_like=ON.
FossilOrigin-Name: b06bf3b3605a3c39cdfbb76c9a9f6b5202bb95ec
2011-11-04 00:35:56 +00:00
drh
e7224a011b
Make sure the INSERT INTO ... SELECT statement works correctly even when
...
the destination table contains an INTEGER PRIMARY KEY ON CONFLICT... column.
Ticket [676bc02b87176125].
FossilOrigin-Name: 6f9898db7ff0730cc03f561f9c32ef3dee7e5d81
2011-11-04 00:23:53 +00:00
drh
75e700c100
Version 3.7.9
...
FossilOrigin-Name: c7c6050ef060877ebe77b41d959e9df13f8c9b5e
2011-11-01 00:52:41 +00:00
drh
76c67dca68
Fix a typo in a comment. No code changes.
...
FossilOrigin-Name: 6635cd9a7714b681dd8aa96e90be462a40d10178
2011-10-31 12:25:01 +00:00
dan
042f88e5b4
Add new file ext/fts3/README.content, describing the experimental FTS4 content option.
...
FossilOrigin-Name: 13a9d085e1a5654a97b8d26bae7182ca6c0c237b
2011-10-31 11:36:29 +00:00
dan
9fc160c72a
Update fts3fault.test to account for the sqlite3_errmsg() related changes in [8f88cc4e61] and [dcb7879347].
...
FossilOrigin-Name: 3f2d49c6786beb6ff9d56376364ebc6cd9136346
2011-10-31 06:52:51 +00:00
dan
09024341d5
Update fkey_malloc.test to account for the sqlite3_errmsg() related changes in [8f88cc4e61] and [dcb7879347].
...
FossilOrigin-Name: 5b82ec6fbbd2f4195ad06dd911de3817373ad5bf
2011-10-29 19:25:08 +00:00
dan
3b504df151
Add a test for [48f29963] that does not depend on FTS.
...
FossilOrigin-Name: fb15f5458eb3e17ce9795c09bffe1224fea0eecd
2011-10-29 15:29:43 +00:00
drh
0d1ee483ec
Fix some code formatting in sqlite3Ext.h to avoid lines longer than 80
...
characters.
FossilOrigin-Name: 3ec20c3020e1bb5ec2815848af75cf4847a218e5
2011-10-29 12:42:31 +00:00
dan
341cadee54
Avoid attempting to call savepoint related methods on deleted sqlite3_vtab objects. Fix for [48f299634a].
...
FossilOrigin-Name: 3565fcf898960d7a23d23a2f363b039b2e29447b
2011-10-29 11:43:04 +00:00
drh
81bdd6db54
Avoid reporting a NOMEM error if a memory allocation fails while copying
...
the error message from a prepared statement into the database connection.
FossilOrigin-Name: dcb78793474e533c3e4f5c6389ba3c997f062eee
2011-10-29 01:33:24 +00:00
dan
029ead645d
If an error occurs within sqlite3_step() on a statement prepared using sqlite3_prepare_v2(), transfer both the error code and error message to the database handle before sqlite3_step() returns (so that they are available via sqlite3_errcode() and sqlite3_errmsg(). Prior to this commit, only the error code was transfered. The error message was not available until after either sqlite3_reset() or sqlite3_finalize() had been called on the statement handle.
...
FossilOrigin-Name: 8f88cc4e616b4b30ed349f89e148f782da5cb6c4
2011-10-27 15:19:58 +00:00
drh
7abc54021c
Avoid a harmless reference to an uninitialized variable following an
...
error in FTS3. This is not a bug. The change is to silence a valgrind
warning.
FossilOrigin-Name: d980c5b22fd700afb3cac5de5501c9350f2f589e
2011-10-22 21:00:46 +00:00
drh
74e7c8f51f
Purge lingering references to SQLITE_STAT2 from the code and test scripts.
...
FossilOrigin-Name: aed2bf7a3c828a7191389b3f8235a9387977b476
2011-10-21 19:06:32 +00:00
drh
f9b22ca416
Remove stale requirements marks from the query planner.
...
FossilOrigin-Name: 76de9914bed11abda3898928633ad09d5a284f84
2011-10-21 16:47:31 +00:00
dan
1a83bc5b1a
If an error occurs while writing to the database file during a VACUUM, discard the contents of the in-memory cache. This is required as if the database is a zipvfs database, the contents of the cache may be inconsistent with respect to the database as stored on disk.
...
FossilOrigin-Name: 07159e84b40b01fa40cac5fad1f433888e5984f8
2011-10-21 14:27:32 +00:00
drh
d337c5bde8
Fix an issue with finding the access permissions of journal files when
...
8+3 filenames are in use.
FossilOrigin-Name: 2b35c5144ddcc2ed6d0fcaa8c0ba5d20b9487be7
2011-10-20 18:23:35 +00:00
drh
60bdeb2aa9
Enhancements to the omittest.tcl script used to verify that the
...
SQLITE_OMIT compile-time options are working.
FossilOrigin-Name: 4344483f7d7f64dffadde0053e6c745948db9486
2011-10-20 00:55:54 +00:00
drh
6ed18b7110
Fix harmless compiler warnings in FTS4.
...
FossilOrigin-Name: 1af4a25631c4077a9bfc64e15eb92fbf5146c89c
2011-10-19 18:21:47 +00:00
drh
d76b64e1c6
Fix comments on SQLITE_CONFIG_HEAP so that they do not interfere with the
...
requirements scanner.
FossilOrigin-Name: a3151ce15c256219646013d695b6e162e306cef8
2011-10-19 17:13:08 +00:00
dan
e459b07601
Merge the fts4-content branch with the trunk.
...
FossilOrigin-Name: 8a4077057ddeb08e8edc5f20a75abaaba7a278ba
2011-10-19 16:20:40 +00:00
dan
9743948386
Have FTS3 ignore ^ prefixes. The ^ syntax is only supported on FTS4 tables.
...
FossilOrigin-Name: df36ac948179f37b432a88701b6c79299e073ce8
2011-10-19 15:52:48 +00:00
dan
d17f70a624
Change the way ^ tokens work in FTS so that the filtering is done as part of reading the FTS index instead of waiting until an entire doclist has been retrieved and then filtering it.
...
FossilOrigin-Name: 9b58c59eb4efaa38ce50a3ce1b52f9ba578c71d6
2011-10-19 11:57:13 +00:00
dan
8653fa8504
Add tests for FTS ^ searches and matchinfo().
...
FossilOrigin-Name: 92618c1463fb304cf8057d082b2c7096152dff27
2011-10-19 10:18:01 +00:00
dan
50a7544d6f
Fix a problem in FTS to do with ^ tokens and the snippet() function.
...
FossilOrigin-Name: 2c03b24f4cc6f2c28c9d5b9984320d41b8486c32
2011-10-19 09:40:49 +00:00
drh
98655a696e
Fix the virtual table rename logic so that it works even if the database
...
encoding is something other than UTF8.
Ticket [8290242b2a9a81683]
FossilOrigin-Name: d65f63531c3f8e3e55e656f049240714a3d7433f
2011-10-18 22:07:47 +00:00
dan
3f1ea8d114
If a token within an FTS query is prefixed with a '^' character, it must be the first token in a column of data to match.
...
FossilOrigin-Name: 63ac33c860eb32ce96699f06bf83121cec2ffaca
2011-10-18 19:39:41 +00:00
drh
a2153f75c3
Fix an uninitialized variable in OR-clause processing.
...
FossilOrigin-Name: 54aecd929867606d14a062b501abbfb6f5f05e37
2011-10-18 19:14:33 +00:00
drh
e802c5da01
Improved handling of USING and NATURAL JOIN in 3-way and higher joins.
...
Ticket [3338b3fa19ac4ab]
FossilOrigin-Name: 551ce407bd77149865423511bd52eba2f404161a
2011-10-18 18:10:40 +00:00
dan
a986d33fd3
Cherrypick patch [3126754c72] from the trunk into the content= branch.
...
FossilOrigin-Name: f9b5b217088a6aeb25eba184ab92d1a842a680a6
2011-10-18 12:49:59 +00:00
dan
42495cd46f
Fix a floating-point exception that can occur when an FTS4 query contains a large number of tokens connected by AND or NEAR operators.
...
FossilOrigin-Name: 3126754c72351c724be29d75a194bfc3e7b67205
2011-10-18 12:44:04 +00:00
drh
057fc817d7
Change the OP_JournalMode implementation so that it works even if a
...
substitute sqlite3PagerFilename() that might return NULL is used.
FossilOrigin-Name: 491ff5fb2504173d6905e38b8ea35737338aaa84
2011-10-17 23:15:31 +00:00
drh
57db4a7509
Avoid 32-bit integer overflow when evaluating the exponent of a floating point
...
value during ascii to binary conversion.
FossilOrigin-Name: 4becc47eb4d48686faca4f61e93e5f379b227fcc
2011-10-17 20:41:46 +00:00
drh
2458a2e742
Performance improvement for ascii to floating-point conversions with very
...
large exponents.
FossilOrigin-Name: 59bb999c8ba5e4ee7a4e388fc724b8606136d60c
2011-10-17 12:14:26 +00:00
drh
30ddce6ff4
Added the tool/warnings-clang.sh script. Changes so that there are no
...
warnings with either gcc or clang even including FTS4 and RTREE and
both with and without SQLITE_THREADSAFE=0.
FossilOrigin-Name: 39408702a989f907261c298bf0947f3e68bd10fe
2011-10-15 00:16:30 +00:00
drh
086e4913b5
Fix a few minor and harmless clang warnings in FTS3 and RTREE.
...
FossilOrigin-Name: b3324f6cc27c3bfb32b12eacace2fc731c2dd644
2011-10-14 22:57:03 +00:00
drh
b07028f71c
Add assert() statements and eliminate needless variable assignments in order
...
to get the clang scan-build utility to report zero problems against the
SQLite core. Clang's static analysis did find one real problem - but it was
in the command-line shell, not in the SQLite core.
FossilOrigin-Name: 60fee9574b0125705787e33c16f116cf188c8323
2011-10-14 21:49:18 +00:00
drh
0edb7acd3c
Change the makefile to delete both plain and ".exe" variants of build tools.
...
Ticket [92bd6eaf04e117]
FossilOrigin-Name: 19536a382815c2ff4cb23625984b4ca92e5e17ee
2011-10-13 18:08:04 +00:00
drh
df901d34e5
Simplifications to the upper() and lower() SQL functions.
...
Updates to documentation on sqlite3_bind_text() and sqlite3_result_text()
to make it clear that users should not try to create strings with
embedded NULs and that if they do the result of expression on those strings
is undefined. Ticket [57c971fc74524a]
FossilOrigin-Name: 9984cc20ca70b7fb39c0b99580a1317a7b0c9c85
2011-10-13 18:00:11 +00:00
dan
8dab211632
Handle updating the only row of an FTS table correctly. Fix for [9fd058691].
...
FossilOrigin-Name: 7e24645be2fe0ffe092212e7bcfa5b4500305811
2011-10-13 17:16:45 +00:00
drh
c522731b88
An improved fix for the page_count and quick_check problem previously
...
patched at [150592b4b4d8637]
FossilOrigin-Name: c3cb7f4fad725d5fa4d5acd9da63fc4538ce8e13
2011-10-13 17:09:01 +00:00
drh
b2acc3b145
Provide a complete prototype for isatty() in the command-line shell sources.
...
FossilOrigin-Name: 8bf13b036a77af9984f8f3d3a93da589fafd773f
2011-10-13 16:36:29 +00:00
drh
56197954dd
Change the command-line shell to do the ".dump" inside of a SAVEPOINT
...
rather than a transaction, since this allows it to be run from within
a transaction.
FossilOrigin-Name: 6df7343b4c3de9ad8221180dc959dbbdf54733c7
2011-10-13 16:30:13 +00:00
drh
36f7dd3f0b
Enable large-file support for fopen() and friends in the command-line shell.
...
Ticket [92af7da36b6fbd]
FossilOrigin-Name: eeeba4f0d2207ec26c60a405e2705e5d40022dbb
2011-10-13 16:02:17 +00:00
drh
6b93c9ae24
Make sure the query optimizer for aggregate queries knows that expressions
...
(x='a') and (x='A') are different. Ticket [fa7bf5ec94801e7e]
FossilOrigin-Name: e43da426e66e6b63d5ed9610a6308aba0089313b
2011-10-13 15:35:52 +00:00
drh
5d16a9a6c6
Make sure the page_count and quick_check pragmas work properly even when
...
their names are capitalized. Fixes a problem reported on the mailing list.
FossilOrigin-Name: 150592b4b4d86372e70332d4f69e41a04c4c54c3
2011-10-13 14:41:22 +00:00
drh
beaba6282b
Adjust the symbols.sh script for STAT3. Add the symbols-mingw.sh script for
...
testing on windows with MinGW.
FossilOrigin-Name: c41d1d4652b8c7608322e9360c30f06965fd0942
2011-10-13 14:18:51 +00:00
drh
134c4ff698
Make sure all non-API functions in os_win.c have file scope.
...
Ticket [35c54c874987]
FossilOrigin-Name: 17e4fde5c541f1bba723386938b6123b2431bffc
2011-10-13 14:05:32 +00:00
drh
58c803b7f0
Do the ".dump" command inside of a transaction to prevent other processes
...
from modifying the database while the dump is underway.
Ticket [2466653295e65]
FossilOrigin-Name: 1c00d5454c85dfddb6c628c3742b4ddeaad6423a
2011-10-13 13:34:04 +00:00
drh
b87a666315
Fix a harmless compiler warning introduced into os_unix.c by one of the
...
recent changes.
FossilOrigin-Name: 4bf4d5ebfbf5d157a8bf3a3817e2ce350f25af0e
2011-10-13 01:01:14 +00:00
drh
2f464a045b
If errors are encountered while processing the ".dump" command in the
...
command-line shell, print error messages as comments in the output and
ROLLBACK at the end rather than committing.
Ticket [ee19e690ec9a5a2]
FossilOrigin-Name: 8a8dcd6bd043d82dc04b6ad0614c64d20ace8e5f
2011-10-13 00:41:49 +00:00
drh
52dbea883f
Be sure to allocate plenty of space for error messages coming out of
...
sqlite3_load_extension(), so that filenames and procedure names are
not truncated. Ticket [7d32c69b50f89d]
FossilOrigin-Name: af8bcdd951c31f69966942d67833da30f6b121bf
2011-10-13 00:11:36 +00:00
drh
cb5e4dbf4e
The sqlite3_overload_function() interface returns an error if it is unable
...
to create the overload function. Ticket [20f9d4fbbff3a3]
FossilOrigin-Name: d5b6b374c5225d21c386fb3d6507d3938296e759
2011-10-12 23:49:49 +00:00
drh
3170225f19
The date/time functions return NULL if the xCurrentTime or
...
xCurrentTimeInt64 VFS methods fail.
Ticket [0b803bff856c644c]
FossilOrigin-Name: c96651dd6ceadd51c9e1f4d942177d3c128c47b4
2011-10-12 23:13:43 +00:00
drh
c3c8dac741
Suppress a compiler warning that occurs with SQLITE_OMIT_VIRTUALTABLE.
...
FossilOrigin-Name: 6bedb49d68f2960a6fc4701d02e177789abf9099
2011-10-12 19:04:07 +00:00
drh
ed1fddf462
Clean up obsolete comments in printf.c.
...
FossilOrigin-Name: 97ef4f5013731fa3a0f72451b7e8c9aec5523104
2011-10-12 18:52:59 +00:00
drh
8a575d9aa9
Clarify a comment and fix a code formatting issue in btree.c.
...
FossilOrigin-Name: 4f1a558d0013fbf3fe00bdf5883e61a1f3779831
2011-10-12 17:00:28 +00:00
drh
f0693c8928
Put in code to defend against signed/unsigned character problems
...
in the command-line shell.
FossilOrigin-Name: b94a80a832777f0e639f6a81fcfe169bf970a8c0
2011-10-11 20:41:54 +00:00
drh
338ec3e18e
Add a couple of asserts trying to make the operation of
...
sqlite3SelectNew() clearer.
FossilOrigin-Name: b21b1c7bc490b193da8d8a277489eb875a507e30
2011-10-11 20:14:41 +00:00
drh
3ec4a0c1a5
Change the behavior of the readonly_shm=1 query parameter so that it never
...
attempts to open the -shm file read/write.
FossilOrigin-Name: f1364004836078378e4005ab3eb9c0a04e3d4ce7
2011-10-11 18:18:54 +00:00
drh
59eedf7925
Remove all precision and width limits from formatting fields in the
...
sqlite3_mprintf() family of functions. Malloc for space as necessary.
The prevents a stack overflow on very large numbers using %f.
FossilOrigin-Name: 1f843fb383583ee7ef51c13b8a820744e450101a
2011-10-11 17:54:54 +00:00
drh
67855877ff
Fix requirements marks associate with STAT3.
...
FossilOrigin-Name: 9325c1a8c413dfbf0381190d8347f0a446ae5f5b
2011-10-11 12:39:19 +00:00
drh
36c0632127
Enhance sqlite3_analyzer so that it is able to deal with multiplexed databases
...
that have 8+3 filenames.
FossilOrigin-Name: e5169f9a5b7e20b8adaf6ebb7868a64e44fd7321
2011-10-10 16:06:35 +00:00
drh
9471406cf2
Fix a typo in a comment for PRAGMA journal_mode. Also amplify that same
...
comment.
FossilOrigin-Name: c8ff2a484005ca48c52407db9f4a9a7d9f747158
2011-10-10 12:04:14 +00:00
drh
385e52f60c
All the soft_heap_limit to be exceeded by 10% in test cases.
...
FossilOrigin-Name: 4be9dccc711c9ad252e2cbd99bbcbe43247503a1
2011-10-08 21:39:11 +00:00
dan
f4ba109356
Add the SQLITE_DIRECT_OVERFLOW_READ compile time option.
...
FossilOrigin-Name: 2ab14a846727857175eac7961b7338c4d3b417ca
2011-10-08 14:57:07 +00:00
drh
08ccfaa1b1
Change the ANALYZE command so that it no longer tried to delete unused
...
sqlite_stat2 and sqlite_stat3 tables. Change the DROP TABLE command so
that it is able to drop those tables.
FossilOrigin-Name: 589f3f5652e3674d3203f8bd32784a46b5ed530c
2011-10-07 23:52:25 +00:00
drh
9734e6e1f4
Make sure sqlite3_data_count() behaves as documented, even for
...
EXPLAIN QUERY PLAN queries.
FossilOrigin-Name: d4f95b3b6e9f4a4072606af5daa17ea7c645382e
2011-10-07 18:24:25 +00:00
drh
be7beab5f4
Improved handling of OR terms in the WHERE clause with multi-column indexes.
...
FossilOrigin-Name: b23ae131874bc5c621f0f5ea8d76fce1ec089cc2
2011-10-07 17:52:40 +00:00
drh
0a61df670e
Add testcase() macros to ensure good test coverage.
...
FossilOrigin-Name: 5c132592820e9dc2355e26ea14e155c797c335b3
2011-10-07 17:45:58 +00:00
dan
c5f20a0061
Add the SQLITE_FCNTL_OVERWRITE file-control. Used by SQLite to indicate to the OS layer that the current transaction will overwrite the entire file.
...
FossilOrigin-Name: 1da87fcdacfa7d277c3ee98e410a9ea8b529c368
2011-10-07 16:57:59 +00:00
drh
85ae206e69
More test cases for the OR optimization.
...
FossilOrigin-Name: 4997d8b81cd3ea7c708911bfece00020d11224f9
2011-10-07 16:08:28 +00:00
drh
9ef61f4f4e
Prevent infinite recursion of in the query planner for some pathological
...
test cases by disabling OR-clause processing upon first recursion.
FossilOrigin-Name: 9fca05eac503d712886a05d03794f76c61fb39ed
2011-10-07 14:40:59 +00:00
drh
8871ef5afd
Begin an effort to enhance the query planner to do a better job with OR terms
...
in the WHERE clause. This change allows ANDs outside of the OR to be factored
into the OR terms if that is helpful in finding better indices.
FossilOrigin-Name: 876bd21aaac444c7e056730e35696a74e9a1af0a
2011-10-07 13:33:10 +00:00
drh
f3259997c0
Enhance the sqlite3_data_count() routine so that it can be used to determine
...
if SQLITE_DONE has been seen on the prepared statement.
FossilOrigin-Name: 9913996e7b0f94ba1c51200b61433193002f3638
2011-10-07 12:59:23 +00:00
drh
a624fd5038
Add the --pageinfo and --stats options to the sqlite3_analyzer utility.
...
FossilOrigin-Name: baa80c7bc31900decae0d8e6090b30fcde377492
2011-10-05 19:46:03 +00:00
drh
b770894ec7
Update the sqlite3_analyzer utility program to provide more details about
...
the compression performance of ZIPVFS database files.
FossilOrigin-Name: fa5ed53296d45a5f963d20fb361555c432e0f31b
2011-10-05 18:18:13 +00:00
dan
2cf7e0a712
Fix test code related to reporting the size of overflow pages in zipvfs databases.
...
FossilOrigin-Name: ad7c9eed8bbd607babce4f5965f587c873e7bc02
2011-10-05 17:36:27 +00:00
drh
c47167a6a8
When finding the appropriate file permissions for journal files with
...
SQLITE_ENABLE_8_3_NAMES, ignore "-" characters in the name of the
containing directory.
FossilOrigin-Name: 328cc1867ffbbf1c953dfd843649f5f209c8e6ec
2011-10-05 15:26:13 +00:00
dan
deb9473250
Change FTS4 so that if both the content=xxx option and column names are specified, the virtual table assumes that the named columns correspond to columns of table xxx.
...
FossilOrigin-Name: 289ee43179369fce2fde50870d72c445e184e896
2011-10-05 15:11:30 +00:00
dan
8361b189c9
Fix a problem with IO error handling in the rebuild-index code.
...
FossilOrigin-Name: c6ba81fcad32192674bd510e607f787adc1f7038
2011-10-05 06:07:00 +00:00
dan
49fc336438
Improve test coverage of fts3.c.
...
FossilOrigin-Name: 0f439944ab49a5691615bc170fdcf652055573df
2011-10-04 19:41:50 +00:00
dan
cc5b81464a
Add tests to check that modifying the schema of an FTS content table does not cause a crash in the FTS module. Also disable the deferred token optimization for content=xxx FTS tables.
...
FossilOrigin-Name: be86c7061b68f403730bf63ea1f7dc0d9ceb0a3b
2011-10-04 16:37:35 +00:00
dan
d8e454e19a
Add experimental 'content' option to FTS4.
...
FossilOrigin-Name: 1d27ea741f61c624e18bdc6a3b1c2d8574a64ddc
2011-10-04 11:22:59 +00:00
drh
d4b0ff9926
Merge the STAT3 changes into trunk.
...
FossilOrigin-Name: 774d0842bcce8862f2aac371f1689536ed234a0a
2011-10-03 15:30:33 +00:00
mistachkin
c756dedace
Update MSVC makefile to allow targets to be built with support for ICU.
...
FossilOrigin-Name: eb5da5e1dbe9c198095036827318fb381441cbd0
2011-10-02 05:23:16 +00:00
dan
1696124db7
Disable the xfer optimization if "PRAGMA count_changes=1" is configured. Ticket [c48d99d690].
...
FossilOrigin-Name: 9ddfe1e41300413bc9af7e5ce0ec9d1daf9136b1
2011-09-30 12:01:01 +00:00
drh
7b075e3a1c
In the shell, allow arbitrary table names on the ".import" command.
...
Ticket [d1d84037b90a449].
FossilOrigin-Name: f4dd32d30ed54f847319664cf749fd0b92b4af3f
2011-09-28 01:10:00 +00:00
drh
4c9f129d60
Enhance the stat VFS to report out the total size of all pages used by
...
a table, even if the ZIPVFS compression backend is in play. Update
the sqlite3_analyzer logic to use these new outputs.
FossilOrigin-Name: 19b8eaaf70db82d401d33beb7fd36045d5e8326f
2011-09-28 00:50:14 +00:00
drh
f08f3843b7
Changes to sqlite3_analyzer to try to avoid integer overflow problems
...
when linking against older versions of TCL.
FossilOrigin-Name: 8c846311a0cd510bbf9361213bb60764e9b797aa
2011-09-27 13:40:26 +00:00
dan
64b41c7132
Changes to the analyzer script to make it work with zipvfs databases.
...
FossilOrigin-Name: d82cffab6acafcf9d91fea4ac47cad73f6f09775
2011-09-26 19:32:47 +00:00
drh
3051dc1c7f
If an open as read/write fails, do not try to reopen as read-only if in
...
exclusive access mode.
FossilOrigin-Name: 263c5fb2802f8c84835e42fc66acb1065b7e42b9
2011-09-25 17:49:26 +00:00
drh
497ffc4c5d
If an open as read/write fails, do not try to reopen as read-only if in
...
exclusive access mode.
FossilOrigin-Name: 4a153f010037db83107314269b240c0ece8430f8
2011-09-25 17:47:58 +00:00
dan
a682a6b578
Fix misc3.test so that it works with OMIT_MERGE_SORT builds.
...
FossilOrigin-Name: 87946c627f7230bea3739fd6aeec3e56115a3f93
2011-09-24 09:54:14 +00:00
dan
5209132a48
Fix some test files so that they work with SQLITE_OMIT_WAL builds.
...
FossilOrigin-Name: a38668dcff0a4d241d959ea19330ad43295d757d
2011-09-24 05:55:36 +00:00
drh
c78e6e4c4b
Add SQLITE_DBSTATUS_CACHE_HIT and _MISS to the ".stat" command in the shell.
...
FossilOrigin-Name: d279e1a309909a0897b6082753a0fadb5066c31a
2011-09-23 18:58:23 +00:00
drh
0bab6c3ef7
Add the -DBUILD_sqlite option to the compiler when building testfixture.exe
...
using the configure script.
FossilOrigin-Name: 15a13b6c59ddf145c3fc860d993a7fa5587a0799
2011-09-23 16:34:49 +00:00
drh
790a55171e
Merge the latest trunk changes into the stat3-trunk branch.
...
FossilOrigin-Name: 0beb88a92c8f75231df120bef54616c7e4bb68c8
2011-09-23 14:40:31 +00:00
drh
567211ed0e
Testability enhancements.
...
FossilOrigin-Name: be44928cf2a3c063c8228b769d90947acbfad1ef
2011-09-23 13:59:33 +00:00
drh
369980189b
Fix typos in the format description comment of analyze.c.
...
FossilOrigin-Name: 74e27fad339a2d7899c1f42805e615128929f07a
2011-09-23 13:25:03 +00:00
drh
2b9cf669d8
Remove the restriction on the number of entries per index in sqlite_stat3.
...
FossilOrigin-Name: 374343c8ad53829c4ad715ed623d16635797de9a
2011-09-22 20:52:56 +00:00
drh
5c62486cd8
Fix an issue in ANALYZE when STAT3 is disabled but both sqlite_stat2 and
...
sqlite_stat3 tables exist. Also add testability tweaks to the STAT3 code.
FossilOrigin-Name: 3ca7e449e2e20d95e516cf7fe87bfa0b51c07086
2011-09-22 18:46:34 +00:00
dan
40f048f54b
Remove a redundant (and undefined) "forcedelete" command from corruptE.test.
...
FossilOrigin-Name: 6d8d4e1694694c3e961fc1922f732d1da40caa6f
2011-09-22 15:31:30 +00:00
dan
b5126dde0d
Remove the SQLITE_PAGECACHE_BLOCKALLOC compilation option.
...
FossilOrigin-Name: 4eb4689834b538b9eeec5a5803528260e1aff78d
2011-09-22 14:56:31 +00:00
dan
58ca31c905
Add the SQLITE_DB_STATUS_CACHE_HIT and MISS options. For querying the number of cache hits and misses on a per-connection basis.
...
FossilOrigin-Name: 5100b6e9dc5107f0f835d0aac26fe6d4938ffc73
2011-09-22 14:41:16 +00:00
drh
0fe0c466ca
Update the version number to 3.7.9.
...
FossilOrigin-Name: 14e28eb9546906b33eb03e596ad104c8ca049d6c
2011-09-22 00:56:38 +00:00
drh
93c6384ca6
Fix an uninitialized variable and a misuse of memcpy().
...
FossilOrigin-Name: ee110d5a4a6f29400bb632a9a18c7dcd04638657
2011-09-22 00:28:55 +00:00
mistachkin
9a55e31f4d
Integrate build changes for sqlite3_analyzer into the MSVC makefile. Also, more cleanup of build files, including sqlite3_analyzer, for all makefiles.
...
FossilOrigin-Name: af1c5718292c0326b785416b7109eafefaeb59a7
2011-09-22 00:06:44 +00:00
drh
565621a57e
Minor tweaks to the TCL code for sqlite3_analyzer.
...
FossilOrigin-Name: 3a261f383f11d839d3a23d454b4422298bef9c88
2011-09-21 20:10:42 +00:00
drh
8d43aa10cb
Remove unnecessary dependencies from the sqlite3_analyzer targets in
...
makefiles.
FossilOrigin-Name: 0bd8fd352d290637d8c4d4fb76e8dd28f0149fa0
2011-09-21 18:29:49 +00:00
drh
c42cdce5e0
Fix the sqlite3_analyzer target in the configure-generated Makefile.
...
FossilOrigin-Name: 256cdbdc810cae23388ccf73583c591304294dbb
2011-09-21 17:04:21 +00:00
dan
0ae479dff2
Change the way the sqlite3_analyzer executable is built.
...
FossilOrigin-Name: 05e3cced8a884e8bca6f208d2f09e335d3929eac
2011-09-21 16:43:07 +00:00
drh
d3ed73406c
Pull in the latest changes from trunk. Update the STAT3 documentation.
...
FossilOrigin-Name: 63fc3e4bea6a7f5dc34b2af83f30458eb10b8fe0
2011-09-21 00:09:41 +00:00
drh
9d56acdcfc
Minor comment change in the description of the different memory allocator
...
options. No changes to code.
FossilOrigin-Name: 36be31ff0af7f811fe2c6f7e26f058cffb7257e1
2011-09-19 20:56:59 +00:00
drh
72949adc95
Merge in all changes through the 3.7.8 release.
...
FossilOrigin-Name: 9607600b6ca9b546dd248982fd8e8d64f708be5c
2011-09-19 20:36:42 +00:00
drh
1335f8c21f
Version 3.7.8 release candidate
...
FossilOrigin-Name: 3e0da808d2f5b4d12046e05980ca04578f581177
2011-09-19 14:49:19 +00:00
drh
432e0bc6dc
Increase the default lookaside cache line size from 100 to 128 bytes.
...
FossilOrigin-Name: db019465036171fcad31181bec7d6ac185f50430
2011-09-19 13:01:53 +00:00
dan
73ac46da31
Remove a stray merge-sort related change from pager.c and pager.h.
...
FossilOrigin-Name: 69823ed163049d6fa1e24a9810c3c99f2a8fdd46
2011-09-19 11:57:34 +00:00
drh
168f9f5aa3
Add a new script to build an amalgamation that omits FTS3/4 and RTREE.
...
FossilOrigin-Name: b31a7d7db9040d8eedaf1ecd89ea0033f579d0f1
2011-09-17 17:29:20 +00:00
mistachkin
f1c40f4fd4
Make sure the file structure is zeroed prior to calling the VFS to open a file.
...
FossilOrigin-Name: 29c4d0dd43d41650e54824afd70dd40f1b91cc86
2011-09-17 15:34:50 +00:00
drh
dfd2d9f6c9
Fix a problem with SQLITE_OMIT_TRACE that was introduced by the recent
...
OP_Once change.
FossilOrigin-Name: 96be3f7b59b3ed4703b907e29db629df34b2b56f
2011-09-16 22:10:57 +00:00
mistachkin
c377f3106b
Fix #if's in winSync to avoid compiler warnings about unused local variables. Also, update version numbers in the MSVC makefile.
...
FossilOrigin-Name: 2e66e41457422449ac5918b16be443e737dfb149
2011-09-16 20:43:44 +00:00
mistachkin
a3b2ff5182
Silence harmless compiler warning about redefinition of the _CRT_SECURE_NO_WARNINGS macro by shell.c.
...
FossilOrigin-Name: 690220717f3d92d4fb7bd72226fc8d5f38f5fbcf
2011-09-16 20:16:36 +00:00
drh
5c4e5e53fe
Merge all the latest trunk changes into the experimental STAT3 branch.
...
FossilOrigin-Name: 51908c8f2bc6c086570f7493a29b096f0a40ce34
2011-09-16 19:29:58 +00:00
drh
a464c23429
Remove unreachable branches from the previous change. Add additional
...
test cases.
FossilOrigin-Name: cf51ef8ab8a610ddf64f66970dd689fe1df405b8
2011-09-16 19:04:03 +00:00
drh
8850177924
When analyzing the right-hand side of IN operators to see if the IN operator
...
can work with an index, be sure to decend into nested subqueries.
Fix for ticket [1a1308d2538d7]
FossilOrigin-Name: 0156f10e23daca0e2504cd293a67ed0233d254d0
2011-09-16 17:43:06 +00:00
drh
7157e8eac1
Further streamlining of the subquery materializer. New test cases for
...
ticket [002caede898a]
FossilOrigin-Name: ff8b76b25b42497a7374de56c6a8f34cbe70cd6a
2011-09-16 16:00:51 +00:00
drh
ffd5075d7c
Merge the [002caede898] fix into trunk.
...
FossilOrigin-Name: 95708ae2235658c3a49679e2fe252a058793366a
2011-09-16 01:38:53 +00:00
drh
48f2d3b10a
Add the new OP_Once opcode. Use it to clean up and simplify various
...
one-time initialization sections in the code, including the fix for
ticket [002caede898ae].
FossilOrigin-Name: 7f00552b739fad79517b042a6ed61abe743a917b
2011-09-16 01:34:43 +00:00
drh
5b6a9ed495
Materialize subqueries using a subroutine and invoke that subroutine
...
prior to each use of the subqueries manifestation. Fix for
ticket [002caede898aee4]
FossilOrigin-Name: 4b8357ee3c4ccdbd34e0cd077efd84cca677f496
2011-09-15 23:58:14 +00:00
drh
4327aeaafd
Adding test case for ticket [002caede898]
...
FossilOrigin-Name: 62dfc51a495be017605cf315d72e2db91bfa28f7
2011-09-15 19:39:42 +00:00
mistachkin
ac43e1a6a5
Cleanup/fix error handling when no arguments are supplied to the SQLite analyzer.
...
FossilOrigin-Name: 3fc566ac5dfce314ee414a3fb79daeeed6d0f179
2011-09-15 00:40:11 +00:00
mistachkin
0fe5f95c7f
Remove 'const' from a variable that might actually be written when an OOM error occurs. Also, fix a couple MSVC/Win32 compiler warnings.
...
FossilOrigin-Name: 3035dc1c7398791d550f4c02774ef7f961b4bb02
2011-09-14 18:19:08 +00:00
drh
244b632cf7
Remove unused parameters from internal routines in vdbesort.c. This is
...
an additional simplification made possible by recent optimizations.
FossilOrigin-Name: a1f3aeeb0988c848d40ce8f6da6e902935a997e2
2011-09-14 13:41:40 +00:00
drh
59ebc99161
Remove code from vdbesort.c that was made unreachable by the recent
...
sqlite3VdbeRecordUnpack() optimizations.
FossilOrigin-Name: 607aba6cd7020973200fa376cf8df55360165266
2011-09-14 13:23:21 +00:00
drh
5a9f90b574
Merge the latest trunk changes into the stat3-trunk branch.
...
FossilOrigin-Name: 11ca4ed8bf850dae1a24b7182f70039f32bd8dd1
2011-09-13 19:09:28 +00:00
dan
f9556a1a3d
Allocate the correct size for the output buffer in fts3DoclistOrMerge(). Fix for [56be976859].
...
FossilOrigin-Name: 07788c0f7f3740c1c280f6ce4dc68401c30bae6e
2011-09-13 19:08:43 +00:00
mistachkin
649591af23
Cleanup pdb/ilk files generated by the MSVC makefile.
...
FossilOrigin-Name: a9db247b752bcda0131b8f01c6f0182f3101d154
2011-09-11 10:14:37 +00:00
dan
42acb3e597
Fix a minor performance regression in btreeMoveto().
...
FossilOrigin-Name: d0712dfb24867a807c9cddcc12bd0aebe1d3e085
2011-09-05 20:16:38 +00:00
dan
03e9cfc223
Refactor the sqlite3VdbeRecordUnpack() interface to better accommodate the vdbesort.c module.
...
FossilOrigin-Name: f115b2303509c678dbe83b2fa3d9c40d82882813
2011-09-05 14:20:27 +00:00
drh
19c88c1a99
Fix a compiler warning about an unused parameter in the merge-sort code.
...
FossilOrigin-Name: 6b657ae75035eb10b0ad640998d3c9eadfdffa6e
2011-09-04 01:27:00 +00:00
drh
c2bb3282f1
Improve the testability of the merge-sort logic.
...
FossilOrigin-Name: b5179baf87aa00ed5cecbdcaa65bee10e112a9e9
2011-09-04 01:11:46 +00:00
drh
d40807ddef
Performance improvements to the external merge-sorter. Keep content on an
...
in-memory linked lists rather than an ephemeral table prior to spilling to
disk. Use the external merge-sorter to implement ORDER BY and GROUP BY
in addition to CREATE INDEX.
FossilOrigin-Name: 4c43e8b2d2c1d8dcba3cd1c3f2ec4e19ab419430
2011-09-03 17:07:26 +00:00
drh
04a962fe02
Simplification and performance tweaks in vdbeSorterMerge().
...
FossilOrigin-Name: 99e34bdce4ccca15b79159b03b96787e7a7ff85b
2011-09-03 16:42:38 +00:00
dan
8b1ea14f8c
Reduce the number of VdbeRecordUnpack() calls made in vdbesort.c.
...
FossilOrigin-Name: 666c2c3cff51dac2ba5689b75705d99c3705673b
2011-09-03 14:36:13 +00:00
drh
ca892a7252
The build works again with -DSQLITE_OMIT_MERGE_SORT. The merge-sorter now
...
avoids spilling to disk (letting the in-memory linked list grow without
bound) if PRAGMA temp_store=3.
FossilOrigin-Name: 68e26c4487696d194ee85370380e4b0e56d206ee
2011-09-03 00:17:51 +00:00
drh
34163c6831
Remove some dead code. Fix a faulty assert(). Improve some variable names.
...
FossilOrigin-Name: a9a64592cf88580cb254fb0aac65a2f2085976ec
2011-09-02 21:42:33 +00:00
dan
7733a4db4b
Combine two malloc calls in vdbesort.c.
...
FossilOrigin-Name: cf48ad8353e28339d00f448bb729e10a7f2aad72
2011-09-02 18:03:16 +00:00
dan
7f72114547
Reduce the number of malloc() calls made when creating an index on more than 2 columns.
...
FossilOrigin-Name: 065b0c9858da0ebb41722f3c56bdaf62f28b2f2c
2011-09-02 15:41:33 +00:00
mistachkin
9747a6063b
Remove unused local variable.
...
FossilOrigin-Name: 61bda876af6df3170263d41d2933168305de58d2
2011-09-02 15:08:28 +00:00
dan
9fed558df9
If all data being sorted fits in memory, avoid writing any data out to temporary files in vdbesort.c.
...
FossilOrigin-Name: 71075673c625f243969c3f34c73f28f378924007
2011-09-02 11:45:31 +00:00
dan
5134d1357e
Instead of a temporary b-tree, use a linked-list and merge-sort to sort records in main memory in vdbesort.c.
...
FossilOrigin-Name: 7769fb988d9be0f2d8129aaac19620ac88f9b4a6
2011-09-02 10:31:11 +00:00
drh
1c9d835d49
Use OP_SorterOpen instead of OP_OpenEphemeral to implement GROUP BY.
...
FossilOrigin-Name: ebf819aaa555bd79fddfc0a6f9827a2539095d6c
2011-09-01 16:01:27 +00:00
drh
c6aff30ca4
Experimental code-generator changes to utilize new opcodes for sorting.
...
FossilOrigin-Name: bab2e560f6cb989c83a96aad60f666960ede7abe
2011-09-01 15:32:47 +00:00
drh
96862072b8
Avoid using uninitialized variables after failures in the merge sort code.
...
FossilOrigin-Name: 2869ed28299b1c9f355ecc24635830f7f1249126
2011-08-31 23:57:22 +00:00
drh
20f8e13b44
Formerly, we enabled fdatasync() on linux only. But now we learn that
...
fdatasync() is not supported on Android. So we disable fdatasync() on
Linux too. It can be reenabled at compile-time for those who really need it.
FossilOrigin-Name: 70b5b309568ac55565558d5456aca1e431cfd26b
2011-08-31 21:01:55 +00:00
drh
5a201fb41d
Add the SQLITE_MAX_SCHEMA_RETRY compile-time option to the set of options
...
understood by "PRAGMA compile_options;" and by the
"sqlite_compileoption_used()" function.
FossilOrigin-Name: 1b124af40a8fa4d3094f24a9213096b66411b8f9
2011-08-31 20:47:50 +00:00
drh
1b1e8a8be6
The server1.test script should only run if mutexes are functional.
...
Fix to the #ifdef change of check-in [9e6a4c1473].
FossilOrigin-Name: 6489848590db7088d965b7fa7feabc8c66e2e2b1
2011-08-31 19:40:58 +00:00
drh
fd53231c85
Always include the unixShm.id field, even when not debugging.
...
FossilOrigin-Name: 07803476206b8cde60ccc320b9ccdc0d48a41d65
2011-08-31 18:35:34 +00:00
drh
7730c4457e
Only create the sqlite3OSTrace global variable if compiling with
...
SQLITE_TEST.
FossilOrigin-Name: 9e6a4c1473a4cb061a88f6a437a2828368b3ddc8
2011-08-31 18:04:54 +00:00
drh
4515a45b8c
Backslash escaping is not working right in tostr.awk on the latest ubuntu.
...
The easiest fix is to simply not use any backslashes in the spaceanal.tcl
script.
FossilOrigin-Name: df550066657cb41bad34ac8e722b8148ab7eabfb
2011-08-31 17:46:50 +00:00
drh
e42a9b431b
Add checks to make sure cells in corrupt database files
...
do not overflow a page when doing autovacuum.
Problem detected by valgrind.
FossilOrigin-Name: d0b347b412376d22e9f0770ac083dafb5e480dd0
2011-08-31 13:27:19 +00:00
drh
0ee469c9a8
Enable the thread test logic to work with the SQLITE_HAS_CODEC compile-time
...
option.
FossilOrigin-Name: 20ddfb4780b87953718f3a8e67b777dcff0e3b5e
2011-08-30 19:52:32 +00:00
drh
307ff30b54
Change the build process so that it does not require the unix "sort"
...
command. This avoids confusion between ms-sort and mingw-sort on
windows systems.
FossilOrigin-Name: f1bd5bbae505068d24bfd9cc6bab6a8b8940bad6
2011-08-30 01:29:04 +00:00
mistachkin
d589a5444b
Make sure SQLITE_FCNTL_SIZE_HINT a no-op if the chunk size is not greater than zero.
...
FossilOrigin-Name: 88b763e8d73fafa1538b08af28b1c8b723b39c61
2011-08-30 01:23:34 +00:00
drh
e0a59cf0e1
Fix a total unimportant file descriptor leak in lemon. This is to silence
...
warning messages.
FossilOrigin-Name: e95cf2c576dda656c0f31eeec3d98e911b9003a1
2011-08-30 00:58:58 +00:00
drh
bc2be0c770
Fix a buffer overrun in test logic. No impact on the core SQLite.
...
FossilOrigin-Name: 49cd60e38bd8df9d736ced95e0ace6efea95ca7d
2011-08-30 00:53:50 +00:00
dan
54bbe7f15e
Fix a broken assert() statement in select.c.
...
FossilOrigin-Name: ad78ef2b3a20e3c3191fba232cbae70656210cf5
2011-08-29 18:24:27 +00:00
drh
2f7820d8b5
Back out [05c9832e5f6eb] since it was causing a performance regression with
...
no obvious benefit.
FossilOrigin-Name: 639cc85a911454bffdcccb33f2976c683953ae64
2011-08-29 11:56:14 +00:00
drh
d4b708f671
Merge performance enhancements into trunk.
...
FossilOrigin-Name: 5a00d24b279424d257781ec3f1227e72a5d56f57
2011-08-29 03:08:47 +00:00
drh
2d36eb43a4
About a 1% overall performance improvement by using a macro to avoid
...
no-op calls to sqlite3MemReleaseExternal().
FossilOrigin-Name: ff71d20a9ed129bd1785a3f7a777ce62098735b7
2011-08-29 02:49:41 +00:00
drh
5a077b741f
Small performance improvement to OP_Column.
...
FossilOrigin-Name: b6b73a747ad8d0f026074e41c2a4adc529ec2674
2011-08-29 02:16:18 +00:00
drh
e6f43fc4f8
About a 3% improvement in the performance of OP_Column.
...
FossilOrigin-Name: edff9d4a995095e555fcc9aec4c56f4bcaa1557e
2011-08-28 02:15:34 +00:00
drh
4a6f3aabca
Correctly display P4_ADVANCE values on opcode traces. Mark an always-taken
...
branch in OP_Column as such.
FossilOrigin-Name: 087dc96086fe4e45da93ab6a0d5dda34c932ce97
2011-08-28 00:19:26 +00:00
dan
a205a486d2
Experimental changes to improve the performance of OP_Next.
...
FossilOrigin-Name: 1a249845251199c00817893add300a1a654b4df9
2011-08-27 18:48:57 +00:00
drh
3d4435b234
Fix several harmless compiler warnings and a documentation bug.
...
FossilOrigin-Name: 5454d0fe227b7c1f0e7715b6c08f97019628fc4c
2011-08-26 20:55:50 +00:00
drh
009a5f811b
Merge the stat3-enhancement branch with trunk, but keep the resulting merge
...
in a separate branch for now.
FossilOrigin-Name: 63f2c7859fa6e5d0e2cdd218ff52a3ec2d44c61d
2011-08-26 13:16:33 +00:00
mistachkin
25d054fabd
Update compiler error message regarding the choice of memory allocator defines.
...
FossilOrigin-Name: 1dada5158215d1816edb69ff2610f9d2259ce19d
2011-08-26 11:25:02 +00:00
mistachkin
d2f496aab5
Merge Win32 native heap support into trunk.
...
FossilOrigin-Name: 5238a74987507f27af4080e2842f53e049b5b111
2011-08-26 11:18:44 +00:00
mistachkin
4d60be5e30
In the MSVC makefile, allow symbols to be enabled without NDEBUG defined. Also, for the win32lock test, make sure the database is closed prior to shutdown.
...
FossilOrigin-Name: 5ed7633d41b99929309a7e13d37375a4fdae43b3
2011-08-26 05:40:31 +00:00
mistachkin
7da32b5841
Disable checking the winMemData structure signature when compiled with NDEBUG.
...
FossilOrigin-Name: 50edc2f9141bd13277119afd129387029ebe5c01
2011-08-26 01:45:50 +00:00
mistachkin
155892cccc
Allow the Win32 native heap flags to be overridden at compile-time.
...
FossilOrigin-Name: 1c2ecec8e7320bc5b532b3107005fb7f0370f25c
2011-08-26 01:32:24 +00:00
drh
2a5d9908f9
Create a new pager type, PAGER_SORTER, for use in the external merge sort.
...
Such pagers are always held in memory but do report when they are under
memory pressure by calling pagerStress.
FossilOrigin-Name: c71d73201d950355862dd8d5de142c9673888755
2011-08-26 00:34:45 +00:00
drh
c5dbffe741
Reorder some of the branches in backup.c in order to make the code
...
easier to test.
FossilOrigin-Name: 2c443d47ecee7b43a89f0a4bf299c46c66e3f80d
2011-08-25 20:18:47 +00:00
dan
4b2704021a
Replace an assert() that a condition may not occur in backup.c with code to handle that condition, which can occur.
...
FossilOrigin-Name: 472c74b3452c5a07dfb006010441232b09599ad5
2011-08-25 19:28:47 +00:00
drh
860e332cdc
Fix harmless compiler warnings in test code. No changes to the core.
...
FossilOrigin-Name: 16f83fec77668c021694fbb189b415bd3b90adc8
2011-08-25 18:54:46 +00:00
drh
d7f6e906db
Disable external merge source when SQLITE_TEMP_STORE==3. Add documentation
...
to the OP_OpenSorter opcode.
FossilOrigin-Name: 5a690486811379cea40c6ed48b2902f421234832
2011-08-25 18:01:28 +00:00
dan
ee140c4d71
Fix the SQLITE_DISABLE_DIRSYNC compile time option.
...
FossilOrigin-Name: 6deb3ea1f080324ea23ebdc9008753fbbc4063e2
2011-08-25 13:46:32 +00:00
mistachkin
f2d25f2005
Add comments for the various debug levels. When debugging, disable optimizations. Prevent the win32lock tests from spinning forever.
...
FossilOrigin-Name: 401859236b0d97bde82b11f32efce6eb9d490941
2011-08-25 04:09:12 +00:00
drh
26541c9a00
Fix an file separator character issue with test_quota.c that was causing
...
it to fail on windows.
FossilOrigin-Name: ddb8d3e80df868bda0704feed31171fa055432b5
2011-08-25 03:38:31 +00:00
mistachkin
753c544495
In the MSVC makefile, support several levels of debugging, each one building on the previous. Also, add comment about the SQLITE_WIN32_MALLOC_VALIDATE macro.
...
FossilOrigin-Name: 4257e9b7ca78feb03df08fde56da947ae64c5c6f
2011-08-25 02:02:25 +00:00
drh
31e8097658
Cherrypick the [d4f6437f8d] change so that SQLITE_FCNTL_SIZE_HINT is always
...
honored and never undone by memory pressure on windows.
FossilOrigin-Name: 67ff8d27f6aa6e0beff1f6b72a997b30a9647879
2011-08-25 01:58:17 +00:00
drh
b6020c4eef
Add the sqlite3_quota_file() interface to test_quota.c.
...
FossilOrigin-Name: 2b7fe8e5b74c3504edd0e3ff78096e357ee1b47c
2011-08-25 01:42:12 +00:00
mistachkin
4458bc8e3e
Make sure that SQLITE_FCNTL_SIZE_HINT on Windows does not shrink the file.
...
FossilOrigin-Name: d4f6437f8de82482dfaa4c084f4221e89e21eb00
2011-08-25 01:16:42 +00:00
drh
e4cf0b3106
Add the SQLITE_EXTRA_INIT macro.
...
FossilOrigin-Name: a3220f36c164dd2edf085c07ea08d617d8438812
2011-08-25 00:14:41 +00:00
mistachkin
468690ef60
Add error logging to native Win32 heap support.
...
FossilOrigin-Name: 7fca5a284cded6d7531060da6e99a57aed50cf8f
2011-08-24 17:42:22 +00:00
mistachkin
1b186a9947
Experimental work to allow SQLite to use the native Win32 heap API.
...
FossilOrigin-Name: bf3d0ab53829350637283442f75071fe6d925245
2011-08-24 16:13:57 +00:00
drh
2d1017e47f
Updates to the sqlite3_mem_methods documentation.
...
FossilOrigin-Name: 988998fe7b0a21ed113b67f812e51f357045bef4
2011-08-24 15:18:16 +00:00
drh
88caeac774
Fix some harmless compiler warnings.
...
FossilOrigin-Name: 46f5a68bfa4199a4bd398030bf88bfbb4df3d5ca
2011-08-24 15:12:08 +00:00
drh
796af156c7
Changes to test_quota.c to make quota groups persistent even after files
...
are closed. Files remain a part of the quota group until they are
deleted.
FossilOrigin-Name: 04111ce980df9692b7fe65a36105e7de9627a3bb
2011-08-24 01:25:55 +00:00
drh
8115d5feaa
Simplifications to the SQLITE_PAGECACHE_BLOCKALLOC logic. Reduce the number
...
of difficult-to-reach branches.
FossilOrigin-Name: d5d835fe8352cb2009133246d4ed1cd310803f75
2011-08-23 23:41:40 +00:00
drh
1ee6f74046
If the application-defined openDirectory() function returns SQLITE_CANTOPEN,
...
then silently ignore the error. This allows the chromium sandbox to disallow
opening of directories without causing errors.
FossilOrigin-Name: 880b51150aaed804005f5062b4dd2fa0ffafa147
2011-08-23 20:11:32 +00:00
dan
422faae0ae
Change the way the "crash" VFS (test6.c) handles SQLITE_FCNTL_SIZE_HINT.
...
FossilOrigin-Name: 40dd8a60be0ca79e0d0bf3a2b5a43f13c02b4971
2011-08-23 19:46:02 +00:00
dan
67e10d1fd3
Have the "crash" VFS used by the tcl tests (test6.c) handle SQLITE_FCNTL_SIZE_HINT internally, instead of passing it directly through to the underlying VFS. This is important if the crash VFS is simulating non-default device characteristics such as SQLITE_DEVCAP_SEQUENTIAL or ATOMIC.
...
FossilOrigin-Name: fac8bc8f3450a6ce74c9250acb0608e940ffb54d
2011-08-23 16:41:06 +00:00
drh
1b53d7d75a
Ifdef out routines in pcache1.c that are used only
...
when SQLITE_PAGECACHE_BLOCKALLOC is defined.
FossilOrigin-Name: 0da292da3bc867a5c6e29384f325581ea06bbd20
2011-08-23 13:27:48 +00:00