]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
15 years agoSuppress unused parameter warnings in sqlite3VdbeEnter() and related routines.
drh [Mon, 4 Apr 2011 03:27:16 +0000 (03:27 +0000)] 
Suppress unused parameter warnings in sqlite3VdbeEnter() and related routines.

FossilOrigin-Name: f8e98ab3062a6e56924a86e8f3204c30d0f3d906

15 years agoRemove the BtreeMutexArray object - use the Vdbe.btreeMask field to accomplish
drh [Mon, 4 Apr 2011 00:14:43 +0000 (00:14 +0000)] 
Remove the BtreeMutexArray object - use the Vdbe.btreeMask field to accomplish
the same result.  Add a generation counter to btree mutexes in order to assert
that mutexes are never temporarily dropped over a range of instructions in order
to do deadlock avoidance in some subroutine.  Lock all btrees in any Vdbe
program that uses OP_ParseSchema.

FossilOrigin-Name: d81708f7d1eee399bfe76f6b8dac950a85dc2582

15 years agoMake sure that the constant 1 is cast to yDbType before shifting to create
drh [Sun, 3 Apr 2011 18:19:25 +0000 (18:19 +0000)] 
Make sure that the constant 1 is cast to yDbType before shifting to create
an attached database mask.  This check-in is a follow-up and fix to the
[7aaf8772274422] change that increases the maximum number of attached databases
from 30 to 62.

FossilOrigin-Name: e2a09ea73c76a0bec1e09d1fc11092517e3ebdf9

15 years agoFix typos in comments. No changes to code.
drh [Sun, 3 Apr 2011 02:41:00 +0000 (02:41 +0000)] 
Fix typos in comments.  No changes to code.

FossilOrigin-Name: 28c5f12e98655d5c6167b13e8a15085eca43dd5b

15 years agoMerge in the latest changes from trunk.
drh [Sat, 2 Apr 2011 20:08:10 +0000 (20:08 +0000)] 
Merge in the latest changes from trunk.

FossilOrigin-Name: 0d99229a7a58da07748072326f6261c533c1958f

15 years agoChange the name of the "tAttachMask" datatype to "yDbMask".
drh [Sat, 2 Apr 2011 20:01:02 +0000 (20:01 +0000)] 
Change the name of the "tAttachMask" datatype to "yDbMask".

FossilOrigin-Name: 3d6f2e82358c0d8c0ca04e0da20b84fc65c3f7fa

15 years agoAvoid returning SQLITE_NOTFOUND when the unix xSetSystemCall interface is invoked...
dan [Sat, 2 Apr 2011 17:00:47 +0000 (17:00 +0000)] 
Avoid returning SQLITE_NOTFOUND when the unix xSetSystemCall interface is invoked with NULL passed as the second argument, even if all the default system calls are already installed.

FossilOrigin-Name: 3b91eaaa0b3c25022332ba3d1a5651848fc5d84c

15 years agoWhen resetting any non-TEMP schema, also reset the TEMP schema since it might
drh [Sat, 2 Apr 2011 16:50:25 +0000 (16:50 +0000)] 
When resetting any non-TEMP schema, also reset the TEMP schema since it might
be holding references to the non-TEMP schema that just got reset.

FossilOrigin-Name: 211d5dde1f9c15048c65d1d700141aa7b2491011

15 years agoBegin a series of changes designed to reduce the scope and frequency of
drh [Sat, 2 Apr 2011 16:28:52 +0000 (16:28 +0000)] 
Begin a series of changes designed to reduce the scope and frequency of
invalidating schemas.  Design goals are that the internal schema should
never be deleted out from under a prepared statement that is running and
that all prepared statements should be expired if the schema is invalidated.
At the same time, minimize the number of schema invalidations.  This change
merely revises the sqlite3ResetInternalSchema() function to use -1 as the
wildcard for "all" rather than 0, so that we can reset the main schema
independently of all the others.

FossilOrigin-Name: 6a8ad6e31e0d2b8a5ace38faf0efd805155ee5f3

15 years agoFix a race condition in OP_ParseSchema.
dan [Sat, 2 Apr 2011 09:44:43 +0000 (09:44 +0000)] 
Fix a race condition in OP_ParseSchema.

FossilOrigin-Name: 71a799b02a3b3cf2e12758dea29fd2465bbec3e1

15 years agoDo not attempt to run tests that use the 'wholenumber' virtual table if the build...
dan [Sat, 2 Apr 2011 09:25:14 +0000 (09:25 +0000)] 
Do not attempt to run tests that use the 'wholenumber' virtual table if the build does not support virtual tables.

