]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
13 years agoFix a problem with NULL handling in aggregate min/max when returning output-minmax-row
drh [Thu, 2 Feb 2012 18:42:09 +0000 (18:42 +0000)] 
Fix a problem with NULL handling in aggregate min/max when returning
values from the row containing the min or max.

FossilOrigin-Name: f27c7b4fb193126548e6a620ac89664d1efa3856

13 years agoFor queries of the form "SELECT p, max(q) FROM t1", the value of column p
drh [Thu, 2 Feb 2012 17:35:43 +0000 (17:35 +0000)] 
For queries of the form "SELECT p, max(q) FROM t1", the value of column p
returned is the one on the same row that holds the maximum value of q.

FossilOrigin-Name: adb29232b659c5332b6841776372407fcc350b08

13 years agoData structure cleanup. Remove unused fields. Rearrange other files for
drh [Thu, 2 Feb 2012 15:50:17 +0000 (15:50 +0000)] 
Data structure cleanup.  Remove unused fields.  Rearrange other files for
tighter packing and reduced memory usage.

FossilOrigin-Name: 0bc594e861ae1142e8c6c83f39b095e1432856bf

13 years agoSimplified array allocation in the IdList and AggInfo objects.
drh [Thu, 2 Feb 2012 03:38:30 +0000 (03:38 +0000)] 
Simplified array allocation in the IdList and AggInfo objects.

FossilOrigin-Name: 25df2a7458d025bc00380b4a0893637639f9f0d4

13 years agoFix a possible segfault after an OOM fault. This has been in the code for ages
drh [Thu, 2 Feb 2012 03:11:40 +0000 (03:11 +0000)] 
Fix a possible segfault after an OOM fault.  This has been in the code for ages
but only expressed itself following the previous check-in.

FossilOrigin-Name: a3553b8a035b70e76a5a325b9e9f379f84de3955

13 years agoRemove the nAlloc field from the ExprList object.
drh [Thu, 2 Feb 2012 01:58:08 +0000 (01:58 +0000)] 
Remove the nAlloc field from the ExprList object.

FossilOrigin-Name: 5963de303a9106b446a9423aa838bfdf6bc1e7f3

13 years agoVery small performance enhancement and reduction in size of the sqlite3_stmt
drh [Wed, 1 Feb 2012 19:03:38 +0000 (19:03 +0000)] 
Very small performance enhancement and reduction in size of the sqlite3_stmt
object.

FossilOrigin-Name: a38d57a4e5d79a0baefdf776e0e2d61423681a4f

13 years agoFix ALTER TABLE RENAME so that it correctly handles triggers that attach
drh [Wed, 1 Feb 2012 01:13:10 +0000 (01:13 +0000)] 
Fix ALTER TABLE RENAME so that it correctly handles triggers that attach
to the table using the name in a different case.
Ticket [ae6794effd404].

FossilOrigin-Name: 0d78ebb8e41ba08b446b44694d9433e1e90e0a7e

13 years agoFix a compiler warning in FTS4.
drh [Tue, 31 Jan 2012 23:34:21 +0000 (23:34 +0000)] 
Fix a compiler warning in FTS4.

FossilOrigin-Name: b4cad1ce78e6bb967c472bec5c562a24b4dfebaf

13 years agoFuther pedantic fixes to the sqlite3_uri_boolean() interface.
drh [Tue, 31 Jan 2012 14:24:47 +0000 (14:24 +0000)] 
Futher pedantic fixes to the sqlite3_uri_boolean() interface.

FossilOrigin-Name: 77b3430de69e23ba3feda3d618fe4880dd465023

13 years agoImprovements to the documentation for sqlite3_uri_boolean().
drh [Tue, 31 Jan 2012 13:35:29 +0000 (13:35 +0000)] 
Improvements to the documentation for sqlite3_uri_boolean().

FossilOrigin-Name: b0a161791d66a40cea81dfc22f1cd2e9dfd067d0

