]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
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

15 years agoAdded option to not clip error output.
icculus [Sun, 14 Feb 2010 05:42:46 +0000 (05:42 +0000)] 
Added option to not clip error output.

This is useful for IDEs and other tools that benefit from full path
information, so they can jump directly to the error line in the source code.

FossilOrigin-Name: 90602030d18152a934644db119a291aa38fe3fd4

15 years agoDelete output files if this is a failed run.
icculus [Sun, 14 Feb 2010 05:34:42 +0000 (05:34 +0000)] 
Delete output files if this is a failed run.

Otherwise, the fail will stop a Makefile from progressing, but if you
immediately run the build again, Make will think the output files are up to
date, since they are newer (albeit incomplete/incorrect).

FossilOrigin-Name: e38c08d9cdeb0476ac1a77cd3f29f547a8205835

15 years agoAdded %expect directive, to consider a certain number of conflicts "correct."
icculus [Sun, 14 Feb 2010 05:19:56 +0000 (05:19 +0000)] 
Added %expect directive, to consider a certain number of conflicts "correct."

This has the side effect of changing the process exit code to never overflow.

FossilOrigin-Name: d8bab8cf0bc3fbd4c489c31a65d724dda2944d83

15 years agoAdded -T option, to specify a template filename on the command line.
icculus [Sun, 14 Feb 2010 00:48:49 +0000 (00:48 +0000)] 
Added -T option, to specify a template filename on the command line.

The default is still "lempar.c", though.

FossilOrigin-Name: e6cbe1e5ee80db282a41951b805b7bd8b13adf28

15 years agoMerged tracing and initialization changes from mutex_unix.c.
shaneh [Sat, 13 Feb 2010 02:31:09 +0000 (02:31 +0000)] 
Merged tracing and initialization changes from mutex_unix.c.

FossilOrigin-Name: 942aa1f6a91655356cc32a8185cb447331d405dc

15 years agoEnhancements to the secure_delete pragma to make it easier to use.
drh [Fri, 12 Feb 2010 19:46:26 +0000 (19:46 +0000)] 
Enhancements to the secure_delete pragma to make it easier to use.

FossilOrigin-Name: 2bb38bb96ff6b9fb91dd1cf214041cf113ac5508

15 years agoAll the secure-delete setting to be changed at run-time using a pragma.
drh [Fri, 12 Feb 2010 18:18:39 +0000 (18:18 +0000)] 
All the secure-delete setting to be changed at run-time using a pragma.
The SQLITE_SECURE_DELETE compile-time option determines the default setting.

FossilOrigin-Name: f72f8a870a0fc98a9f2b564ffafe7946bbce506e

15 years agoFix a segfault in fts3 that may occur if the snippet, offsets or matchinfo functions...
dan [Wed, 10 Feb 2010 05:33:17 +0000 (05:33 +0000)] 
Fix a segfault in fts3 that may occur if the snippet, offsets or matchinfo functions are used in a query that does not contain a MATCH clause.

FossilOrigin-Name: 14ab536a96f81595ab8c3dcd4b72075f1a827c8b

15 years agoMake sure file descriptors are closed before unlinking in VxWorks.
drh [Fri, 5 Feb 2010 18:00:26 +0000 (18:00 +0000)] 
Make sure file descriptors are closed before unlinking in VxWorks.

FossilOrigin-Name: f64b81f13de4875343c752e7183bf61032dc9594

15 years agoAvoid truncating non-in-memory sub-journals when releasing a savepoint for a small...
shaneh [Fri, 5 Feb 2010 16:28:00 +0000 (16:28 +0000)] 
Avoid truncating non-in-memory sub-journals when releasing a savepoint for a small performance improvement.

FossilOrigin-Name: 27dc5b1c52eaa5f99cf44ee31204f62598fbf011

15 years agoRemove the use of 64-bit math in the offset computations of
drh [Fri, 5 Feb 2010 14:12:53 +0000 (14:12 +0000)] 
Remove the use of 64-bit math in the offset computations of
the OP_Column opcode for a small performance improvement.

FossilOrigin-Name: 61a2c8d4d64c28119e9f06eb42f9c0437ba7a7bd

15 years agoFix a performance glitch that appears for large transactions.
drh [Thu, 4 Feb 2010 17:38:31 +0000 (17:38 +0000)] 
Fix a performance glitch that appears for large transactions.

FossilOrigin-Name: 26cb1df73504d5d883cf0967e57b46aa062d0b00