FossilOrigin-Name: 20afd81a4cf4d23962ec841bbd375f36a5156fb6

15 years agoFix additional test cases so that they work with DEFAULT_AUTOVACUUM.
dan [Sat, 2 Apr 2011 06:44:38 +0000 (06:44 +0000)] 
Fix additional test cases so that they work with DEFAULT_AUTOVACUUM.

FossilOrigin-Name: 139bc5655ed1d0fd1b7ca86d05a998fcc5fbc18e

15 years agoAdd the "wholenumber" virtual table module to the test suite - useful in
drh [Fri, 1 Apr 2011 23:49:44 +0000 (23:49 +0000)] 
Add the "wholenumber" virtual table module to the test suite - useful in
populating tables with many rows of content prior to a test.

FossilOrigin-Name: 975dff155bd9db42f2b6855b24c861852bb7a201

15 years agoFix up the Makefile.in so that the configuration script works for
drh [Fri, 1 Apr 2011 20:54:38 +0000 (20:54 +0000)] 
Fix up the Makefile.in so that the configuration script works for
"make test".

FossilOrigin-Name: 2e03830c1e1b05f7b22f9fe553ae708b65a4e942

15 years agoMerge the word-fuzzer branch into trunk.
drh [Fri, 1 Apr 2011 20:47:27 +0000 (20:47 +0000)] 
Merge the word-fuzzer branch into trunk.

FossilOrigin-Name: f77609d44194ee8871b3fb281ea6b90a9182f69f

15 years agoAdd additional test data and documentation to the fuzzer virtual table. word-fuzzer
drh [Fri, 1 Apr 2011 20:28:31 +0000 (20:28 +0000)] 
Add additional test data and documentation to the fuzzer virtual table.

FossilOrigin-Name: a6a81d4fdafabba514e8f8e1958d6132b3850772

15 years agoChanges to wal tests so that they work with DEFAULT_AUTOVACUUM defined.
dan [Fri, 1 Apr 2011 19:14:40 +0000 (19:14 +0000)] 
Changes to wal tests so that they work with DEFAULT_AUTOVACUUM defined.

FossilOrigin-Name: b477852f82c1fddbda61fad83d55055ad8503dda

15 years agoMerge the multiplexer enhancements back into the trunk.
drh [Fri, 1 Apr 2011 18:39:24 +0000 (18:39 +0000)] 
Merge the multiplexer enhancements back into the trunk.

FossilOrigin-Name: 2c125710cbf04198464d436b16e5ef37c5b219cf

15 years agoAdd a script that will break the amalgamation source file up into 4 or 5
drh [Fri, 1 Apr 2011 18:12:58 +0000 (18:12 +0000)] 
Add a script that will break the amalgamation source file up into 4 or 5
smaller source files, each 32K lines or fewer, and a single "sqlite3-all.c"
source file that #includes the others.

FossilOrigin-Name: 5d34e64d4d2398aa9a54fd0a4f1de37ced7ea5dd

15 years agoChange analyze7.test so that it works without SQLITE_ENABLE_STAT2 defined.
dan [Fri, 1 Apr 2011 17:53:19 +0000 (17:53 +0000)] 
Change analyze7.test so that it works without SQLITE_ENABLE_STAT2 defined.

FossilOrigin-Name: 9415201c8a0b9b640f5997c5348c5df812e88230

15 years agoWhen simulating an error in the close() system call, close the file descriptor anyway...
dan [Fri, 1 Apr 2011 16:50:07 +0000 (16:50 +0000)] 
When simulating an error in the close() system call, close the file descriptor anyway. Otherwise long running tests leak too many file-descriptors and crash.

FossilOrigin-Name: 81ddbf43366c18ebdd46558d6a0fbee2ce6a4c4e

15 years agoMerge latest trunk changes.
dan [Fri, 1 Apr 2011 15:43:40 +0000 (15:43 +0000)] 
Merge latest trunk changes.

FossilOrigin-Name: d184cf00574b52b93f1f089025d6a0addca57558

15 years agoIf the sessions module is being built as part of the amalgamation, do not try to...
dan [Fri, 1 Apr 2011 15:30:39 +0000 (15:30 +0000)] 
If the sessions module is being built as part of the amalgamation, do not try to include sqliteInt.h and vdbeInt.h.

FossilOrigin-Name: f87bfe6e12093e5958b658a49d3766fb29562cbb

15 years agoEnsure that it is not possible to add a column to a system table using ALTER TABLE.
dan [Fri, 1 Apr 2011 15:15:58 +0000 (15:15 +0000)] 
Ensure that it is not possible to add a column to a system table using ALTER TABLE.