13 years agoChange a comment in test script backup.test.
dan [Tue, 31 Jan 2012 05:11:50 +0000 (05:11 +0000)] 
Change a comment in test script backup.test.

FossilOrigin-Name: 313546b4566095aedccdaa27037036129b64d438

13 years agoBring the documentation and implementation of sqlite3_uri_boolean() into
drh [Mon, 30 Jan 2012 18:40:55 +0000 (18:40 +0000)] 
Bring the documentation and implementation of sqlite3_uri_boolean() into
closer agreement.  Ticket [5f41597f7c9c]

FossilOrigin-Name: 7b053d699ffa1da9c50f1a19edb052c0f014058a

13 years agoFix compiler warnings in the TCL test harness.
drh [Mon, 30 Jan 2012 18:00:31 +0000 (18:00 +0000)] 
Fix compiler warnings in the TCL test harness.

FossilOrigin-Name: c4cd38a0c71e2887e47bebb9d10baf30802a7f13

13 years agoDo not rely on the _WIN32_WINNT macro as vs2005 does not define it by default.
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.

FossilOrigin-Name: 1ce4d21d521c383f2607222006023b6812f147bc

13 years agoUpdate the .dump command of the command-line shell so that it (1) avoids
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.

FossilOrigin-Name: e6eea8d50d6c307e3e34891758ed4912d368580b

13 years agoRemove a couple of unnecessary nonterminals from the grammar.
drh [Sat, 28 Jan 2012 19:44:22 +0000 (19:44 +0000)] 
Remove a couple of unnecessary nonterminals from the grammar.

FossilOrigin-Name: 2b2a7d8d736d1e72f847f443b9957e41da6149c9

13 years agoAdd support for IF NOT EXISTS on CREATE VIRTUAL TABLE.
drh [Sat, 28 Jan 2012 19:41:53 +0000 (19:41 +0000)] 
Add support for IF NOT EXISTS on CREATE VIRTUAL TABLE.

FossilOrigin-Name: 230983e86a897caa91a487ef2d4c1c7fb7c79f10

13 years agoUpdate the version number to 3.7.11 and rerun autoconf.
drh [Sat, 28 Jan 2012 15:26:27 +0000 (15:26 +0000)] 
Update the version number to 3.7.11 and rerun autoconf.

FossilOrigin-Name: 6f9b265dd099928208022f4006c93173a3c0b1c8

13 years agoAdd support for multiple rows of VALUES in an INSERT statement.
drh [Sat, 28 Jan 2012 15:22:22 +0000 (15:22 +0000)] 
Add support for multiple rows of VALUES in an INSERT statement.

FossilOrigin-Name: eb3b6a0ceb8bfb9fd59ff5fec420f863a9b5c4e4

13 years agoOnly invalidate the schema when the OP_ParseSchema opcode fails, not
drh [Wed, 25 Jan 2012 20:43:22 +0000 (20:43 +0000)] 
Only invalidate the schema when the OP_ParseSchema opcode fails, not
on any general failure of a vdbe program.

FossilOrigin-Name: 11f68d997da4aadf3f51c12c5139f3fdda8678bf

13 years agoFix an FTS problem triggered by querying for an N character prefix using an N+1 chara...
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.

FossilOrigin-Name: c05c3fd20d93f430140d762ead23bacd337ffb4d

13 years agoChanges to the async-io module so that the xFileControl method returns SQLITE_NOTFOUN...
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.

FossilOrigin-Name: 7036886e83fccad32187668306ee2ae3f950dfce

13 years agoMake the use and function of SQLITE_DYNAMIC clearer. Add assert() statement
drh [Thu, 19 Jan 2012 16:57:16 +0000 (16:57 +0000)] 
Make the use and function of SQLITE_DYNAMIC clearer.  Add assert() statement
to help ensure that SQLITE_DYNAMIC is not misused.

FossilOrigin-Name: ab80f2c3b2f1eea6e35989d3e9b6137b51091754

