drh [Mon, 30 Jan 2012 16:02:43 +0000 (16:02 +0000)]
Do not rely on the _WIN32_WINNT macro as vs2005 does not define it by default.
Instead, always assume winNT unless the makefile explicitly sets
SQLITE_OS_WINNT=0.
drh [Sat, 28 Jan 2012 21:08:51 +0000 (21:08 +0000)]
Update the .dump command of the command-line shell so that it (1) avoids
putting the semicolon of a DDL statement on the same line as a comment,
(2) avoids long expression, even when dumping a table with many columns, and
(3) avoids unnecessary quoting of the table name. This fixes tickets
[c04a8b8a4f] and [232637c465].
Shell change only; no changes to the SQLite core.
dan [Wed, 25 Jan 2012 16:29:45 +0000 (16:29 +0000)]
Fix an FTS problem triggered by querying for an N character prefix using an N+1 character prefix index after rows have been deleted from the FTS table.
dan [Tue, 24 Jan 2012 10:08:26 +0000 (10:08 +0000)]
Changes to the async-io module so that the xFileControl method returns SQLITE_NOTFOUND when a file-control is not recognized and so that it adds the second nul-terminator byte to filenames passed to the xOpen method of the underlying VFS.
drh [Wed, 18 Jan 2012 12:46:47 +0000 (12:46 +0000)]
Add the SQLITE_WITHOUT_MSIZE and SQLITE_WITHOUT_ZONEMALLOC macros in mem1.c
to disable the use of _msize() on windows and the zone memory allocator
on Apple products, respectively.
drh [Sat, 14 Jan 2012 00:42:40 +0000 (00:42 +0000)]
In the multiplexor routine that determines the size of an overflow file,
return 0 and leave the error code unchanges if there were prior errors.
This prevents some I/O errors from going unreported in nx-devkit tests.
drh [Fri, 13 Jan 2012 15:50:02 +0000 (15:50 +0000)]
Update the documentation for the sqlite3_uri_*() routines to make it clear
that there argument must be a database filename passed into xOpen().
No changes to code.
dan [Wed, 11 Jan 2012 11:20:42 +0000 (11:20 +0000)]
Fix the sqlite3_quota_file() function in test_quota.c so that it adds the second nul-terminator to all file names that will be passed to a VFS xOpen method.
mistachkin [Wed, 11 Jan 2012 01:01:02 +0000 (01:01 +0000)]
Prevent winOpenSharedMemory from masking the real return code from its call to winOpen. Also, add asserts to check the double-zero termination of database file names.
drh [Tue, 10 Jan 2012 23:18:38 +0000 (23:18 +0000)]
Only require double-zero terminators on database filenames, not any every
files supplied to the xOpen method. This backs out [2544f233f1]. Also
refactor the fillInUnixFile() routine in os_unix.c to reduce the number
of parameters.
dan [Tue, 10 Jan 2012 17:28:10 +0000 (17:28 +0000)]
Avoid passing strings with a single nul-terminator (two are required) to the VFS xOpen() method from within the code that checks to see if a master-journal file may be safely deleted.
dan [Tue, 10 Jan 2012 16:56:39 +0000 (16:56 +0000)]
Add function sqlite3OsFileControlNoFail(), which is the same as sqlite3OsFileControl() except that it does not simulate OOM errors. This saves adding calls to the BenignMalloc() functions around each of the invocations of sqliteOsFileControl() that ignore the return code.
drh [Tue, 10 Jan 2012 00:24:59 +0000 (00:24 +0000)]
Remove the BenignMalloc() from around the call to FCNTL_OVERWRITE. Add
new ones around sqlite3OsDelete(). Fix an assert that causes problems for
the nx-devkit.
dan [Mon, 9 Jan 2012 11:37:34 +0000 (11:37 +0000)]
Have test_multiplex.c add a second nul-terminator byte to the strings that it passes to the xOpen method of the underlying VFS, in case that VFS passes the string to sqlite3_uri_parameter() or similar.
drh [Sat, 7 Jan 2012 15:17:18 +0000 (15:17 +0000)]
Fix a bug in lemon in computation of which non-terminals can generate an
empty string. This bug and the fix make absolutely no difference for the
grammar used by SQLite, but it can make a difference when lemon is used
in other grammars.
drh [Thu, 5 Jan 2012 23:32:06 +0000 (23:32 +0000)]
Combine various boolean variables in the BtShared structure into a single
boolean vector. Also make performance improvement simplifications to
sqlite3BtreeMovetoUnpacked().
drh [Thu, 5 Jan 2012 21:19:54 +0000 (21:19 +0000)]
Make sure the name of the shared memory file has two zero-terminators in the
UNIX VFS, so that sqlite3_uri_parameter() will work correctly on that name.
drh [Thu, 5 Jan 2012 16:07:30 +0000 (16:07 +0000)]
Change the unix VFS so that it ignores all but the least-significant bit
of the syncDir flag to xDelete. Add an assert to prove that the core only
ever uses that one bit.
drh [Mon, 2 Jan 2012 18:20:14 +0000 (18:20 +0000)]
Remove the code that attempts to find the sector size from the OS and
hardcode the xSectorSize methods of the unix and windows VFSes to return
SQLITE_DEFAULT_SECTOR_SIZE, which is now set to 4096 unless overridden.
drh [Fri, 30 Dec 2011 15:17:47 +0000 (15:17 +0000)]
Update the text of requirements associated with sqlite3_pcache_methods2.
Update requirements marks embedded in code. All of the above are comment
changes only; there are no changes to code in this check-in.
drh [Fri, 23 Dec 2011 00:07:33 +0000 (00:07 +0000)]
Add interfaces sqlite3_uri_boolean() and sqlite3_uri_int64() which are
wrappers around sqlite3_uri_parameter() combined with internal routines for
converting strings to booleans and 64-bit integers.
drh [Thu, 22 Dec 2011 17:10:35 +0000 (17:10 +0000)]
Check the return code from sqlite3_initialize() called from within
sqlite3_soft_heap_limit64() and return an error from sqlite3_soft_heap_limit64()
if sqlite3_initialize() fails.