]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
14 years agoFix the amalgamation builder so that it works with the rtree updates of branch-3.6.23
drh [Sat, 2 Oct 2010 01:00:02 +0000 (01:00 +0000)] 
Fix the amalgamation builder so that it works with the rtree updates of
the prior check-in.

FossilOrigin-Name: 265b0b29b83fde813c63f401b979e619f2b12d5d

14 years agoBackport the RTree implementation from the trunk into the 3.6.23 branch.
drh [Fri, 1 Oct 2010 20:45:09 +0000 (20:45 +0000)] 
Backport the RTree implementation from the trunk into the 3.6.23 branch.
The code for the application-defined query boxes is still present but
is disabled.  The reason for this backport is to take advantage of recent
enhancements to robustness to database corruption.

FossilOrigin-Name: 854b23c117c973fcf63f31bda189b7492595c3f9

14 years agoPull the incremental_vacuum bug fix ([255f1eefa373153942c67b18b]) and the
drh [Tue, 24 Aug 2010 12:05:18 +0000 (12:05 +0000)] 
Pull the incremental_vacuum bug fix ([255f1eefa373153942c67b18b]) and the
R-tree segfault bug fix ([7f2f71cc9e3c39093f09231f44]) into the 3.6.23
branch.  Increase the version number to 3.6.23.3.

FossilOrigin-Name: bcbdecd854d8430831fbcdf17f55ba6f55ba745b