13 years agoAvoid overriding the malloc_usable_size symbol using the C preprocessor as
drh [Wed, 18 Jan 2012 18:22:44 +0000 (18:22 +0000)] 
Avoid overriding the malloc_usable_size symbol using the C preprocessor as
this might be confusing the build on some systems.

FossilOrigin-Name: bbaec351dd7784fd0af24b916110844176810f82

13 years agoAdd the SQLITE_WITHOUT_MSIZE and SQLITE_WITHOUT_ZONEMALLOC macros in mem1.c
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.

FossilOrigin-Name: 238e35a4411a5b2231576254dba39b802947d4f3

13 years agoRemove a redundant assignment from the VM.
drh [Wed, 18 Jan 2012 01:14:42 +0000 (01:14 +0000)] 
Remove a redundant assignment from the VM.

FossilOrigin-Name: d0dabe2f37b5fa7c2c6bb728b8591af00cdd835b

13 years agoFix typo in comment.
mistachkin [Wed, 18 Jan 2012 01:09:57 +0000 (01:09 +0000)] 
Fix typo in comment.

FossilOrigin-Name: 199edb6869977ccd7abf886af5cf9b344c857d1e

13 years agoRemove the undocumented PRAGMA omit_readlock hack.
drh [Tue, 17 Jan 2012 15:29:14 +0000 (15:29 +0000)] 
Remove the undocumented PRAGMA omit_readlock hack.

FossilOrigin-Name: 96900c47e4fc6ed55cefc10d55d3d8d16bcb1d31

13 years agoEnhance the command-lin shell to interpret CSV files as described by
drh [Mon, 16 Jan 2012 16:56:31 +0000 (16:56 +0000)] 
Enhance the command-lin shell to interpret CSV files as described by
the wikipedia article on CSV.

FossilOrigin-Name: 93aa17d866873e11dde5ffbefe74497f229977c1

13 years agoTest the fts4 content and prefix options together.
dan [Mon, 16 Jan 2012 16:39:36 +0000 (16:39 +0000)] 
Test the fts4 content and prefix options together.

FossilOrigin-Name: de11cd5cc903e56ff641079bc64dd0ae5e133aa7

13 years agoVersion 3.7.10 version-3.7.10
drh [Mon, 16 Jan 2012 13:28:40 +0000 (13:28 +0000)] 
Version 3.7.10

FossilOrigin-Name: ebd01a8deffb5024a5d7494eef800d2366d97204

13 years agoRebuild the configure script using autoconf 2.68 since autoconf 2.65
drh [Mon, 16 Jan 2012 13:00:05 +0000 (13:00 +0000)] 
Rebuild the configure script using autoconf 2.68 since autoconf 2.65
(previously used) appears to build incorrect scripts for Mac.

FossilOrigin-Name: 9da1cd0a06aca4eb3fb21fa4d321b9e3e07444b4

13 years agoMake sure the EXTERN macro is properly defined when building targets that require...
mistachkin [Sat, 14 Jan 2012 03:34:24 +0000 (03:34 +0000)] 
Make sure the EXTERN macro is properly defined when building targets that require it (e.g. on MinGW).

FossilOrigin-Name: 88ad2f23c5036cbb4a69b73ce5792bd5c33a9177

13 years agoIn the multiplexor routine that determines the size of an overflow file,
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.

FossilOrigin-Name: 6da0821a4717253221b25fb22e05cd9c13492f3d

13 years agoFix documentation typos. No changes to code.
drh [Fri, 13 Jan 2012 16:48:07 +0000 (16:48 +0000)] 
Fix documentation typos.  No changes to code.

FossilOrigin-Name: 0b857613e2415a59e61df2181ff33aa12bed987e

13 years agoAdd the -uri option to the usage comment that is printed by the "sqlite3"
drh [Fri, 13 Jan 2012 16:16:10 +0000 (16:16 +0000)] 
Add the -uri option to the usage comment that is printed by the "sqlite3"
TCL command when an unknown command-line option is supplied.

FossilOrigin-Name: 7987e285786161b1513ab77694d79e95fc76b0e5