FossilOrigin-Name: d9707ef8dcd29667b6d366897f6ad02c87aa0041

15 years agoMerge the ANALYZE-index enhancement into trunk.
drh [Fri, 1 Apr 2011 14:26:14 +0000 (14:26 +0000)] 
Merge the ANALYZE-index enhancement into trunk.

FossilOrigin-Name: 7e237aea22084416d02b89d5223de4e1ca76882d

15 years agoRemoved dependency on sqliteInt.h so that multiplex VFS shim can be compiled as loada... multiplex-enhancements
shaneh [Fri, 1 Apr 2011 14:22:46 +0000 (14:22 +0000)] 
Removed dependency on sqliteInt.h so that multiplex VFS shim can be compiled as loadable module.

FossilOrigin-Name: 718f1ad7df9115871ba6159012d3183183fc40a1

15 years agoTest cases for ANALYZE-index. analyze-idx
drh [Fri, 1 Apr 2011 14:04:36 +0000 (14:04 +0000)] 
Test cases for ANALYZE-index.

FossilOrigin-Name: 365896cb0868fa476e3b4f5a965a1344a2914cc2

15 years agoMove a variable declaration inside an #ifdef to avoid a compiler warning.
drh [Fri, 1 Apr 2011 13:29:29 +0000 (13:29 +0000)] 
Move a variable declaration inside an #ifdef to avoid a compiler warning.

FossilOrigin-Name: 7a6d05dfbc36310683dd51a280e9283cef4f9056