15 years agoAdd a new full-text search variant that tracks the total number of documents
drh [Wed, 3 Feb 2010 19:55:13 +0000 (19:55 +0000)] 
Add a new full-text search variant that tracks the total number of documents
and document sizes, to make ranking search results easier.  Currently
called FTS4.

FossilOrigin-Name: 1b6e6094c88214e02c9e3638932997ac20bfe413

15 years agoFix a C++-ism that snuck into sqlite3_finalize().
drh [Sun, 31 Jan 2010 15:14:37 +0000 (15:14 +0000)] 
Fix a C++-ism that snuck into sqlite3_finalize().

FossilOrigin-Name: fb96f2a2c63a061a90733448c4af14384893d409

15 years agoIf an OOM occurs while setting the page size for the TEMP database, be sure
drh [Sun, 31 Jan 2010 14:18:21 +0000 (14:18 +0000)] 
If an OOM occurs while setting the page size for the TEMP database, be sure
that error gets reported back out to the interface layer.

FossilOrigin-Name: 6487e70a1e18bb01ee692e250b41c8652e34a87c

15 years agoTweaks for consistency to the SEE and CEROD API declarations in sqlite3.h.
shaneh [Thu, 28 Jan 2010 19:56:27 +0000 (19:56 +0000)] 
Tweaks for consistency to the SEE and CEROD API declarations in sqlite3.h.

FossilOrigin-Name: 299f74567b1b97a1fdc0a620ef382cfd24941809

15 years agoMake the TEMP file tables use the page size set for the main database.
drh [Tue, 26 Jan 2010 01:25:26 +0000 (01:25 +0000)] 
Make the TEMP file tables use the page size set for the main database.
Ticket [b80eeab588c4].
Also copy over the changes from apple-osx check-in [7c3bede3f2].

FossilOrigin-Name: 5dcfb0c9e420d27e54a299b3991b98776651a507

15 years agoFix two similar problems in fts3 that meant that an OOM error could cause a memory...
dan [Fri, 22 Jan 2010 15:48:18 +0000 (15:48 +0000)] 
Fix two similar problems in fts3 that meant that an OOM error could cause a memory leak.

FossilOrigin-Name: 701ef64b3dbf45e52043e79e528002bd4b7a21e2

15 years agoFix a segfault that can occur when the LHS of a LIKE operator has an
drh [Thu, 21 Jan 2010 23:11:24 +0000 (23:11 +0000)] 
Fix a segfault that can occur when the LHS of a LIKE operator has an
undefined collating sequence.  Ticket [1258875e07553].

FossilOrigin-Name: a82e6b4585b9ddba581204976cd5ea8704339185

15 years agoRedesign the string to numeric value caster so that it is more likely to
drh [Thu, 21 Jan 2010 01:53:07 +0000 (01:53 +0000)] 
Redesign the string to numeric value caster so that it is more likely to
work on unusual floating point hardware.

FossilOrigin-Name: 8bb1104c6f02c88eb09ed345890be71dee099485

15 years agoFix a problem with handling OOM errors in fts3.
dan [Wed, 20 Jan 2010 14:25:37 +0000 (14:25 +0000)] 
Fix a problem with handling OOM errors in fts3.

FossilOrigin-Name: f9c54e95ecf1c36c4750bb151e91d81c1d1bd596

15 years agoMove the Apple OS-X VFS changes into the trunk.
drh [Wed, 20 Jan 2010 13:07:21 +0000 (13:07 +0000)] 
Move the Apple OS-X VFS changes into the trunk.

FossilOrigin-Name: 571594bfbe89d9949bdb8b07712e96d0a3467c6e

15 years agoManually copy over the rebustness fixes from the apple-osx branch.
drh [Wed, 20 Jan 2010 01:20:56 +0000 (01:20 +0000)] 
Manually copy over the rebustness fixes from the apple-osx branch.

FossilOrigin-Name: 095c74ea6260096f6a600fdc0edccf7ea24aace4

15 years agoFix a problem with the CLI where not all SQL commands were being echoed.
shaneh [Mon, 18 Jan 2010 18:17:10 +0000 (18:17 +0000)] 
Fix a problem with the CLI where not all SQL commands were being echoed.
Added tests of same to tools/shell2.test.  Ticket [eb620916be].

FossilOrigin-Name: 7080ae3bc3828168483ac23d5b8976d67ea5089e

15 years agoFix test numbering in fts3snippet.test.
dan [Fri, 15 Jan 2010 17:33:49 +0000 (17:33 +0000)] 
Fix test numbering in fts3snippet.test.

FossilOrigin-Name: 34f6854685f00158bc536dd53ac5bc20e19fe071