15 years agoCherry-pick the SQLITE_FCNTL_SIZE_HINT patch (check-in [2b7e3b4a30d6a7c4a8]
drh [Wed, 19 May 2010 22:09:19 +0000 (22:09 +0000)] 
Cherry-pick the SQLITE_FCNTL_SIZE_HINT patch (check-in [2b7e3b4a30d6a7c4a8]
and bump the version number to 3.6.23.2.

FossilOrigin-Name: 776679af588625f13307369770979bccae7cf03a

15 years agoDisable the corruptE test which SQLITE_OVERSIZE_CELL_CHECK is enabled.
drh [Wed, 19 May 2010 20:30:15 +0000 (20:30 +0000)] 
Disable the corruptE test which SQLITE_OVERSIZE_CELL_CHECK is enabled.
This is a cherrypick merge from check-in [1dc4f9fe9b83467ba].

FossilOrigin-Name: a40d080ca3c5f152f3296caf48f20728f61317de

15 years agoInclude shell.c and sqlite3.def in the amalgamation ZIP archive.
drh [Wed, 31 Mar 2010 11:56:47 +0000 (11:56 +0000)] 
Include shell.c and sqlite3.def in the amalgamation ZIP archive.
Ticket [e063139eb3f8]

FossilOrigin-Name: b51fcac9fb4207810ee8d33ead47886e9c46d224

15 years agoUpdate the version number to 3.6.23.1.
drh [Fri, 26 Mar 2010 22:28:06 +0000 (22:28 +0000)] 
Update the version number to 3.6.23.1.

FossilOrigin-Name: b078b588d617e07886ad156e9f54ade6d823568e

15 years agoPull in other fixes from the trunk: check-ins [bea9258643],
drh [Fri, 26 Mar 2010 21:53:11 +0000 (21:53 +0000)] 
Pull in other fixes from the trunk:  check-ins [bea9258643],
[f186b6a619], and [bb591802ff].

FossilOrigin-Name: b1f342a6643829020beef542a0700d90822e6467

15 years agoFix to the crash8.test test script.
drh [Fri, 26 Mar 2010 21:47:59 +0000 (21:47 +0000)] 
Fix to the crash8.test test script.

FossilOrigin-Name: f18a129a7aab09a1e0d34155e82bcbf7479a401d

15 years agoEnhance FTS3 to take advantage of the MAX() optimization.
drh [Fri, 26 Mar 2010 17:42:57 +0000 (17:42 +0000)] 
Enhance FTS3 to take advantage of the MAX() optimization.
Cherrypick of [b7e42ae774].

FossilOrigin-Name: 4b65b4805100852a2b6a834aa6efc0bbf25b539f

15 years agoCorrectly handle strings with zero-length tokens in the FTS3 offsets()
drh [Fri, 26 Mar 2010 17:40:32 +0000 (17:40 +0000)] 
Correctly handle strings with zero-length tokens in the FTS3 offsets()
function.  This is a cherrypick of [d37034f7fc].

FossilOrigin-Name: ff6ae4f0e461fb5f8d08a0092488b7cd71cffb05

15 years agoAfter any rollback that modifies the database file, sync the database
drh [Fri, 26 Mar 2010 17:37:12 +0000 (17:37 +0000)] 
After any rollback that modifies the database file, sync the database
before deleting the rollback journal.  This is a cherry-pick merge
of check-ins [b21b911f23] and [f2326dad4e]

FossilOrigin-Name: ca0bc2a22e893062876f67e0f53cbab44b45665d

15 years agoVersion 3.6.22
drh [Tue, 9 Mar 2010 19:31:43 +0000 (19:31 +0000)] 
Version 3.6.22

FossilOrigin-Name: 4ae453ea7be69018d8c16eb8dabe05617397dc4d

15 years agoFix a test script issue affecting the TCL backup tests under Windows.
shaneh [Tue, 9 Mar 2010 15:10:30 +0000 (15:10 +0000)] 
Fix a test script issue affecting the TCL backup tests under Windows.

FossilOrigin-Name: 20c400e73a9b6586b97de61da0d9f3d9a01dbebc

15 years agoVersion 3.6.23 release candidate 4
shaneh [Tue, 9 Mar 2010 14:41:57 +0000 (14:41 +0000)] 
Version 3.6.23 release candidate 4

FossilOrigin-Name: 3445eda0295940e00c33cc87aedaf586fa1b1b63

15 years agoMinor changes to silence compiler warnings on various MSVC builds.
shaneh [Tue, 9 Mar 2010 14:41:12 +0000 (14:41 +0000)] 
Minor changes to silence compiler warnings on various MSVC builds.

FossilOrigin-Name: 115c978b6bbc110119a1b2f178cc30b33aaa27ef

15 years agoVersion 3.6.23 release candidate 3
drh [Tue, 9 Mar 2010 13:12:40 +0000 (13:12 +0000)] 
Version 3.6.23 release candidate 3

FossilOrigin-Name: 747baea5c32f9a5de4b46a1fd1b24bd509c9a85e

15 years agoCheck-in [87a6a9970b] did not completely disable FTS4. This check-in aims
drh [Tue, 9 Mar 2010 13:02:09 +0000 (13:02 +0000)] 
Check-in [87a6a9970b] did not completely disable FTS4.  This check-in aims
to finish the job.

FossilOrigin-Name: 0259b6299e435b3c3a7ca33df8c38c8a5dc84a61

15 years agoVersion 3.6.23 release candidate 2
drh [Tue, 9 Mar 2010 12:35:50 +0000 (12:35 +0000)] 
Version 3.6.23 release candidate 2

FossilOrigin-Name: 73f4d292dc66ac41456f2ebddada82c7f5633431

15 years agoDisable FTS4 (which is incomplete and not ready for publication) to prevent
drh [Tue, 9 Mar 2010 12:35:21 +0000 (12:35 +0000)] 
Disable FTS4 (which is incomplete and not ready for publication) to prevent
accidental use.

FossilOrigin-Name: 87a6a9970b8cea25fc5f8ff03d87762dd1166899

15 years agoVersion 3.6.23 release candidate 1
drh [Tue, 9 Mar 2010 05:01:49 +0000 (05:01 +0000)] 
Version 3.6.23 release candidate 1

FossilOrigin-Name: 30e9f966e7bc517f69796828026c8b23337c356b

15 years agoAdd NEVER and assert macros and explanatory comments for unreachable
drh [Mon, 8 Mar 2010 21:40:13 +0000 (21:40 +0000)] 
Add NEVER and assert macros and explanatory comments for unreachable
conditions.

FossilOrigin-Name: ffb6596e6c80e284c1542b03f2c7bbfce0bd87d9

15 years agoCorrect an assert() in mem2.c (test code only).
dan [Mon, 8 Mar 2010 15:17:53 +0000 (15:17 +0000)] 
Correct an assert() in mem2.c (test code only).

FossilOrigin-Name: 1a88e31b03e090732243a70bec082b32ecf77c43

15 years agoDo not run the stmt.test script as part of the inmemory_journal permutation.
dan [Mon, 8 Mar 2010 10:32:38 +0000 (10:32 +0000)] 
Do not run the stmt.test script as part of the inmemory_journal permutation.

FossilOrigin-Name: 049cadf92bca5645a6f398eb83940344643fcacf

15 years agoMake sure the dbFileVers field in the Pager object is properly initialized
drh [Fri, 5 Mar 2010 20:17:45 +0000 (20:17 +0000)] 
Make sure the dbFileVers field in the Pager object is properly initialized
even if there is an I/O error while reading its content off of disk.

FossilOrigin-Name: 81ff698f62c8133818a3db1997ae7427705da23f

15 years agoChange a condition in sqlite3VdbeMemShallowCopy() to avoid accessing an unitialized...
dan [Fri, 5 Mar 2010 18:46:12 +0000 (18:46 +0000)] 
Change a condition in sqlite3VdbeMemShallowCopy() to avoid accessing an unitialized variable (doing so was not dangerous, but caused a valgrind error).

FossilOrigin-Name: 4793c381c6ff4e4d25433298be30028721a9cb67

15 years agoFix a one byte buffer overread in fts3.
dan [Fri, 5 Mar 2010 17:27:01 +0000 (17:27 +0000)] 
Fix a one byte buffer overread in fts3.

FossilOrigin-Name: 6e3e014af91601ed1f3a9cbe23f7c4260a4d177f

15 years agoModify the vdbe so that the comparison operator opcodes do not modify the data type...
dan [Fri, 5 Mar 2010 16:32:12 +0000 (16:32 +0000)] 
Modify the vdbe so that the comparison operator opcodes do not modify the data type of operands. Fix for [aa92c76cd4].

FossilOrigin-Name: 8858042fa1449516a2c7dbb991dca3eb6c5794cb

15 years agoAdjustments to #ifdefs so that the #include of <sys/mount.h> is not included
drh [Fri, 5 Mar 2010 13:53:22 +0000 (13:53 +0000)] 
Adjustments to #ifdefs so that the #include of <sys/mount.h> is not included
twice, because that confuses the amalgamation builder.

FossilOrigin-Name: 27413fc8dd52b754b4be9344a66bb9e0d752d48e

15 years agoAdjust some #ifdefs so that the build works on Mac both with and without
drh [Fri, 5 Mar 2010 13:41:06 +0000 (13:41 +0000)] 
Adjust some #ifdefs so that the build works on Mac both with and without
SQLITE_ENABLE_LOCKING_STYLE.

FossilOrigin-Name: 0cc981f1ccc2c99b87eb968590ad18b2d3ebf37b

15 years agoFix for [9abd6aa831]. Do not overread a buffer used for an %q or %w conversion with...
dan [Thu, 4 Mar 2010 17:58:45 +0000 (17:58 +0000)] 
Fix for [9abd6aa831]. Do not overread a buffer used for an %q or %w conversion with a precision specifier.

FossilOrigin-Name: 5e472896e02eed05c6c0886a48acd0bdc7a38731

15 years agoFix an uninitialized variable in printf when compiling with
drh [Thu, 4 Mar 2010 17:11:31 +0000 (17:11 +0000)] 
Fix an uninitialized variable in printf when compiling with
SQLITE_OMIT_FLOATING_POINT.

FossilOrigin-Name: 14ad62b9a54dba5c5a2d4a994bcd4be6ab6e711f

15 years agoSuppress harmless compiler warnings.
drh [Thu, 4 Mar 2010 16:12:34 +0000 (16:12 +0000)] 
Suppress harmless compiler warnings.

FossilOrigin-Name: fc2c63ac78ba7d48fe3232f88093e980ea34eaa9

15 years agoIncrease the maximum length of an sqlite3_log() result string. Provide more
drh [Thu, 4 Mar 2010 00:53:32 +0000 (00:53 +0000)] 
Increase the maximum length of an sqlite3_log() result string.  Provide more
details on the statement abort log message.

FossilOrigin-Name: 5322d1df5ba981001d248b7fb2ee02281e4f9723

15 years agoPull the latest Lemon updates from the lemon-update-2010 branch into
drh [Wed, 3 Mar 2010 22:43:37 +0000 (22:43 +0000)] 
Pull the latest Lemon updates from the lemon-update-2010 branch into
the trunk.

FossilOrigin-Name: 84d760bfc1d219fda99901061bb5db2cafe9eb1d

15 years agoModify the sqlite3_log() interface and implementation so that it never
drh [Wed, 3 Mar 2010 22:25:18 +0000 (22:25 +0000)] 
Modify the sqlite3_log() interface and implementation so that it never
uses dynamic memory allocation - to avoid deadlocking when called while
holding the memory allocator mutex.

FossilOrigin-Name: 28d1bc98d60319b10af427072037a0121bc76259

15 years agoFixed compiler warning on Visual Studio.
icculus [Wed, 3 Mar 2010 17:09:01 +0000 (17:09 +0000)] 
Fixed compiler warning on Visual Studio.

FossilOrigin-Name: 83495128c820e963c70d11c3196f81d8cf01f867

15 years agoWhoops, that shouldn't have been in the merge. Removed buggy code.
icculus [Wed, 3 Mar 2010 17:06:32 +0000 (17:06 +0000)] 
Whoops, that shouldn't have been in the merge. Removed buggy code.

FossilOrigin-Name: 643728003218c9841425dffb6fe506763859fd37

15 years agoUse Strsafe() instead of strdup(). Fixes Visual Studio complaining.
icculus [Wed, 3 Mar 2010 17:00:15 +0000 (17:00 +0000)] 
Use Strsafe() instead of strdup(). Fixes Visual Studio complaining.

FossilOrigin-Name: 89d8f98ea6d4d8bf871e08a8d8d1f0d2fd11aec1

15 years agoMerged trunk to lemon-update-2010 branch.
icculus [Wed, 3 Mar 2010 16:54:58 +0000 (16:54 +0000)] 
Merged trunk to lemon-update-2010 branch.

FossilOrigin-Name: 88b466bae47d006c48eff42ab271f05ff56d5ed1

15 years agoFix some extra instances of the constants addressed by [83e47ca006].
dan [Wed, 3 Mar 2010 16:02:05 +0000 (16:02 +0000)] 
Fix some extra instances of the constants addressed by [83e47ca006].

FossilOrigin-Name: 0354ab279f0ea9915a14d1ed972b4aa6b5a27fd1

15 years agoFactor out constant expressions in sqlite3GetVarint() to work around
drh [Wed, 3 Mar 2010 15:18:38 +0000 (15:18 +0000)] 
Factor out constant expressions in sqlite3GetVarint() to work around
nuisance warning messages from the RVT compiler.

FossilOrigin-Name: 83e47ca0069de259e98798d84d88301a5b4b6d2e

15 years agoModify the command line tool to disable all mutexes. The command line tool is single...
dan [Wed, 3 Mar 2010 07:23:12 +0000 (07:23 +0000)] 
Modify the command line tool to disable all mutexes. The command line tool is single-threaded.

FossilOrigin-Name: 00e5679047a0a96dc4396aae5e061909faf3b81d

15 years agoWhen TEMP files are in memory, also put the massive TEMP file used by
drh [Tue, 2 Mar 2010 23:34:54 +0000 (23:34 +0000)] 
When TEMP files are in memory, also put the massive TEMP file used by
the VACUUM command in memory.

FossilOrigin-Name: 9daf4e7d07769f25b3a579d80e7fada4e52344b1

15 years agoRename the sqlite_compile_option_*() SQL functions to sqlite_compileoption_*()
drh [Fri, 26 Feb 2010 16:37:47 +0000 (16:37 +0000)] 
Rename the sqlite_compile_option_*() SQL functions to sqlite_compileoption_*()
for consistency with the C/C++ interface.

FossilOrigin-Name: dd4962aa34c4dd118d2cb15465384636eacc64d5

15 years agoRemove the compile_option pragma (retaining compile_options - with an "s").
drh [Fri, 26 Feb 2010 15:39:24 +0000 (15:39 +0000)] 
Remove the compile_option pragma (retaining compile_options - with an "s").
Updates to documentation.

FossilOrigin-Name: 733778df996a2dda7c31ff7b544cb6f9a6ed4c97

15 years agoAvoid a buffer overwrite that can occur with a corrupt database if secure-delete...
dan [Fri, 26 Feb 2010 15:09:19 +0000 (15:09 +0000)] 
Avoid a buffer overwrite that can occur with a corrupt database if secure-delete is enabled.

FossilOrigin-Name: 7bdb1e05faceddbb0b8e3efee7d070ad8c4611a3

15 years agoAvoid incorrect compiler warnings by doing a couple of needless
drh [Fri, 26 Feb 2010 13:07:37 +0000 (13:07 +0000)] 
Avoid incorrect compiler warnings by doing a couple of needless
variable initializations.

FossilOrigin-Name: 8f29490da62df07ea922b03cab52b6edd2669edb

15 years agoIncrease the version number to 3.6.23 in preparation for the next release.
drh [Fri, 26 Feb 2010 12:58:50 +0000 (12:58 +0000)] 
Increase the version number to 3.6.23 in preparation for the next release.

FossilOrigin-Name: b5835d3e3d7f3fbf04431f9afe27dfef7b7f23c9

15 years agoMinor changes to silence some compiler warnings with MSVC.
shaneh [Fri, 26 Feb 2010 01:46:54 +0000 (01:46 +0000)] 
Minor changes to silence some compiler warnings with MSVC.

FossilOrigin-Name: 4927c62d6214d93e582bf1266215ed3519630c15

15 years agoFix to the database connection validity checker. Other test coverage
drh [Thu, 25 Feb 2010 23:44:15 +0000 (23:44 +0000)] 
Fix to the database connection validity checker.  Other test coverage
enhancements.

FossilOrigin-Name: 0f6291bbbd31673e2a65f38c7fc364c33719d25e

15 years agoTest coverage enhancements. Additional documentation detail on the new
drh [Thu, 25 Feb 2010 21:27:58 +0000 (21:27 +0000)] 
Test coverage enhancements.  Additional documentation detail on the new
sqlite3_log() interface.

FossilOrigin-Name: d986e9289388fd72257b26cb2f9c972177255cd4

15 years agoAdd experimental fix for corruption detection problem. This may well be revised yet.
dan [Thu, 25 Feb 2010 12:09:16 +0000 (12:09 +0000)] 
Add experimental fix for corruption detection problem. This may well be revised yet.

FossilOrigin-Name: 1cc4be7ebc463921827e61da724f0de946c061f6

15 years agoFixed numbering of a few tests; minor tweaks on others.
shaneh [Thu, 25 Feb 2010 18:07:59 +0000 (18:07 +0000)] 
Fixed numbering of a few tests; minor tweaks on others.
Added a couple new tests to stress previous simplifications.

FossilOrigin-Name: 9b18dfd19e825b09c1d246c826e179b9892308df

15 years agoMinor simplifications to the compile-time option reporting functions and
drh [Thu, 25 Feb 2010 15:28:41 +0000 (15:28 +0000)] 
Minor simplifications to the compile-time option reporting functions and
pragmas to facilitate coverage testing.

FossilOrigin-Name: 633d874783a94f923ff8240f9153764033d37a89

15 years agoExpire pragma statements when reset, even if they were not run to completion.
drh [Thu, 25 Feb 2010 14:47:01 +0000 (14:47 +0000)] 
Expire pragma statements when reset, even if they were not run to completion.

FossilOrigin-Name: 78351d289bba83e536b64666c566b7bfc57351da

15 years agoMake sure the ON clause of a LEFT JOIN does not cause an index to be
drh [Thu, 25 Feb 2010 04:15:47 +0000 (04:15 +0000)] 
Make sure the ON clause of a LEFT JOIN does not cause an index to be
used to speed access to a table to the left of the join.
Ticket [ebdbadade5]

FossilOrigin-Name: f0ae251abb9e8a8793f46a30b79b2ce541cf14d5

15 years agoAdd testcase() macros beside each sqlite3_log() call to make sure it is
drh [Wed, 24 Feb 2010 21:44:07 +0000 (21:44 +0000)] 
Add testcase() macros beside each sqlite3_log() call to make sure it is
tested with both logging enable and disabled.

FossilOrigin-Name: 1168763d2cd96acfa0488198e8bc82f0c4fa35a3

15 years agoChanges to compile time option diags to report values for some defines.
shaneh [Wed, 24 Feb 2010 19:36:10 +0000 (19:36 +0000)] 
Changes to compile time option diags to report values for some defines.
Added test cases to TCL test suite (ctime.test).

FossilOrigin-Name: dd480f62afa56ff85c2dd57ee7a16eee427e823f

15 years agoAdd a sqlite3_log() call on anonymous constraint failures.
drh [Wed, 24 Feb 2010 19:23:56 +0000 (19:23 +0000)] 
Add a sqlite3_log() call on anonymous constraint failures.
Fix the output of test cases having to do with improved reprepare reporting.
Fix the VACUUM command to report more helpful error messages when things go
wrong.

FossilOrigin-Name: 69a493182fd77bec91598516ee42c11a6db1d039

15 years agoFix an incorrect ALWAYS() macro in vdbeapi.c. Fix the output of a few
drh [Wed, 24 Feb 2010 18:40:39 +0000 (18:40 +0000)] 
Fix an incorrect ALWAYS() macro in vdbeapi.c.  Fix the output of a few
test cases that changed due to better error propagation out of reprepare.

FossilOrigin-Name: a8c984c1d6cb6e2fc95a07eb32befeea122e8ed3

15 years agoRemove an unused variable from rtree.
drh [Wed, 24 Feb 2010 18:25:58 +0000 (18:25 +0000)] 
Remove an unused variable from rtree.

FossilOrigin-Name: 8e60d3995a1ea940de9751dd3bbd7ef41b0bb00a

15 years agoEnhancements to the way errors are reported up when an automatic
drh [Wed, 24 Feb 2010 17:15:19 +0000 (17:15 +0000)] 
Enhancements to the way errors are reported up when an automatic
statement reprepare fails.

FossilOrigin-Name: 1a6d4bb130382564093b6370818ae4a7633f4074

15 years agoFix an assertion fault that occurs when two different virtual tables are
drh [Wed, 24 Feb 2010 15:10:14 +0000 (15:10 +0000)] 
Fix an assertion fault that occurs when two different virtual tables are
used in a single UPDATE statement.
Ticket [d2f02d37f52b].

FossilOrigin-Name: ff61e0fd802c46c2d84c4b0c0bc8a0f34959bb25

15 years agoFix the stmt.test test script so that it works with SQLITE_TEMP_STORE=3.
drh [Tue, 23 Feb 2010 21:08:40 +0000 (21:08 +0000)] 
Fix the stmt.test test script so that it works with SQLITE_TEMP_STORE=3.

FossilOrigin-Name: 8bf710ce6dfab0e6fd4de7d6d3157008cc70d192

15 years agoMerge the compile-time option introspection interfaces into the trunk.
drh [Tue, 23 Feb 2010 20:32:15 +0000 (20:32 +0000)] 
Merge the compile-time option introspection interfaces into the trunk.

FossilOrigin-Name: 9f429434c0404f03a3e5c6741b769afe98a5c6c9

15 years agoContinuing improvements to error reporting and the sqlite3_log() routine.
drh [Tue, 23 Feb 2010 20:11:56 +0000 (20:11 +0000)] 
Continuing improvements to error reporting and the sqlite3_log() routine.

FossilOrigin-Name: edea3bb740ddd096a46e00678b59d465bb1e2903

15 years agoRefactored compile time option diagnostic support to use strings identifiers instead... compile_opts
shaneh [Tue, 23 Feb 2010 20:08:35 +0000 (20:08 +0000)] 
Refactored compile time option diagnostic support to use strings identifiers instead of bitmask.

FossilOrigin-Name: 76a0294ab4208a0858a13bab0858e1bc1448b651

15 years agoFix a segfault that can occur if a malloc fails in ATTACH in shared-cache mode.
dan [Tue, 23 Feb 2010 11:05:26 +0000 (11:05 +0000)] 
Fix a segfault that can occur if a malloc fails in ATTACH in shared-cache mode.

FossilOrigin-Name: e37137376a2b23062e2625b5285299b33630b326

15 years agoRemove the obsolete sqlite3SafetyOn() mechanism. Add additional logging
drh [Tue, 23 Feb 2010 17:36:32 +0000 (17:36 +0000)] 
Remove the obsolete sqlite3SafetyOn() mechanism.  Add additional logging
output for CORRUPT, and CANTOPEN errors.

FossilOrigin-Name: 7c4cca6d1a23a6d1591b62f58c3716a944969947

15 years agoFix a segfault that can occur if a malloc fails in ATTACH in shared-cache mode.
dan [Tue, 23 Feb 2010 10:56:15 +0000 (10:56 +0000)] 
Fix a segfault that can occur if a malloc fails in ATTACH in shared-cache mode.

FossilOrigin-Name: 875f8fa32708b8dbf314fd7056fac2fefdacfa36

15 years agoRemoved checking of some compile options from the sqlite3_compileopts() API.
shaneh [Tue, 23 Feb 2010 05:17:51 +0000 (05:17 +0000)] 
Removed checking of some compile options from the sqlite3_compileopts() API.

FossilOrigin-Name: 833da702ff9bd99d62640756d80e094256efff5c

15 years agoTest new api to report which options (defines) were used to compile SQLite.
shaneh [Tue, 23 Feb 2010 04:19:54 +0000 (04:19 +0000)] 
Test new api to report which options (defines) were used to compile SQLite.

FossilOrigin-Name: 84c9756993caf82710a0905ed1987d144bc764fd

15 years agoAdd the ".log" command to the shell. This shows that some errors are logged
drh [Tue, 23 Feb 2010 01:47:00 +0000 (01:47 +0000)] 
Add the ".log" command to the shell.  This shows that some errors are logged
multiple times and other errors are never logged at all.

FossilOrigin-Name: 6d910245ad0097521cf1619449cc3d202137b8b8

15 years agoRemove the ".genfkey" command from the shell. We've had foreign-key support
drh [Tue, 23 Feb 2010 01:01:58 +0000 (01:01 +0000)] 
Remove the ".genfkey" command from the shell.  We've had foreign-key support
in the core since 3.6.19.  Anyone who still needs the simulated foreign-key
triggers can always generate them with an older version of the shell.

FossilOrigin-Name: c4401fc93b66c5339422d7e765a4a32b1ef96bdb

15 years agoFix an assertion-fault/segfault problem that comes up when trying to
drh [Mon, 22 Feb 2010 23:17:42 +0000 (23:17 +0000)] 
Fix an assertion-fault/segfault problem that comes up when trying to
VACUUM an auto-vacuumed database with a large schema.
Ticket [da1151f97df244].

FossilOrigin-Name: 86d50ce57feb78440956192e37a03686ffa1e196

15 years agoMerge in the massive clean-up and ANSI-fication of Lemon carried out
drh [Mon, 22 Feb 2010 19:37:44 +0000 (19:37 +0000)] 
Merge in the massive clean-up and ANSI-fication of Lemon carried out
by Ryan Gordon.  There are no functional changes to SQLite itself - Lemon
still generates exactly the same parsing automaton from exactly the same
grammar.

FossilOrigin-Name: 1e8b842039cc06b57a321226633c55b94eb8dcd7

15 years agoLog all error messages if logging is enabled.
drh [Mon, 22 Feb 2010 19:32:31 +0000 (19:32 +0000)] 
Log all error messages if logging is enabled.

FossilOrigin-Name: a8076aede33c07e9a2aaa05be8a888f37b45e41c

15 years agoChanges to pragma integrity_check to check rowid order. Tests of same in corruptE...
shaneh [Fri, 19 Feb 2010 04:28:08 +0000 (04:28 +0000)] 
Changes to pragma integrity_check to check rowid order.  Tests of same in corruptE.test.

FossilOrigin-Name: cae47c5b09cb122689bcb020a66ce14982cc4aa8

15 years agoAdd a new, experimental logging interface designed to aid in debugging of
drh [Thu, 18 Feb 2010 18:45:09 +0000 (18:45 +0000)] 
Add a new, experimental logging interface designed to aid in debugging of
deeply embedded projects that use SQLite.

FossilOrigin-Name: 103321e37ae46eacfad4e127d13477ad5dd02bab

15 years agoAllow statements like "REPLACE INTO tbl(rowid) VALUES(...)" to run without a statemen...
dan [Thu, 18 Feb 2010 08:19:19 +0000 (08:19 +0000)] 
Allow statements like "REPLACE INTO tbl(rowid) VALUES(...)" to run without a statement journal as long as there are no triggers, foreign keys or indexes.

FossilOrigin-Name: 0e4225804010cb0e3f254e2dbffc4fe0e7d982ce

15 years agoRepore error if the grammar has multiple %type lines for the same nonterminal.
icculus [Wed, 17 Feb 2010 20:31:32 +0000 (20:31 +0000)] 
Repore error if the grammar has multiple %type lines for the same nonterminal.

FossilOrigin-Name: 721f33e7221c5fc907e9e293ac3242843f4fcfb7

15 years agoFixed % formatting in some printf-style strings.
icculus [Wed, 17 Feb 2010 20:22:10 +0000 (20:22 +0000)] 
Fixed % formatting in some printf-style strings.

FossilOrigin-Name: f96add898f096cfc1e435c625ce74093d790b3c7

15 years agoCorrected error message (cut-and-paste bug).
icculus [Wed, 17 Feb 2010 20:19:50 +0000 (20:19 +0000)] 
Corrected error message (cut-and-paste bug).

FossilOrigin-Name: b3839f2aad00844c578d496c40481a39c018e4f6

15 years agoConsistent use of #ifdef for SQLITE_HAS_CODEC to avoid confusion.
shaneh [Wed, 17 Feb 2010 17:48:46 +0000 (17:48 +0000)] 
Consistent use of #ifdef for SQLITE_HAS_CODEC to avoid confusion.

FossilOrigin-Name: 34a3413a5318050254b246ad859c91c134516a32

15 years agoRemoved unused variables.
icculus [Wed, 17 Feb 2010 05:40:34 +0000 (05:40 +0000)] 
Removed unused variables.

FossilOrigin-Name: ca570a02f5c5215098050de4eb551b2dcd11b1fd

15 years agoAvoid using the internal printf routine for round(x,y) in the common case where y==0.
shaneh [Wed, 17 Feb 2010 04:19:27 +0000 (04:19 +0000)] 
Avoid using the internal printf routine for round(x,y) in the common case where y==0.

FossilOrigin-Name: d76ad8b3c494ffb4e670da0e92a1f8dbf7f48daf

15 years agoMore rounding tests.
shaneh [Wed, 17 Feb 2010 03:57:58 +0000 (03:57 +0000)] 
More rounding tests.

FossilOrigin-Name: 3863638b8cd8d41cf4abf8b0d618892de845e91f

15 years agoRemove duplicated assignment in realloc.
shaneh [Tue, 16 Feb 2010 22:06:30 +0000 (22:06 +0000)] 
Remove duplicated assignment in realloc.

FossilOrigin-Name: c419955df0ad0507ecb3869786d48458366d4e8f

15 years agoAdded additional rounding tests.
shaneh [Tue, 16 Feb 2010 22:00:35 +0000 (22:00 +0000)] 
Added additional rounding tests.

FossilOrigin-Name: b8ee76bc1fd355110149bd9135dd31a5724c2ac6

15 years agoRemoved %expect directive, on drh's advice.
icculus [Tue, 16 Feb 2010 16:09:03 +0000 (16:09 +0000)] 
Removed %expect directive, on drh's advice.

FossilOrigin-Name: b43ac3309e77dc8ea2952bf62da6eaad5aef6653

15 years agoPatched to compile. Accidentally removed va_list declaration.
icculus [Tue, 16 Feb 2010 16:07:28 +0000 (16:07 +0000)] 
Patched to compile. Accidentally removed va_list declaration.

FossilOrigin-Name: 673d470c0c14106da05461d355a0c09e5f62851d

15 years agoChange a C++ style comment in os_unix.c to use normal C style commenting.
dan [Tue, 16 Feb 2010 12:18:47 +0000 (12:18 +0000)] 
Change a C++ style comment in os_unix.c to use normal C style commenting.

FossilOrigin-Name: 7a1933097f2a95bd495c1621fca99e8952a1b25a

15 years agoFix for [e9a9fde1f4]. When opening an existing rtree, determine the node size by...
dan [Tue, 16 Feb 2010 10:59:40 +0000 (10:59 +0000)] 
Fix for [e9a9fde1f4]. When opening an existing rtree, determine the node size by inspecting the root node of the r-tree structure (instead of assuming it is a function of the page-size).

FossilOrigin-Name: ebc9433fddf78ef7b4237686951d8d79c1c98f03

15 years agoFix the ALTER TABLE RENAME command so that it converts FOREIGN KEY constraints
drh [Mon, 15 Feb 2010 18:03:20 +0000 (18:03 +0000)] 
Fix the ALTER TABLE RENAME command so that it converts FOREIGN KEY constraints
in ATTACH-ed and in TEMP tables as well as in the main database.
Ticket [13336e9c3c8c3f].

FossilOrigin-Name: ab197d0aaf18016ac2dd3674f49bea5f1556451c

15 years agoWhen creating a trigger on a main database table when there is a TEMP table
drh [Mon, 15 Feb 2010 16:54:55 +0000 (16:54 +0000)] 
When creating a trigger on a main database table when there is a TEMP table
with the same name, make sure the trigger is bound to the main table.
Ticket [985771e11612].

FossilOrigin-Name: ec914af32675e472694270d46f3ba2214eb2fe90

15 years agoFix a compiler warning in shell.c. Updates to comments in trigger.c.
drh [Mon, 15 Feb 2010 15:47:18 +0000 (15:47 +0000)] 
Fix a compiler warning in shell.c.  Updates to comments in trigger.c.

FossilOrigin-Name: c727601eecd85a26dbd4fc36823d77bec34da3c3

15 years agoFix a typo in the documentation for the OP_OpenPseudo opcode.
drh [Mon, 15 Feb 2010 15:17:05 +0000 (15:17 +0000)] 
Fix a typo in the documentation for the OP_OpenPseudo opcode.

FossilOrigin-Name: 9acfb0694059c80b2efc08a60232d4be91575c32

15 years agoRemoved the 80-char line formatting for ErrorMsg(), on dhr's suggestion.
icculus [Mon, 15 Feb 2010 00:01:04 +0000 (00:01 +0000)] 
Removed the 80-char line formatting for ErrorMsg(), on dhr's suggestion.

FossilOrigin-Name: 132ea4e5d7f69fc307904f5086a72d8532e5aac6

15 years agoMake Lemon able to compile as C++ code.
icculus [Sun, 14 Feb 2010 17:14:22 +0000 (17:14 +0000)] 
Make Lemon able to compile as C++ code.

FossilOrigin-Name: 75a1060b29eb4122487152b068e7d1073eb0ccab