15 years agoIn os_unix.c, do not return SQLITE_BUSY to SQLite following an error in fcntl(F_UNLCK...
dan [Fri, 1 Apr 2011 11:56:32 +0000 (11:56 +0000)] 
In os_unix.c, do not return SQLITE_BUSY to SQLite following an error in fcntl(F_UNLCK), regardless of the value of errno.

FossilOrigin-Name: ff6dfe6ed74f9ff1669b2bda41d61a01cd0a1bc6

15 years agoFix some problems in os_unix.c when compiled with ENABLE_LOCKING_STYLE on OSX. Also...
dan [Fri, 1 Apr 2011 09:04:36 +0000 (09:04 +0000)] 
Fix some problems in os_unix.c when compiled with ENABLE_LOCKING_STYLE on OSX. Also some minor issues with test scripts.

FossilOrigin-Name: 8088031bc949bd4efb5edf33bbd1bce5700fca56

15 years agoFix two compiler errors associated with non-standard compile-time options.
drh [Fri, 1 Apr 2011 02:26:36 +0000 (02:26 +0000)] 
Fix two compiler errors associated with non-standard compile-time options.

FossilOrigin-Name: e3bf2d5ce4f87535e030a446e03d911f421805f7

15 years agoFix a compiler warning and an unreachable branch. Restore 100% branch test
drh [Fri, 1 Apr 2011 01:38:02 +0000 (01:38 +0000)] 
Fix a compiler warning and an unreachable branch.  Restore 100% branch test
coverage.

FossilOrigin-Name: 4dc148bb4cec5ecba167cdcb4959a4f0fa05a96f

15 years agoEnable/disable support.
shaneh [Thu, 31 Mar 2011 15:11:53 +0000 (15:11 +0000)] 
Enable/disable support.

FossilOrigin-Name: b3c6d9aa9e2124a2f2a1a5f9dbbd7db3b1d01a31

15 years agoTests and bug fixes for SELECT multiplex_control(op, val);
shaneh [Thu, 31 Mar 2011 13:14:12 +0000 (13:14 +0000)] 
Tests and bug fixes for SELECT multiplex_control(op, val);
Add tests and fixes for SELECT multiplex_control(op, val);

FossilOrigin-Name: fee9734c193a8bec9599e02e16938179e642bf5e

15 years agoAdditional test cases; Round chunk size up to a multiple of max page size;
shaneh [Thu, 31 Mar 2011 05:31:24 +0000 (05:31 +0000)] 
Additional test cases;  Round chunk size up to a multiple of max page size;

FossilOrigin-Name: 36e364a3fe7d3a9a521189ff0262611a492c21dc

15 years agoChange the ANALYZE command so that it will accept an index name as its
drh [Thu, 31 Mar 2011 02:03:28 +0000 (02:03 +0000)] 
Change the ANALYZE command so that it will accept an index name as its
argument and only reanalyze that one index.  A quick smoke-test works.
Need to study the implications to the query planner and test corner cases.

FossilOrigin-Name: c8f9edd962442cbdd848c48f1a134557ab8c6ef5

15 years agoAdd the SQLITE_ENABLE_PREUPDATE_HOOK compile-time option.
drh [Wed, 30 Mar 2011 21:04:43 +0000 (21:04 +0000)] 
Add the SQLITE_ENABLE_PREUPDATE_HOOK compile-time option.

FossilOrigin-Name: 6634521461e6acff7cc778590e62d57831f9230d

15 years agoUpdates to multiplex.test script; misc. bug fixes;
shaneh [Wed, 30 Mar 2011 21:03:07 +0000 (21:03 +0000)] 
Updates to multiplex.test script;  misc. bug fixes;

FossilOrigin-Name: c41ff2358e8af0fe2186ab4173b81fba204a57ab

15 years agoFurther tests for os_unix.c.
dan [Wed, 30 Mar 2011 19:08:03 +0000 (19:08 +0000)] 
Further tests for os_unix.c.

FossilOrigin-Name: a84f7711949ea3885b0e36e48118d2c76a8a5b82

15 years agoDisable the truncate optimization if there is a preupdate hook.
drh [Wed, 30 Mar 2011 17:25:35 +0000 (17:25 +0000)] 
Disable the truncate optimization if there is a preupdate hook.

FossilOrigin-Name: d051694e024c590e4687cae1368f900799b7442d

15 years agoAdd documentation to the sqlite3_preupdate_hook() interface and its relatives.
drh [Wed, 30 Mar 2011 17:07:47 +0000 (17:07 +0000)] 
Add documentation to the sqlite3_preupdate_hook() interface and its relatives.

FossilOrigin-Name: 8180f2881fa970429e28d4f3258a56cfaabbcabd

15 years agoDo not generate sqlite_stat1 entries for empty tables when running
drh [Wed, 30 Mar 2011 14:54:05 +0000 (14:54 +0000)] 
Do not generate sqlite_stat1 entries for empty tables when running
ANALYZE.  Ticket [83ea97620bd31016451]

FossilOrigin-Name: 3a27af5b3c688c651ba1fae261026ef77b7ff5e3

15 years agoMerge in all the latest changes from trunk.
drh [Wed, 30 Mar 2011 02:03:12 +0000 (02:03 +0000)] 
Merge in all the latest changes from trunk.

FossilOrigin-Name: b11d941e92897663da46160185e6e305d4e28fe6

15 years agoMove to an O(NlogN) algorithm for the priority queue. An insertion sort
drh [Wed, 30 Mar 2011 01:43:00 +0000 (01:43 +0000)] 
Move to an O(NlogN) algorithm for the priority queue.  An insertion sort
was way too slow.

FossilOrigin-Name: 7958cbba736a599c1293b06602eec43dfe4fd7d1

15 years agoAdd support for rowid.
drh [Tue, 29 Mar 2011 23:41:31 +0000 (23:41 +0000)] 
Add support for rowid.

FossilOrigin-Name: 2cf4158ff051916717fc2c0f4b6332d5f6ea6e3d

15 years agoAdd tests to syscall.test and sysfault.test.
dan [Tue, 29 Mar 2011 18:28:35 +0000 (18:28 +0000)] 
Add tests to syscall.test and sysfault.test.

FossilOrigin-Name: 3d2de011814002e2e25b7645f94ff8fc7aab9cdd

15 years agoThe first simple test-case appears to be working now.
drh [Tue, 29 Mar 2011 18:21:59 +0000 (18:21 +0000)] 
The first simple test-case appears to be working now.

FossilOrigin-Name: dd41155bc7459cafc1a2d5c75233193abfbac05d

15 years agoFix a problem whereby following an IO error in CommitPhaseTwo() of a multi-file trans...
dan [Tue, 29 Mar 2011 15:40:55 +0000 (15:40 +0000)] 
Fix a problem whereby following an IO error in CommitPhaseTwo() of a multi-file transaction the b-tree layer could be left in TRANS_WRITE state, causing problems later on.

FossilOrigin-Name: dbe569a099c2855480e35c0cc4d9332821ad80da

15 years agoIf the keyword "unordered" appears at the end of the SQLITE_STAT1.STAT unordered-index-hack
drh [Tue, 29 Mar 2011 15:00:17 +0000 (15:00 +0000)] 
If the keyword "unordered" appears at the end of the SQLITE_STAT1.STAT
column for an index, then use that index for equality lookups only, never
for range queries or sorting.

FossilOrigin-Name: 3b964155f611c437d53d44feafa22f531942b1b4

15 years agoFurther improvements to the fuzzer. It still is not quite working. Pausing
drh [Tue, 29 Mar 2011 14:08:09 +0000 (14:08 +0000)] 
Further improvements to the fuzzer.  It still is not quite working.  Pausing
to work on other things....

FossilOrigin-Name: 5f2f2fce40f43debeb0492c9b460b85c7dad2bde

15 years agoFix a problem in the unix VFS implementation of xNextSystemCall(). Also some typos...
dan [Tue, 29 Mar 2011 10:04:23 +0000 (10:04 +0000)] 
Fix a problem in the unix VFS implementation of xNextSystemCall(). Also some typos that prevent compilation when HAVE_POSIX_FALLOCATE is defined.

FossilOrigin-Name: bc6cce81565b17f886478bd51500bba2ed11ec1d

15 years agoIn-progress changes - do not use; Removed prefix support; Added file control interfac...
shaneh [Tue, 29 Mar 2011 05:06:46 +0000 (05:06 +0000)] 
In-progress changes - do not use; Removed prefix support; Added file control interface to enable/disable and adjust chunk size;
added app-def function for same;

FossilOrigin-Name: bc02d0c193225bd49a8d8a3295aeac752d3c2e30

15 years agoFix the documentation for the sqlite3_column_*_name() functions to describe
drh [Tue, 29 Mar 2011 01:47:22 +0000 (01:47 +0000)] 
Fix the documentation for the sqlite3_column_*_name() functions to describe
that the information can be invalidated when a prepared statement is
reprepared by the first invocation of an sqlite3_step() for a particular
execution cycle.

FossilOrigin-Name: 7270f80ac5dd17b979f1f790b2dfcf811866c1dc

15 years agoAdd test infrastructure (and some tests) to inject faults into os_unix.c using the...
dan [Mon, 28 Mar 2011 19:10:06 +0000 (19:10 +0000)] 
Add test infrastructure (and some tests) to inject faults into os_unix.c using the new xSetSystemCall interface.

FossilOrigin-Name: 0e1d20dfaeea5ab285d16aa4b8f02b61b1d2bc10

15 years agoAdded most of the logic. Simple test runs without segfaulting but does not
drh [Sat, 26 Mar 2011 19:04:47 +0000 (19:04 +0000)] 
Added most of the logic.  Simple test runs without segfaulting but does not
give the correct answer.

FossilOrigin-Name: fb4c31eac8a7290f61c50a3552245660e1271871

15 years agoSkeleton code for the word-fuzzer virtual table.
drh [Sat, 26 Mar 2011 15:05:27 +0000 (15:05 +0000)] 
Skeleton code for the word-fuzzer virtual table.

FossilOrigin-Name: ea3a4ee136ff6699c3099178f0efaa8bb517715f

15 years agoImprove coverage of session module a bit more.
dan [Fri, 25 Mar 2011 19:06:09 +0000 (19:06 +0000)] 
Improve coverage of session module a bit more.

FossilOrigin-Name: 4255a9f609c4fd43582a0874143eabe211199726

15 years agoImprove coverage of session module code.
dan [Fri, 25 Mar 2011 10:52:01 +0000 (10:52 +0000)] 
Improve coverage of session module code.

FossilOrigin-Name: 666123c8d07be87d477e67b1cebef2b0fba5b4bc

15 years agoMinor change to sqlite3Utf8Read() to make consistent with READ_UTF8() usage and avoid...
shaneh [Thu, 24 Mar 2011 17:43:18 +0000 (17:43 +0000)] 
Minor change to sqlite3Utf8Read() to make consistent with READ_UTF8() usage and avoid implementation defined usages of <<.
Added some additional UTF-8 test cases.

FossilOrigin-Name: 7173b3929fae4e678223b0e978a2da7fa50a9005

15 years agoFix problem with tableapi.test on Windows.
shaneh [Thu, 24 Mar 2011 17:37:24 +0000 (17:37 +0000)] 
Fix problem with tableapi.test on Windows.

FossilOrigin-Name: 69fe0c873d702ef1d781453ee6ac2b1fb77fce48

15 years agoFix handling of schema changes mid-session.
dan [Thu, 24 Mar 2011 16:53:57 +0000 (16:53 +0000)] 
Fix handling of schema changes mid-session.

FossilOrigin-Name: 76d2d2ad3b2a5171393b7894f35f463ff284e53b

15 years agoFix handling of schema mismatches in sqlite3session.c so that it matches the docs...
dan [Thu, 24 Mar 2011 16:04:54 +0000 (16:04 +0000)] 
Fix handling of schema mismatches in sqlite3session.c so that it matches the docs in sqlite3session.h.

FossilOrigin-Name: 506a0d7a710e1ff2f367821e73f5080fcf63fbc5

15 years agoStore primary key definitions for modified tables in changesets. Add the sqlite3chang...
dan [Thu, 24 Mar 2011 11:22:59 +0000 (11:22 +0000)] 
Store primary key definitions for modified tables in changesets. Add the sqlite3changeset_pk() API to extract this data from a changeset iterator.

FossilOrigin-Name: 54298ee5ed183d1f1c49524f25e8ae1407f3d4b5

15 years agoThe changes to fix [f7b4edece25c9948] mean that the schema is always loaded
drh [Thu, 24 Mar 2011 01:34:03 +0000 (01:34 +0000)] 
The changes to fix [f7b4edece25c9948] mean that the schema is always loaded
whenever a prepared statement is running.  This means that a couple of
branches can be eliminated and one operand of OP_ParseSchema can be removed.

FossilOrigin-Name: b6e268fce12829f058f1dfa223731ec8479493f8

15 years agoFix a signed/unsigned comparison compiler warning.
drh [Wed, 23 Mar 2011 22:54:59 +0000 (22:54 +0000)] 
Fix a signed/unsigned comparison compiler warning.

FossilOrigin-Name: c81da6f98d89935442c447a51736e11baf5a7bc1

15 years agoUpdate the test_vfstrace.c shim to conform to the new VFS interface for
drh [Wed, 23 Mar 2011 22:51:46 +0000 (22:51 +0000)] 
Update the test_vfstrace.c shim to conform to the new VFS interface for
xSetSystemCall and xGetSystemCall.

FossilOrigin-Name: ad4dc7b95f94fc9a5430c1305fb61d9de79b3365

15 years agoMerge in all the latest changes from the trunk, and especially the interface
drh [Wed, 23 Mar 2011 22:48:46 +0000 (22:48 +0000)] 
Merge in all the latest changes from the trunk, and especially the interface
changes to the SystemCall methods of the VFS.

FossilOrigin-Name: 9c3a6e479988e96086bef00c79dbce508a14da0d

15 years agoChange the xSetSyscall methods of the VFS so that they do not cast object
drh [Wed, 23 Mar 2011 22:02:23 +0000 (22:02 +0000)] 
Change the xSetSyscall methods of the VFS so that they do not cast object
pointers into function pointers.  Fix other unrelated compiler warnings.

FossilOrigin-Name: e059152adce3a8fb693f082b82b5669a238c8d6f

15 years agoIncrease the upper bound on SQLITE_MAX_ATTACHED from 30 to 62.
drh [Wed, 23 Mar 2011 18:22:34 +0000 (18:22 +0000)] 
Increase the upper bound on SQLITE_MAX_ATTACHED from 30 to 62.

FossilOrigin-Name: 7aaf8772274422f5020fad9eea490e195170720f

15 years agoFix a bug in fts4 to do with matchinfo and deferred tokens.
dan [Wed, 23 Mar 2011 17:10:43 +0000 (17:10 +0000)] 
Fix a bug in fts4 to do with matchinfo and deferred tokens.

FossilOrigin-Name: 30d42dc66f19ef5cc5b27d6273eadf56619a3ce8

15 years agoAdd the "indirect flag" to the changeset blob format. Also the sqlite3session_indirec...
dan [Wed, 23 Mar 2011 16:03:11 +0000 (16:03 +0000)] 
Add the "indirect flag" to the changeset blob format. Also the sqlite3session_indirect() API.

FossilOrigin-Name: 1feaf2d35fd9ec777319717ae2c2929d66fe7baa

15 years agoIn the shell, make sure the ".log" command has at least one argument.
drh [Wed, 23 Mar 2011 11:16:22 +0000 (11:16 +0000)] 
In the shell, make sure the ".log" command has at least one argument.

FossilOrigin-Name: 1ed5e361ca7bfa9226fec265704394e0f228f0c5

15 years agoFix a numbering issue in rtree6.test. Add a couple of extra tests.
dan [Wed, 23 Mar 2011 10:52:23 +0000 (10:52 +0000)] 
Fix a numbering issue in rtree6.test. Add a couple of extra tests.

FossilOrigin-Name: 0b7668a71ef8995ea0306c7d890f87761961426e

15 years agoChange the rtree module to support queries with multiple comparison operators (i...
dan [Wed, 23 Mar 2011 10:38:49 +0000 (10:38 +0000)] 
Change the rtree module to support queries with multiple comparison operators (i.e. > or <) of the same type on a single column.

FossilOrigin-Name: 387b55aa9bb0f978641f9c2fa40f84fd98662047

15 years agoAdd API function sqlite3_preupdate_depth(), for determining the depth of the trigger...
dan [Tue, 22 Mar 2011 18:45:29 +0000 (18:45 +0000)] 
Add API function sqlite3_preupdate_depth(), for determining the depth of the trigger stack from within a pre-update callback.

FossilOrigin-Name: bdea70895c2c686a4dd3f4bf0a475fd1501d9551

15 years agoFix a crash that can follow an OOM when "all tables" are registered with a session...
dan [Tue, 22 Mar 2011 16:54:12 +0000 (16:54 +0000)] 
Fix a crash that can follow an OOM when "all tables" are registered with a session module.

FossilOrigin-Name: 183c236e991faaabdc768e52e926c52cf4a7abc9

15 years agoIf a NULL pointer is passed to sqlite3session_attach() in place of a table name,...
dan [Tue, 22 Mar 2011 15:21:03 +0000 (15:21 +0000)] 
If a NULL pointer is passed to sqlite3session_attach() in place of a table name, attach all database tables to the session object.

FossilOrigin-Name: e9037e4e4ccaa5c633759c4d041b60b631b92c6c

15 years agoAdd OOM tests and related fixes for the session module.
dan [Tue, 22 Mar 2011 12:08:00 +0000 (12:08 +0000)] 
Add OOM tests and related fixes for the session module.

FossilOrigin-Name: 06048a68b351e3eb15a890cb54db8a1d4b345fbc

15 years agoFix a couple typos for consistency in sessions documentation.
shaneh [Tue, 22 Mar 2011 02:03:23 +0000 (02:03 +0000)] 
Fix a couple typos for consistency in sessions documentation.

FossilOrigin-Name: 510198f171b9f77a4ad49c06c978c5fbb3a5b7f9

15 years agoRemove some unreachable code in sqlite3session.c. Add test cases.
dan [Mon, 21 Mar 2011 19:41:29 +0000 (19:41 +0000)] 
Remove some unreachable code in sqlite3session.c. Add test cases.

FossilOrigin-Name: 39cdfa5324ae91bfbbac733b1e3e2d33ca883340

15 years agoMerge in the sqlite3_db_config() enhancements for enabling and disabling
drh [Mon, 21 Mar 2011 17:17:49 +0000 (17:17 +0000)] 
Merge in the sqlite3_db_config() enhancements for enabling and disabling
FKs and triggers from trunk.

FossilOrigin-Name: 2b3c8b9d9aa909f64a29ed8167de24c328c50d85

15 years agoAdd the ability to enable and disable foreign key constraints and triggers
drh [Mon, 21 Mar 2011 17:15:58 +0000 (17:15 +0000)] 
Add the ability to enable and disable foreign key constraints and triggers
using calls to sqlite3_db_config().

FossilOrigin-Name: 09e167f9c14625924b17bbb1f292f89ac9ddc93a

15 years agoAdd start of fault-injection tests for session module. Fix some bugs related to the...
dan [Mon, 21 Mar 2011 16:17:42 +0000 (16:17 +0000)] 
Add start of fault-injection tests for session module. Fix some bugs related to the same.

FossilOrigin-Name: 32e95164d1192b87b1ab019549fd2394642cd3fe

15 years agoClarify handling of NULL values in PK columns in sqlite3session.h. Add tests and...
dan [Mon, 21 Mar 2011 11:55:06 +0000 (11:55 +0000)] 
Clarify handling of NULL values in PK columns in sqlite3session.h. Add tests and fixes for the same.

FossilOrigin-Name: aed4273054cbd150c86b36ea951d17c981633ba0

15 years agoFix session module problems with real (floating point) values.
dan [Mon, 21 Mar 2011 11:03:24 +0000 (11:03 +0000)] 
Fix session module problems with real (floating point) values.

FossilOrigin-Name: a192d04f4e3a9e4960a4d96d1d3ee8635bc1034d

15 years agoFix some typos in sqlite3session.h.
dan [Mon, 21 Mar 2011 07:23:09 +0000 (07:23 +0000)] 
Fix some typos in sqlite3session.h.

FossilOrigin-Name: 0853e530cc8d96f025f5160540e8ab3243dea11b

15 years agoDocumentation format updates to sqlite3session.h.
dan [Sun, 20 Mar 2011 11:20:41 +0000 (11:20 +0000)] 
Documentation format updates to sqlite3session.h.

FossilOrigin-Name: f227f60210fba3930f3050aebb1facee8bac9c0b

15 years agoFix a problem involving session objects and attached databases.
dan [Sat, 19 Mar 2011 19:19:26 +0000 (19:19 +0000)] 
Fix a problem involving session objects and attached databases.

FossilOrigin-Name: ad91d30073a8faa7eb064dd2e1cc4d2297d7b3f8

15 years agoFix a bug in changeset generation code.
dan [Sat, 19 Mar 2011 18:46:15 +0000 (18:46 +0000)] 
Fix a bug in changeset generation code.

FossilOrigin-Name: 825df75ba453c853953e17ec29653e11c46f92bb

15 years agoMove session1.test from test/ to ext/session/.
dan [Sat, 19 Mar 2011 17:07:57 +0000 (17:07 +0000)] 
Move session1.test from test/ to ext/session/.

FossilOrigin-Name: c4436a936ab302aec3b7f41a4552f69ad5815744

15 years agoFix a problem with resizing a hash table in sqlite3session.c.
dan [Sat, 19 Mar 2011 16:26:11 +0000 (16:26 +0000)] 
Fix a problem with resizing a hash table in sqlite3session.c.

FossilOrigin-Name: 6e5907e14d3316d56313243c4f8ce8f14d0858fc

15 years agoFix some bugs in sqlite3changeset_apply().
dan [Sat, 19 Mar 2011 15:37:02 +0000 (15:37 +0000)] 
Fix some bugs in sqlite3changeset_apply().

FossilOrigin-Name: 7250318dda542c5bbf28852c1f1d0f3c52ae8f96

15 years agoFix a problem with INTEGER PRIMARY KEY columns and the pre-update hook.
dan [Sat, 19 Mar 2011 08:38:50 +0000 (08:38 +0000)] 
Fix a problem with INTEGER PRIMARY KEY columns and the pre-update hook.

FossilOrigin-Name: 24d4d5dd007197a141555bcca6f2ac9ab47cde80

15 years agoMerge the fix to ticket [f7b4edece25c99485] into the sessions branch.
drh [Sat, 19 Mar 2011 02:37:38 +0000 (02:37 +0000)] 
Merge the fix to ticket [f7b4edece25c99485] into the sessions branch.

FossilOrigin-Name: 1b736ac2934f2361dee5062e9033cbf26b41fc3a

15 years agoAdd a test case to verify that ticket [f7b4edece25c994857] is fixed.
drh [Sat, 19 Mar 2011 02:04:02 +0000 (02:04 +0000)] 
Add a test case to verify that ticket [f7b4edece25c994857] is fixed.

FossilOrigin-Name: eedbcf0a0ba91bb8b9cd3d115081ba297e9959fe

15 years agoAdd a generation counter to the Schema object and enhance OP_VerifySchema
drh [Fri, 18 Mar 2011 21:55:46 +0000 (21:55 +0000)] 
Add a generation counter to the Schema object and enhance OP_VerifySchema
to also check the Schema generation.  Fix for
ticket [f7b4edece25c99].

FossilOrigin-Name: 36c04dd1695f0899b53ce58738181b146fc005ed

15 years agoHold the database mutex for the duration of an sqlite3changeset_apply() call. Also...
dan [Fri, 18 Mar 2011 18:03:13 +0000 (18:03 +0000)] 
Hold the database mutex for the duration of an sqlite3changeset_apply() call. Also for the duration of all sqlite3session_xxx() calls.

FossilOrigin-Name: c615c38c3283e21c33550c093099a793761123a7

15 years agoFixes for compiler warnings. Minor code cleanup.
drh [Fri, 18 Mar 2011 16:47:27 +0000 (16:47 +0000)] 
Fixes for compiler warnings.  Minor code cleanup.

FossilOrigin-Name: 9604d13001e0a195718c7f03fc0e73e352226caa

15 years agoFurther improvements to documentation in sqlite3session.h.
dan [Fri, 18 Mar 2011 16:13:53 +0000 (16:13 +0000)] 
Further improvements to documentation in sqlite3session.h.

FossilOrigin-Name: 07019bb9e8d8f2445d1e0342f74ab520e9804cb5

15 years agoFix a memory allocation issues in the preupdate hook so that the hook.test
drh [Fri, 18 Mar 2011 15:13:31 +0000 (15:13 +0000)] 
Fix a memory allocation issues in the preupdate hook so that the hook.test
script runs clean in valgrind.

FossilOrigin-Name: bd94f4c8b1c4590c437030f0122015f1a37e2582