13 years agoUpdate the documentation for the sqlite3_uri_*() routines to make it clear
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.

FossilOrigin-Name: 08230a3a8c88f275bfc0ba72d3fea3260f24fc63

13 years agoFix backup2.test so that it passes on OpenBSD (which produces a slightly different...
dan [Fri, 13 Jan 2012 15:21:07 +0000 (15:21 +0000)] 
Fix backup2.test so that it passes on OpenBSD (which produces a slightly different error message in one case).

FossilOrigin-Name: 227cfe11c4a1c095ccad76116dc4a68cccc5e8f0

13 years agoDo not throw an error from within test_journal.c if a database file size is not an...
dan [Fri, 13 Jan 2012 14:50:29 +0000 (14:50 +0000)] 
Do not throw an error from within test_journal.c if a database file size is not an integer multiple of the page-size.

FossilOrigin-Name: 3f4899a923f06d48edf6eeeb1c52b01958779efc

13 years agoOmit test file zerodamage.test from the inmemory_journal permutation.
dan [Fri, 13 Jan 2012 10:51:52 +0000 (10:51 +0000)] 
Omit test file zerodamage.test from the inmemory_journal permutation.

FossilOrigin-Name: 0c0051b1a548591180e4b02f2e74a1a8a63318a3

13 years agoFix test case issues related to errors in file-controls and the PSOW flag.
dan [Fri, 13 Jan 2012 10:04:10 +0000 (10:04 +0000)] 
Fix test case issues related to errors in file-controls and the PSOW flag.

FossilOrigin-Name: 5afbcd49f92e13d1654c1486e19d7e1bb4d3b024

13 years agoFix issues in test cases so that they work with DEFAULT_AUTOVACUUM defined. And with...
dan [Thu, 12 Jan 2012 16:41:30 +0000 (16:41 +0000)] 
Fix issues in test cases so that they work with DEFAULT_AUTOVACUUM defined. And with a small default cache-size.

FossilOrigin-Name: a298465c3919c331b9d8b60351c42b96d2efacdc

13 years agoFix typos in a testcase() macro introduced by the previous commit.
dan [Thu, 12 Jan 2012 15:05:03 +0000 (15:05 +0000)] 
Fix typos in a testcase() macro introduced by the previous commit.

FossilOrigin-Name: 0467742fd6ef33dfe4df66e5046f075fe8e0260d

13 years agoRemove some assert() statements that can fail with corrupt databases.
dan [Thu, 12 Jan 2012 14:25:55 +0000 (14:25 +0000)] 
Remove some assert() statements that can fail with corrupt databases.

FossilOrigin-Name: 7654ae71bd26ae5d713935624d2b6cb8d2e4633f

13 years agoRemove code made unreachable by the enhancement of the previous check-in.
drh [Wed, 11 Jan 2012 16:16:08 +0000 (16:16 +0000)] 
Remove code made unreachable by the enhancement of the previous check-in.

FossilOrigin-Name: 9e31a275ef494ea8713a1d60a15b84157e57c3ff

13 years agoMake the pager less vulnerable to problems caused by shifting sector sizes
drh [Wed, 11 Jan 2012 15:47:42 +0000 (15:47 +0000)] 
Make the pager less vulnerable to problems caused by shifting sector sizes
when rolling back a hot journal.

FossilOrigin-Name: 629108c8e5376f989cd66e11437949a54c33a5b8

13 years agoFix the sqlite3_quota_file() function in test_quota.c so that it adds the second...
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.

FossilOrigin-Name: 3013f9a67cc6097c14e40a6155c1401f51f4da78

13 years agoPrevent winOpenSharedMemory from masking the real return code from its call to winOpe...
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.

FossilOrigin-Name: 93a65776dc8f496485e206a5eab11eeba579b5da

13 years agoMake sure filenames handed to the VFS by the fake_big_file test procedure
drh [Wed, 11 Jan 2012 00:38:51 +0000 (00:38 +0000)] 
Make sure filenames handed to the VFS by the fake_big_file test procedure
are double-zero terminated.

FossilOrigin-Name: d0a868607e8f46941ece9f9d7b8ba220a7fb4e2b

13 years agoOnly require double-zero terminators on database filenames, not any every
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.

FossilOrigin-Name: cb774b26e13745cfad0d76a71e47466d703e0007

13 years agoRefactor sqlite3OsFileControlNoFail() into sqlite3FileControlHint().
drh [Tue, 10 Jan 2012 17:59:59 +0000 (17:59 +0000)] 
Refactor sqlite3OsFileControlNoFail() into sqlite3FileControlHint().

FossilOrigin-Name: 722735a4f316630c907149f08d3d7dccc0facd9a

13 years agoAvoid passing strings with a single nul-terminator (two are required) to the VFS...
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.

FossilOrigin-Name: 2544f233f1041a42bbdbb5413d2bc92b2a2e0397

13 years agoAdd function sqlite3OsFileControlNoFail(), which is the same as sqlite3OsFileControl...
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.

FossilOrigin-Name: af59b182d797642e5ec3ddf291cf62662a136bd1

13 years agoCheck the return code from sqlite3OsFileControl() in sqlite3BtreeCopyFile()
drh [Tue, 10 Jan 2012 16:40:50 +0000 (16:40 +0000)] 
Check the return code from sqlite3OsFileControl() in sqlite3BtreeCopyFile()
and report any errors that it generates.

FossilOrigin-Name: 7f852ac6435f1c9e25b07f816cca5ba40484579e

13 years agoRemove the BenignMalloc() from around the call to FCNTL_OVERWRITE. Add
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.

FossilOrigin-Name: 38bc4236d5a9d9f22a525bf9308d90cd4d9ce5a4

13 years agoCosmetic changes to lemon. No changes to core functionality nor impact on
drh [Mon, 9 Jan 2012 14:19:05 +0000 (14:19 +0000)] 
Cosmetic changes to lemon.  No changes to core functionality nor impact on
SQLite.

FossilOrigin-Name: 393fc78a18004c839d889de2a25ec046ad6f13fc

13 years agoMake sure the multiplexor does not create unnecessary overflow files.
drh [Mon, 9 Jan 2012 13:41:59 +0000 (13:41 +0000)] 
Make sure the multiplexor does not create unnecessary overflow files.

FossilOrigin-Name: 1238619756c0c26e43d3c1c873cbdeca22ce9d61

13 years agoHave test_multiplex.c add a second nul-terminator byte to the strings that it passes...
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.

FossilOrigin-Name: 12f5b8c9c9a15bd9e6aabdc708d4e869ff918e76

13 years agoFix typos in commands. Combine the ExpandBlob and expandBlob macros into one.
drh [Sun, 8 Jan 2012 22:18:33 +0000 (22:18 +0000)] 
Fix typos in commands.  Combine the ExpandBlob and expandBlob macros into one.

FossilOrigin-Name: fc9179e154751b51ddef429600d30a89d4a098bd

13 years agoMake sure the shared-memory filename sythesized by os_win.c is
drh [Sun, 8 Jan 2012 12:32:09 +0000 (12:32 +0000)] 
Make sure the shared-memory filename sythesized by os_win.c is
double-zero terminated, so that it can be used with
sqlite3_uri_parameter().

FossilOrigin-Name: 429380f99c59ca10de18638ce6f9ec7c47082999

13 years agoFix harmless compiler warning seen with MSVC.
mistachkin [Sun, 8 Jan 2012 00:54:02 +0000 (00:54 +0000)] 
Fix harmless compiler warning seen with MSVC.

FossilOrigin-Name: 9612bcd648c7654050ddb2f955a28cbc527a8c2e

13 years agoFix a bug in lemon in computation of which non-terminals can generate an
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.

FossilOrigin-Name: ce32775b232da894343f62deefaf19b0ec484636

13 years agoAdd missing finish_test to the end of the zerodamage.test module. Disable
drh [Fri, 6 Jan 2012 13:58:04 +0000 (13:58 +0000)] 
Add missing finish_test to the end of the zerodamage.test module.  Disable
the zerodamage module if virtual tables are omitted from the build.

FossilOrigin-Name: d2a5685b5e282488df382fc210e4f0d786259658

13 years agoCombine various boolean variables in the BtShared structure into a single
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().

FossilOrigin-Name: 119493318e0ad4c2858fe1484b0d71669bd81531

13 years agoMake sure the name of the shared memory file has two zero-terminators in the
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.

FossilOrigin-Name: 3d088ba5e36c0b6bccc86986f8fa9a22b340c297

13 years agoFix an incorrect assert() on the sqlite3FileSuffix3() function.
drh [Thu, 5 Jan 2012 18:33:40 +0000 (18:33 +0000)] 
Fix an incorrect assert() on the sqlite3FileSuffix3() function.

FossilOrigin-Name: 24db54bd49ed91c74a9797faca02df2d39553240

13 years agoChange the unix VFS so that it ignores all but the least-significant bit
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.

FossilOrigin-Name: e75fd3b27423272b988921ac0e272f9600818b8c

13 years agoEnsure 8-byte alignment of Index.aiRowEst[] elements even if the size of
drh [Thu, 5 Jan 2012 12:38:02 +0000 (12:38 +0000)] 
Ensure 8-byte alignment of Index.aiRowEst[] elements even if the size of
an Index object is not a multiple of 8 bytes.

FossilOrigin-Name: 1378f905d37544701776d38987fe7a312b255983

13 years agoRemove the SQLITE_FCNTL_SYNC_OMITTED cases from the unix and windows VFSes
drh [Thu, 5 Jan 2012 11:43:10 +0000 (11:43 +0000)] 
Remove the SQLITE_FCNTL_SYNC_OMITTED cases from the unix and windows VFSes
as they are no longer needed because of check-in [fd3822f1f2].

FossilOrigin-Name: 7cf568a101cda20ab6005bd250154b7f6960193a

13 years agoFix typos and comments and make minor changes to a few function names,
drh [Wed, 4 Jan 2012 12:57:45 +0000 (12:57 +0000)] 
Fix typos and comments and make minor changes to a few function names,
as suggested by readership.

FossilOrigin-Name: e9d05cbb7676cbda83f1b3b71447404d7edde898

13 years agoMake sure filenames passed into sqlite3OsOpen() always have the extra
drh [Tue, 3 Jan 2012 14:50:45 +0000 (14:50 +0000)] 
Make sure filenames passed into sqlite3OsOpen() always have the extra
zero-terminators needed by sqlite3_uri_parameter().

FossilOrigin-Name: d73e93cfdc9441ade77b796dcdcf6eeb753cb398

13 years agoRemove the code that attempts to find the sector size from the OS and
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.

FossilOrigin-Name: 03d8362cd2cadab8e1cc5b18a3194152f2bd0a84

13 years agoChange page quantities in pcache1.c to unsigned.
drh [Mon, 2 Jan 2012 18:00:55 +0000 (18:00 +0000)] 
Change page quantities in pcache1.c to unsigned.

FossilOrigin-Name: da52e6e8b490508bc1ee4700aa45a79f398363da

13 years agoRemove an incorrect assert() in btree.c.
drh [Mon, 2 Jan 2012 16:38:57 +0000 (16:38 +0000)] 
Remove an incorrect assert() in btree.c.

FossilOrigin-Name: c1691d998a03fee3bef137ccf2e8ca45acac2df4

13 years agoMake sure large negative arguments to PRAGMA cache_size do not cause
drh [Mon, 2 Jan 2012 15:45:12 +0000 (15:45 +0000)] 
Make sure large negative arguments to PRAGMA cache_size do not cause
32-bit signed integer overflow.  Also correct a requirements mark.

FossilOrigin-Name: 17c30634a71051158f8d37fd51b3c2a125ad8bd2

13 years agoHave SQLITE_FCNTL_SYNC_OMITTED use the normal method of returning an error code.
dan [Mon, 2 Jan 2012 14:50:12 +0000 (14:50 +0000)] 
Have SQLITE_FCNTL_SYNC_OMITTED use the normal method of returning an error code.

FossilOrigin-Name: fd3822f1f2e6ea181f663e99bfe788d8404176ee

13 years agoFix the build so that it works when SQLITE_ENABLE_8_3_NAMES=1.
drh [Mon, 2 Jan 2012 12:41:53 +0000 (12:41 +0000)] 
Fix the build so that it works when SQLITE_ENABLE_8_3_NAMES=1.

FossilOrigin-Name: d9761f15a175724c6c28a52335c979304737b188

13 years agoTweaks to improve testability.
drh [Sun, 1 Jan 2012 13:58:53 +0000 (13:58 +0000)] 
Tweaks to improve testability.

FossilOrigin-Name: e3a929e43180f41095cc2cd00c6b0781856a4474

13 years agoFix typos in comments. No changes to code.
drh [Sat, 31 Dec 2011 21:51:55 +0000 (21:51 +0000)] 
Fix typos in comments.  No changes to code.

FossilOrigin-Name: 6827338ecbe43e28da88d919851ebffde9f6d398

13 years agoAdd calls to the BenignMalloc() functions around the SQLITE_FCNTL_OVERWRITE call...
dan [Sat, 31 Dec 2011 10:18:00 +0000 (10:18 +0000)] 
Add calls to the BenignMalloc() functions around the SQLITE_FCNTL_OVERWRITE call in backup.c.

FossilOrigin-Name: 3e0833dbb736a1aca08d17941d6d33901b15a03b

13 years agoAdd calls to the BenignMalloc() functions around the SQLITE_FCNTL_SIZE_HINT call...
dan [Fri, 30 Dec 2011 18:16:02 +0000 (18:16 +0000)] 
Add calls to the BenignMalloc() functions around the SQLITE_FCNTL_SIZE_HINT call in pager.c.

FossilOrigin-Name: c17a3f5e5d72187c06b598ef071d43ef89328e19

13 years agoFix a typo in the documentation for PCACHE2. No changes to code.
drh [Fri, 30 Dec 2011 16:16:56 +0000 (16:16 +0000)] 
Fix a typo in the documentation for PCACHE2.  No changes to code.

FossilOrigin-Name: 46e7903ab993b08251c87239bd4a7320e6781cee

13 years agoChange dbstatus.test to account for the fact that the value reported by DBSTATUS_SCHE...
dan [Fri, 30 Dec 2011 16:09:50 +0000 (16:09 +0000)] 
Change dbstatus.test to account for the fact that the value reported by DBSTATUS_SCHEMA_USED may be slightly lower than the actual memory used on osx

FossilOrigin-Name: 6f2010c862105a113b55e90018b86a9ece298d4d

13 years agoFix up requirements marks for syntax diagrams to reflect the new and improved
drh [Fri, 30 Dec 2011 16:07:37 +0000 (16:07 +0000)] 
Fix up requirements marks for syntax diagrams to reflect the new and improved
GIF renderings.

FossilOrigin-Name: 1bb23a3b5297e07e08c26362f71aef0c5b978875

13 years agoUpdate the text of requirements associated with sqlite3_pcache_methods2.
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.

FossilOrigin-Name: f945c41a72519d6bcfb478730ba0254bb24e5331

13 years agoHold the database handle mutex for the duration of sqlite3_db_release_memory().
dan [Fri, 30 Dec 2011 11:43:59 +0000 (11:43 +0000)] 
Hold the database handle mutex for the duration of sqlite3_db_release_memory().

FossilOrigin-Name: eeaf2988004ff5343be60ab4ba2f809f76c94b51

13 years agoMinor changes to fix compilation with SQLITE_OMIT_WAL and SQLITE_OMIT_WSD defined.
dan [Fri, 30 Dec 2011 10:54:24 +0000 (10:54 +0000)] 
Minor changes to fix compilation with SQLITE_OMIT_WAL and SQLITE_OMIT_WSD defined.

FossilOrigin-Name: 26a513a8d2dddfde82f5fd0a0e1cc186c9b0df94

13 years agoChange an implicit i64-to-int cast in pager.c to an explicit cast.
dan [Fri, 30 Dec 2011 09:00:19 +0000 (09:00 +0000)] 
Change an implicit i64-to-int cast in pager.c to an explicit cast.

FossilOrigin-Name: 6a71ba9ce930838d44ed8d399075ba0723c9132b

13 years agoFix some typos in comments. No code changes.
dan [Fri, 30 Dec 2011 05:08:41 +0000 (05:08 +0000)] 
Fix some typos in comments. No code changes.

FossilOrigin-Name: 4edc5994b26e1fd3245572cb80242d07ba20a475

13 years agoDocumentation updates. No changes to code.
drh [Fri, 23 Dec 2011 20:49:26 +0000 (20:49 +0000)] 
Documentation updates.  No changes to code.

FossilOrigin-Name: a8a1a639fe441a533b11ada7368b2200edea7a05

13 years agoAvoid excess syncs when padding a transaction in a WAL.
drh [Fri, 23 Dec 2011 13:32:07 +0000 (13:32 +0000)] 
Avoid excess syncs when padding a transaction in a WAL.

FossilOrigin-Name: 1f24ae716df6232de768e245ea990049deee3c22

13 years agoMerge the POWERSAFE_OVERWRITE features and the use of statvfs() from the
drh [Fri, 23 Dec 2011 02:07:10 +0000 (02:07 +0000)] 
Merge the POWERSAFE_OVERWRITE features and the use of statvfs() from the
statvfs branch into trunk.

FossilOrigin-Name: 2370d70eb51d2259aaa8073d861ab79d6637cbd9

13 years agoChange the name ZERO_DAMAGE to the more descriptive POWERSAFE_OVERWRITE. statvfs
drh [Fri, 23 Dec 2011 01:04:17 +0000 (01:04 +0000)] 
Change the name ZERO_DAMAGE to the more descriptive POWERSAFE_OVERWRITE.
The query parameter used to control this device characteristic is now "psow".

FossilOrigin-Name: 6191c5e45175f5c6040e891843b0725a929d6dd7

13 years agoMerge the latest trunk changes into the statvfs branch.
drh [Fri, 23 Dec 2011 00:25:02 +0000 (00:25 +0000)] 
Merge the latest trunk changes into the statvfs branch.

FossilOrigin-Name: d5e36327c12f264429eb079bddbb71a310f76389

13 years agoAdd interfaces sqlite3_uri_boolean() and sqlite3_uri_int64() which are
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.

FossilOrigin-Name: 83d26b9a9115eadac9e59a33d608bca0ab2519e3

13 years agoFix minor issues with FTS and RTREE discovered by coverity.
drh [Thu, 22 Dec 2011 17:31:17 +0000 (17:31 +0000)] 
Fix minor issues with FTS and RTREE discovered by coverity.

FossilOrigin-Name: 1c27d842163e27c39bbe9409f50657b9de9ade6e

13 years agoCheck the return code from sqlite3_initialize() called from within
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.

FossilOrigin-Name: 676acce274fec692a1eb34d27ee4b1327b4b3334

13 years agoFix a problem in fts3_write.c causing stack memory to be referenced after it is out...
dan [Thu, 22 Dec 2011 15:30:46 +0000 (15:30 +0000)] 
Fix a problem in fts3_write.c causing stack memory to be referenced after it is out of scope.

FossilOrigin-Name: f9c4a7c8f4e5821b47c1393d6272e32416d8886c

13 years agoMerge recent trunk changes into the statvfs branch.
drh [Thu, 22 Dec 2011 02:10:57 +0000 (02:10 +0000)] 
Merge recent trunk changes into the statvfs branch.

FossilOrigin-Name: 995ec8a41a7d091d9d87cb8f18f62102c8fda7d7