15 years agoAdd coverage tests for fts3_snippet.c. Also fixes related to the same.
dan [Fri, 15 Jan 2010 17:25:52 +0000 (17:25 +0000)] 
Add coverage tests for fts3_snippet.c. Also fixes related to the same.

FossilOrigin-Name: 5e9d8ccae9731f380527463ef87ddcd216b4b721

15 years agoAdd a test to e_fts3.test for the matchinfo example in fts3.html.
dan [Thu, 14 Jan 2010 11:45:03 +0000 (11:45 +0000)] 
Add a test to e_fts3.test for the matchinfo example in fts3.html.

FossilOrigin-Name: e5336edc55313afac11ea085257cb6e75a0287a7

15 years agoFix some matchinfo related test problems in fts3rnd.test.
dan [Thu, 14 Jan 2010 11:17:05 +0000 (11:17 +0000)] 
Fix some matchinfo related test problems in fts3rnd.test.

FossilOrigin-Name: da7abe05887d1ad52552d8ce3a153a0a76f96c5a

15 years agoComment cleanup in sqliteInt.h.
drh [Thu, 14 Jan 2010 00:39:26 +0000 (00:39 +0000)] 
Comment cleanup in sqliteInt.h.

FossilOrigin-Name: 67c3aea563e019083f0ed87b57982a0379637d4f

15 years agoMake the sqlite3IsNaN() function a macro that evaluates to FALSE when
drh [Wed, 13 Jan 2010 17:39:53 +0000 (17:39 +0000)] 
Make the sqlite3IsNaN() function a macro that evaluates to FALSE when
compiled with SQLITE_OMIT_FLOATING_POINT.

FossilOrigin-Name: 56f232d562bc239103a5afd2e64c4b926a20de08

15 years agoWhen SQLITE_OMIT_FLOATING_POINT is defined, the floating-point formats in
drh [Wed, 13 Jan 2010 16:43:27 +0000 (16:43 +0000)] 
When SQLITE_OMIT_FLOATING_POINT is defined, the floating-point formats in
the sqlite3_*printf() functions should pull an int64 off of the parameter
list and ignore it.

FossilOrigin-Name: 3fd6f9ad06b786116ca18c1e812363d30cd3060e

15 years agoWhen SQLITE_OMIT_FLOATING_POINT is defined, make sure the result of a
drh [Wed, 13 Jan 2010 16:25:42 +0000 (16:25 +0000)] 
When SQLITE_OMIT_FLOATING_POINT is defined, make sure the result of a
mathematical operation is always tagged as an integer.

FossilOrigin-Name: e12da0d316fcc34a75554d59fe6d11d9f0e059e2

15 years agoMake the doubleToInt64() routine a pass-through when using OMIT_FLOATING_POINT.
drh [Wed, 13 Jan 2010 15:15:40 +0000 (15:15 +0000)] 
Make the doubleToInt64() routine a pass-through when using OMIT_FLOATING_POINT.

FossilOrigin-Name: 417167182efaa1da74008952137de3e00c23494e

15 years agoAdd tests to backup.test to verify that SQLite behaves as expected when the source...
dan [Wed, 13 Jan 2010 14:08:01 +0000 (14:08 +0000)] 
Add tests to backup.test to verify that SQLite behaves as expected when the source database is modified mid-backup.

FossilOrigin-Name: 985d3bec07430536485056bcd2ae0471791601ed

15 years agoComment out unused code when SQLITE_OMIT_FLOATING_POINT is selected.
drh [Wed, 13 Jan 2010 04:22:20 +0000 (04:22 +0000)] 
Comment out unused code when SQLITE_OMIT_FLOATING_POINT is selected.
Added testcase() macros to boundary conditions in util.c routines.

FossilOrigin-Name: dfc6595d347ea87923a857778b68751103f535d2

15 years agoMake the sqlite3_result_double() interface work the same as
drh [Wed, 13 Jan 2010 00:04:13 +0000 (00:04 +0000)] 
Make the sqlite3_result_double() interface work the same as
sqlite3_result_int64() when SQLITE_OMIT_FLOATING_POINT is defined.

FossilOrigin-Name: 61df5986600b6c9e6d5c42efc0067a27fe54251f

15 years agoMake sure internal queries are well ordered, even when the
drh [Tue, 12 Jan 2010 23:54:14 +0000 (23:54 +0000)] 
Make sure internal queries are well ordered, even when the
reverse_unordered_selects pragma is in effect.
Ticket [eb942c64a157].

FossilOrigin-Name: 0209f17180065d9c213b6c437be1c3c40660665f