]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
12 years agoAdd test cases to demonstrate the memory leak on the COLLATE clause. memleak
drh [Sun, 9 Jun 2013 20:16:26 +0000 (20:16 +0000)] 
Add test cases to demonstrate the memory leak on the COLLATE clause.

FossilOrigin-Name: 0a60212c9c8404ee079985a58094ed2b2b554d48

12 years agoCandidate fix for a memory leak that occurs if a CREATE TABLE statement
drh [Sat, 8 Jun 2013 19:58:27 +0000 (19:58 +0000)] 
Candidate fix for a memory leak that occurs if a CREATE TABLE statement
contains two or more COLLATE clauses on the same column definition.

FossilOrigin-Name: 60fc77bc537b099bdd48916746109d0332f839af

12 years agoImprove manual cleaning step performed by the multi-platform build tool for MSVC.
mistachkin [Fri, 7 Jun 2013 22:12:20 +0000 (22:12 +0000)] 
Improve manual cleaning step performed by the multi-platform build tool for MSVC.

FossilOrigin-Name: d5bc1fe1c461bdb3d889ab2e50feb944881822a4

12 years agoUp until now the fts4 "unicode61" tokenizer has treated all private use codepoints...
dan [Wed, 5 Jun 2013 16:17:21 +0000 (16:17 +0000)] 
Up until now the fts4 "unicode61" tokenizer has treated all private use codepoints except the first and last of each of the three ranges as alphanumeric (eligible to be part of tokens). This commit fixes this so that all private use codepoints are considered alphanumeric. In other words, it fixes the handling of codepoints 0xE000, 0xF8FF, 0xF0000, 0xFFFFD, 0x100000 and 0x10FFFD.

FossilOrigin-Name: 6cfd9af5250029c0d275be027b4208c48954a8a1

12 years agoFix a typo in a collating function inside the e_reindex.test script.
drh [Mon, 3 Jun 2013 20:39:15 +0000 (20:39 +0000)] 
Fix a typo in a collating function inside the e_reindex.test script.

FossilOrigin-Name: 4d74fccf02134a998a84097b021ba9d501e34ff0

12 years agoEnhance the shell to provide more flexibility when entering numeric arguments
drh [Mon, 3 Jun 2013 12:47:43 +0000 (12:47 +0000)] 
Enhance the shell to provide more flexibility when entering numeric arguments
on dot-commands.  In particular, allow hexadecimal arguments to .wheretrace
and .testctrl commands.  Cherrypick from [b9578c371ee5].

FossilOrigin-Name: 3bd5ad095b23102dd3379cb62997cbf23cc67b7a

12 years agoFurther improvements to error handling of the run-time loading of SQLite
drh [Mon, 3 Jun 2013 12:34:46 +0000 (12:34 +0000)] 
Further improvements to error handling of the run-time loading of SQLite
into TCL.

FossilOrigin-Name: 7cc0c4ee11ad250fa848e7da4713d70fc0fa3715

12 years agoImproved handling of errors when doing run-time loading of an SQLite
drh [Fri, 31 May 2013 15:36:07 +0000 (15:36 +0000)] 
Improved handling of errors when doing run-time loading of an SQLite
shared-library into TCL.

FossilOrigin-Name: b3f23d186425d2362b756708cbaf422ba3c751f9

12 years agoUpdates to the Codec interface to support codecs on attached databases and
drh [Wed, 29 May 2013 17:48:28 +0000 (17:48 +0000)] 
Updates to the Codec interface to support codecs on attached databases and
to allow rekeying in the middle of a transaction.  These changes are only
applicable if SQLite is compiled with SQLITE_HAS_CODEC.

FossilOrigin-Name: d5b084e9d8cfe9c0c339aca076d472bb50aa764c

12 years agoAdd tests for running FTS 'merge' and 'optimize' commands in shared cache mode.
dan [Wed, 29 May 2013 14:22:19 +0000 (14:22 +0000)] 
Add tests for running FTS 'merge' and 'optimize' commands in shared cache mode.

FossilOrigin-Name: 09e5a7ad85dc592fce868a2d0f8719c6915ccb47

12 years agoAdd the percentile() SQL function as a loadable
drh [Tue, 28 May 2013 20:25:54 +0000 (20:25 +0000)] 
Add the percentile() SQL function as a loadable
extension in the ext/misc directory.

FossilOrigin-Name: a64d760d9290b1be78cdda7ae66d4f02c3b3fa53

12 years agoFinish removing the sqlite3.inTrans field. In the previous check-in, it was
drh [Tue, 28 May 2013 17:30:52 +0000 (17:30 +0000)] 
Finish removing the sqlite3.inTrans field.  In the previous check-in, it was
merely commented out because I failed to select File->Save on my text editor.

FossilOrigin-Name: 2f97e38a6611cb17c24d74332d3ac3777dc0dd3e

12 years agoRemove the obsolete and unused sqlite3.inTrans field.
drh [Tue, 28 May 2013 17:25:48 +0000 (17:25 +0000)] 
Remove the obsolete and unused sqlite3.inTrans field.

FossilOrigin-Name: c3381cd4957013d46075996c3b865177c888d2a8

12 years agoMany small harmless comment changes. Removal of obsolete comments and
drh [Tue, 28 May 2013 12:11:54 +0000 (12:11 +0000)] 
Many small harmless comment changes.  Removal of obsolete comments and
fixing misspelled words.  No changes to code.

FossilOrigin-Name: a0d5cc9315dc6e9ef7dee4c3dfabf4e562d64376

12 years agoMerge autoconf-package branch with trunk.
dan [Tue, 28 May 2013 10:52:22 +0000 (10:52 +0000)] 
Merge autoconf-package branch with trunk.

FossilOrigin-Name: a72f50ef76a5f8a3d5a6a758ec88009c12127f06

12 years agoAdd the "dist" target to main.mk. For building the amalgamation autoconf package. autoconf-package
dan [Mon, 27 May 2013 18:37:33 +0000 (18:37 +0000)] 
Add the "dist" target to main.mk. For building the amalgamation autoconf package.

FossilOrigin-Name: 3fdc8b56493350fc4854fb1eaefe29ac87784f91

12 years agoAdd the files used to build the amalgamation-autoconf package.
dan [Mon, 27 May 2013 17:19:58 +0000 (17:19 +0000)] 
Add the files used to build the amalgamation-autoconf package.

FossilOrigin-Name: 048865e8fdd2bef6b43b6cebd45fae94c8a1ab20

12 years agoWhen writing to an FTS table, take an exclusive shared-cache lock on the %_segdir...
dan [Mon, 27 May 2013 10:11:53 +0000 (10:11 +0000)] 
When writing to an FTS table, take an exclusive shared-cache lock on the %_segdir table before writing. Otherwise, an xCommit() call may report an SQLITE_LOCKED error.

FossilOrigin-Name: 3cd2da42e9403b1e6243ad53f3f2bbf89c0fb9b0

12 years agoSet _XOPEN_SOURCE to 600 so that fchmod() will (hopefully) work on FreeBSD.
drh [Fri, 24 May 2013 12:47:26 +0000 (12:47 +0000)] 
Set _XOPEN_SOURCE to 600 so that fchmod() will (hopefully) work on FreeBSD.

FossilOrigin-Name: 61a10452399db28cd5ea4ba9d416b87a34c2eddb

12 years agoFix harmless compiler warnings in the shell.
drh [Fri, 24 May 2013 11:57:50 +0000 (11:57 +0000)] 
Fix harmless compiler warnings in the shell.

FossilOrigin-Name: 9e2c17c5358b156b588542dbba38da7fedf5302b

12 years agoAdd OGC GeoPackage files to the magic.txt database.
drh [Thu, 23 May 2013 20:52:16 +0000 (20:52 +0000)] 
Add OGC GeoPackage files to the magic.txt database.

FossilOrigin-Name: dab6a32847ce17f12e3a2b09a3567945b2154f67

12 years agoHave the "make fulltest" command run the "mmap" permutation test.
dan [Thu, 23 May 2013 10:15:46 +0000 (10:15 +0000)] 
Have the "make fulltest" command run the "mmap" permutation test.

FossilOrigin-Name: 82ad373f85aa0a87d24c6dbb2ea7dca8c5aff56a

12 years agoAvoid unnecessary calls to FCNTL_SIZE_HINT. Return an error to the user if the file...
dan [Thu, 23 May 2013 10:13:18 +0000 (10:13 +0000)] 
Avoid unnecessary calls to FCNTL_SIZE_HINT. Return an error to the user if the file-control invoked by "PRAGMA mmap_size" returns a value other than SQLITE_OK or SQLITE_NOTFOUND.

FossilOrigin-Name: 40cfde8b4a59a09e52e62f9f029f8d3b32eb15fa

12 years agoCause the mmap_size PRAGMA to immediately change the mmap space if the
drh [Thu, 23 May 2013 01:40:53 +0000 (01:40 +0000)] 
Cause the mmap_size PRAGMA to immediately change the mmap space if the
database connection is already active.  In particular, reducing mmap_size
will immediately free up process address space.

FossilOrigin-Name: 761177927cb51e4f5e66061ca39cf37edbe8346b

12 years agoVersion 3.7.17 version-3.7.17
drh [Mon, 20 May 2013 00:56:22 +0000 (00:56 +0000)] 
Version 3.7.17

FossilOrigin-Name: 118a3b35693b134d56ebd780123b7fd6f1497668

12 years agoRemove a stray tab character from the transitive_closure extension source code.
drh [Fri, 17 May 2013 20:16:41 +0000 (20:16 +0000)] 
Remove a stray tab character from the transitive_closure extension source code.

FossilOrigin-Name: 7a9aa21c3506a10ab9465540e81071b39bca447d

12 years agoFix a bug in SQLITE_TRACE_SIZE_LIMIT that was introduced by
drh [Fri, 17 May 2013 17:15:34 +0000 (17:15 +0000)] 
Fix a bug in SQLITE_TRACE_SIZE_LIMIT that was introduced by
check-in [1a1cf5aa86734c8].  That check-in was to remove harmless
compiler warnings.  So once again, we have introduced a real bug
into SQLite by attempting to eliminate a harmless compiler warning.

FossilOrigin-Name: cec2bcb45aa3f0438e19381ac863f0f876a1d1ad

12 years agoIn test file test_syscall.c, include sqliteInt.h before any tcl or system include...
dan [Fri, 17 May 2013 16:41:15 +0000 (16:41 +0000)] 
In test file test_syscall.c, include sqliteInt.h before any tcl or system include files. This ensures that the magical defines in sqliteInt.h really do enable large file support (and set things up so that sizeof(off_t)==8).

FossilOrigin-Name: 0f355bb17f256c6322e63a95835a67949aa48fb3

12 years agoUse sum() instead of total() in mptest/multiwrite01.test too.
drh [Fri, 17 May 2013 12:52:58 +0000 (12:52 +0000)] 
Use sum() instead of total() in mptest/multiwrite01.test too.

FossilOrigin-Name: d0c2288c723e276957318be433e25746811b0ff7

12 years agoUse sum() instead of total() in the mptest/crash01.test script.
drh [Fri, 17 May 2013 12:51:49 +0000 (12:51 +0000)] 
Use sum() instead of total() in the mptest/crash01.test script.

FossilOrigin-Name: 8ba0fc98115f05ebed7ea945e156379c39e92de2

12 years agoAdd extra "PRAGMA mmap_size = N" statements to mmap1.test and mmap2.test.
dan [Fri, 17 May 2013 12:25:00 +0000 (12:25 +0000)] 
Add extra "PRAGMA mmap_size = N" statements to mmap1.test and mmap2.test.

FossilOrigin-Name: cec0a06c17435d5a35e76b52d6901ecda98f9916

12 years agoIn os_unix.c and os_win.c, initialize the default mmap-limit of a new file descriptor...
dan [Fri, 17 May 2013 12:10:52 +0000 (12:10 +0000)] 
In os_unix.c and os_win.c, initialize the default mmap-limit of a new file descriptor to the current global default mmap-limit, not the current global maximum allowable mmap-limit.

FossilOrigin-Name: 1def4ea3a02afc19648f4cd928b247f8fa55da80

12 years agoFix minor test script issues causing releasetest.tcl to fail.
dan [Thu, 16 May 2013 19:15:07 +0000 (19:15 +0000)] 
Fix minor test script issues causing releasetest.tcl to fail.

FossilOrigin-Name: d8ded9d8a1052885ce223c70efa55c0dd8b9920e

12 years agoFix a typo in Makefile.in preventing compilation with the --disable-amalgamation...
dan [Thu, 16 May 2013 18:33:06 +0000 (18:33 +0000)] 
Fix a typo in Makefile.in preventing compilation with the --disable-amalgamation option.

FossilOrigin-Name: 8ffbefe7d72d25984440c0e7c92a5e9c472ed55e

12 years agoSeveral releasetest.tcl related fixes to test cases. No code changes.
dan [Thu, 16 May 2013 14:28:47 +0000 (14:28 +0000)] 
Several releasetest.tcl related fixes to test cases. No code changes.

FossilOrigin-Name: e97d744ba1138e6c4c1fc657c32f4391ea7479f1

12 years agoFix compilation with SQLITE_OMIT_WAL on Win32.
mistachkin [Thu, 16 May 2013 12:41:49 +0000 (12:41 +0000)] 
Fix compilation with SQLITE_OMIT_WAL on Win32.

FossilOrigin-Name: 6d45a79fb18dcd305cc41c525060e42f2402bd77

12 years agoIn sqlite3_close_v2(), do not attempt to roll back a transaction if there exist activ...
dan [Thu, 16 May 2013 11:57:28 +0000 (11:57 +0000)] 
In sqlite3_close_v2(), do not attempt to roll back a transaction if there exist active statement objects. Any open transaction will be rolled back when the last of these statement objects is finalized.

FossilOrigin-Name: d11e76072a17fe833b87595d9d79f2c4b0b09cb3

12 years agoTreat identifiers in the HAVING clause the same as in the WHERE clause.
drh [Thu, 16 May 2013 01:02:45 +0000 (01:02 +0000)] 
Treat identifiers in the HAVING clause the same as in the WHERE clause.
Only consider AS names from the result set to match if there are no other
matches.  Continuation of the fix for [2500cdb9be05].  This check-in
fixes a bug found by [http://www.sqlite.org/sqllogictest/ | SqlLogicTest]
during release testing for version 3.7.17.

FossilOrigin-Name: 9ffff3d05226bbd01a0745dd0a511776358253c0

12 years agoApply compilation fix from [a58af81483] to the other makefiles as well.
mistachkin [Wed, 15 May 2013 20:35:13 +0000 (20:35 +0000)] 
Apply compilation fix from [a58af81483] to the other makefiles as well.

FossilOrigin-Name: 7e76889d675e4c646158f7f9188d25f155c18876

12 years agoFixes to allow testfixture to be compiled with SQLITE_OMIT_VIRTUAL_TABLE defined.
dan [Wed, 15 May 2013 18:34:17 +0000 (18:34 +0000)] 
Fixes to allow testfixture to be compiled with SQLITE_OMIT_VIRTUAL_TABLE defined.

FossilOrigin-Name: 00231fb0127960d700de3549e34e82f8ec1b5819

12 years agoThe sqlite3ExprCollSeq() function can no longer be called while parse
drh [Wed, 15 May 2013 17:47:12 +0000 (17:47 +0000)] 
The sqlite3ExprCollSeq() function can no longer be called while parse
the schema, so remove the code path inside of sqlite3ExprCollSeq() that
dealt with that case.

FossilOrigin-Name: 867b3e3b29a357f68e48f0898bf323c5dd0575a4

12 years agoMerge the shared-cache-fixes branch into trunk.
drh [Wed, 15 May 2013 17:08:46 +0000 (17:08 +0000)] 
Merge the shared-cache-fixes branch into trunk.

FossilOrigin-Name: 5cc1cc55d28a73d390d51fdf6f2c026f1cab1d75

12 years agoExtra test for commit [6dae62c4e5].
dan [Wed, 15 May 2013 16:24:46 +0000 (16:24 +0000)] 
Extra test for commit [6dae62c4e5].

FossilOrigin-Name: b10b9e758b171b0f514592bba70c3ecd17c8c47f

12 years agoAdd main.c to the list of files compiled with SQLITE_TEST defined when building testf...
dan [Wed, 15 May 2013 16:16:25 +0000 (16:16 +0000)] 
Add main.c to the list of files compiled with SQLITE_TEST defined when building testfixture.

FossilOrigin-Name: a58af81483a5facb09d2a80385fc8815b259a10d

12 years agoFix the sharedA.test module so that it does not attempt to run TCL callbacks shared-cache-fixes
drh [Wed, 15 May 2013 16:08:33 +0000 (16:08 +0000)] 
Fix the sharedA.test module so that it does not attempt to run TCL callbacks
on a different thread from where the interpreter was originally created.

FossilOrigin-Name: 65ff754e3521aa8ee9135d235166cac2a8f57ebd

12 years agoDo not run sharedA.test if the system is not threadsafe.
dan [Wed, 15 May 2013 15:53:52 +0000 (15:53 +0000)] 
Do not run sharedA.test if the system is not threadsafe.

FossilOrigin-Name: d484eaf8d6dfaf2c1065b93b2a52a6db91c09fa4

12 years agoMerge latest trunk changes with this branch.
dan [Wed, 15 May 2013 15:42:14 +0000 (15:42 +0000)] 
Merge latest trunk changes with this branch.

FossilOrigin-Name: 47dd65a890955f333d431e275f3f4d95d34a5ba5

12 years agoWhen loading a database schema that contains an index definition that includes a...
dan [Wed, 15 May 2013 15:16:50 +0000 (15:16 +0000)] 
When loading a database schema that contains an index definition that includes a COLLATE clause for which the collation sequence is unavailable, do not assume that that index uses BINARY instead. Fix for [0fc59f908b].

FossilOrigin-Name: 6dae62c4e505a9a1a22c2771ef3e1921407c4748

12 years agoAdd the rot13.c loadable extension.
drh [Wed, 15 May 2013 13:05:03 +0000 (13:05 +0000)] 
Add the rot13.c loadable extension.

FossilOrigin-Name: 8f9bd8e7a88eb11fb17d29954fa4b8c2840a5019

12 years agoWhen closing a connection, avoid tripping active cursors belonging to a different...
dan [Wed, 15 May 2013 10:21:50 +0000 (10:21 +0000)] 
When closing a connection, avoid tripping active cursors belonging to a different shared-cache client. Also, if sqlite3_close() is called while there are still active statements belonging to the connection, return SQLITE_BUSY and do not roll back any active transaction.

FossilOrigin-Name: 6071b7cce067c807e040283fc4b7449dc6eca498

12 years agoMerge together the fork in this branch.
drh [Tue, 14 May 2013 23:13:41 +0000 (23:13 +0000)] 
Merge together the fork in this branch.

FossilOrigin-Name: 164e3d4da20cc16d2a04d602b5a8229e0db99d9d

12 years agoFix an assert() in unlockBtreeIfUnused() so that it checks for the existance
drh [Tue, 14 May 2013 23:12:06 +0000 (23:12 +0000)] 
Fix an assert() in unlockBtreeIfUnused() so that it checks for the existance
of an untripped cursor, not for the existance of any cursor at all.

FossilOrigin-Name: a6f851d0fe01d8c8d44a2fe0b716ff7a5194c63b

12 years agoAvoid deleting a b-tree "has-content" vector belonging to another shared-cache connec...
dan [Tue, 14 May 2013 20:36:31 +0000 (20:36 +0000)] 
Avoid deleting a b-tree "has-content" vector belonging to another shared-cache connection from within sqlite3_close().

FossilOrigin-Name: 93462df78247f5634b9f53752cf80056bbfe9aac

12 years agoCandidate fixes for problems revealed by notify2.test. Notify2.test is still failing...
dan [Mon, 13 May 2013 18:23:15 +0000 (18:23 +0000)] 
Candidate fixes for problems revealed by notify2.test. Notify2.test is still failing at this point.

FossilOrigin-Name: ea0428f9b6e63066e7444a2ba2f8c12a2e3ab7e4

12 years agoAdd assert()s to the implementation of xRead() in the built-in VFSes to
drh [Thu, 9 May 2013 18:12:40 +0000 (18:12 +0000)] 
Add assert()s to the implementation of xRead() in the built-in VFSes to
verify that the offset parameter is always non-negative.

FossilOrigin-Name: cf5c3642247fdd34d87f0368594cd7b8f081636a

12 years agoDo not move WHERE clause terms inside OR expressions that are contained
drh [Thu, 9 May 2013 14:20:11 +0000 (14:20 +0000)] 
Do not move WHERE clause terms inside OR expressions that are contained
within an ON clause of a LEFT JOIN.  Fix for ticket [f2369304e47167e3e].

FossilOrigin-Name: 1128575d0ab24f7023a0f6e6ce4828b9a09a7c6c

12 years agoRefine and reform all Windows OSTRACE macro usage. Replace all usage of sqlite3TestE...
mistachkin [Thu, 9 May 2013 00:40:13 +0000 (00:40 +0000)] 
Refine and reform all Windows OSTRACE macro usage.  Replace all usage of sqlite3TestErrorName() with sqlite3ErrName() and add missing return codes.

FossilOrigin-Name: 610425f19008b8b5d4bf027c8b14d97ec3115a54

12 years agoFix a couple of harmless compiler warnings in the fts3_tokenize virtual
drh [Wed, 8 May 2013 17:06:28 +0000 (17:06 +0000)] 
Fix a couple of harmless compiler warnings in the fts3_tokenize virtual
table.

FossilOrigin-Name: 1fa8c457394c94864f7584e4c893ec09e685fba4

12 years agoMake sure the ORDER BY collating sequences are compatible with the
drh [Wed, 8 May 2013 16:57:48 +0000 (16:57 +0000)] 
Make sure the ORDER BY collating sequences are compatible with the
comparison collations before using the merge algorithm for compound
SELECT statements.  Fix for ticket [6709574d2a8d8].

FossilOrigin-Name: ce853a75068073d6acc8bec0819505a22c4c7e69

12 years agoFix the wholenumber virtual table so that it returns higher costs for
drh [Wed, 8 May 2013 14:20:28 +0000 (14:20 +0000)] 
Fix the wholenumber virtual table so that it returns higher costs for
unconstrained usage.  Cherrypick from [ceff8955020cd13].

FossilOrigin-Name: 7227b61512a534645c73883c2e37b4e647592e5d

12 years agoMake sure the ORDER BY collating sequences are compatible with the tkt-6709574
drh [Tue, 7 May 2013 17:49:08 +0000 (17:49 +0000)] 
Make sure the ORDER BY collating sequences are compatible with the
comparison collations before using the merge algorithm for compound
SELECT statements.  Candidate fix for ticket [6709574d2a8d8].

FossilOrigin-Name: fc3630cdef6e2cdbfb4e7b373d1a094753e55016

12 years agoModify the fts3tokenize table implementation so that it does not use the SQL function...
dan [Tue, 7 May 2013 12:16:48 +0000 (12:16 +0000)] 
Modify the fts3tokenize table implementation so that it does not use the SQL function fts3_tokenizer. The user may have installed an authorizer callback that prohibits this.

FossilOrigin-Name: 0ba67b64de258883e4c43db09e131bb67083855e

12 years agoIn the command-line shell, output the elements of the schema in the order
drh [Mon, 6 May 2013 21:01:06 +0000 (21:01 +0000)] 
In the command-line shell, output the elements of the schema in the order
that they appear in the sqlite_master table.  This is necessary in some
cases to make the schema parsable.

FossilOrigin-Name: e5b3cd747bb0b484e38b8611a81925e2cc144435

12 years agoIn the command-line shell, make sure the output of dot-commands goes to
drh [Mon, 6 May 2013 20:28:54 +0000 (20:28 +0000)] 
In the command-line shell, make sure the output of dot-commands goes to
the same redirected output stream as the result of queries.
Ticket [2f96536e7ff7dba]

FossilOrigin-Name: b72d365920dbe45e61d8b1cff708a8858c2b3e33

12 years agoAdd an assert() to fts3_expr.c in order to silence a clang warning.
drh [Mon, 6 May 2013 14:57:48 +0000 (14:57 +0000)] 
Add an assert() to fts3_expr.c in order to silence a clang warning.

FossilOrigin-Name: d8dc2c5fb554eb5898ddc8d703c6a360af7fe023

12 years agoMake sure the authorizer callback gets a valid pointer to "ROWID" for the
drh [Mon, 6 May 2013 13:22:50 +0000 (13:22 +0000)] 
Make sure the authorizer callback gets a valid pointer to "ROWID" for the
column-name parameter when doing an UPDATE that changes the rowid.
Fix for ticket [0eb70d77cb05bb2272].

FossilOrigin-Name: 26a59bb88d4082758eb281b365b57f9a0c059d89

12 years agoAdd magic numbers for Bentley Systems application files.
drh [Fri, 3 May 2013 20:08:16 +0000 (20:08 +0000)] 
Add magic numbers for Bentley Systems application files.

FossilOrigin-Name: 9314b08099e7ac99a507a4799f2c6cdd6d597abb

12 years agoAllocate meta(8) in the header as the "application ID" and add the
drh [Fri, 3 May 2013 15:23:24 +0000 (15:23 +0000)] 
Allocate meta(8) in the header as the "application ID" and add the
"PRAGMA application_id" command to query and set it.

FossilOrigin-Name: b2efe4f225adc5f4c2e3080bf459cc52fff82e18

12 years agoMinor fixes for compilation with SQLITE_OMIT_WAL defined.
dan [Thu, 2 May 2013 17:37:31 +0000 (17:37 +0000)] 
Minor fixes for compilation with SQLITE_OMIT_WAL defined.

FossilOrigin-Name: b81e87e72b976e7157a53a50abc5422e2a6c4c39

12 years agoFix comments in the magic number file. application-id
drh [Wed, 1 May 2013 20:40:46 +0000 (20:40 +0000)] 
Fix comments in the magic number file.

FossilOrigin-Name: 5a500848d2fa96fc7397e2acb64d5ae6551b5b1e

12 years agoPreserve the application-ID across VACUUM. Updates to the magic number
drh [Wed, 1 May 2013 20:36:23 +0000 (20:36 +0000)] 
Preserve the application-ID across VACUUM.  Updates to the magic number
file.

FossilOrigin-Name: 4a190bea18e156b6fa4dc9f21c3ad32409049603

12 years agoAllocate 4 bytes of unused header space for an "Application ID". Add
drh [Wed, 1 May 2013 19:49:27 +0000 (19:49 +0000)] 
Allocate 4 bytes of unused header space for an "Application ID".  Add
the "PRAGMA application_id" command to set and query this identifier.
Add the "magic.txt" file to show how the posix file command might use
this application id.

FossilOrigin-Name: 28c9e7fdee2471a3026ee05ff591194d5f398131

12 years agoDo not use a transitive constraint to an IN operator where the RHS is a
drh [Wed, 1 May 2013 17:58:35 +0000 (17:58 +0000)] 
Do not use a transitive constraint to an IN operator where the RHS is a
constant if there exists a direct == operator to another table in an outer
loop.

FossilOrigin-Name: faedaeace9c7ed9a8aaf96700caee09db0c0c061

12 years agoAvoid redundant constraint checking due to transitive constraints.
drh [Wed, 1 May 2013 17:22:38 +0000 (17:22 +0000)] 
Avoid redundant constraint checking due to transitive constraints.

FossilOrigin-Name: 329478cbed06f93652de50abdb31a6b41af02b9e

12 years agoUpdate the documentation to explain that when the 3rd parameter to
drh [Tue, 30 Apr 2013 14:25:32 +0000 (14:25 +0000)] 
Update the documentation to explain that when the 3rd parameter to
sqlite3_bind_text() and friends is NULL the result is to bind a NULL
SQL value.  Ticket [19b44e35753ba]

FossilOrigin-Name: bd92de0e8d922b96513c5d431493800dda7e7562

12 years agoMake sure extra parentheses around subqueries in the FROM clause are harmless.
drh [Tue, 30 Apr 2013 14:06:57 +0000 (14:06 +0000)] 
Make sure extra parentheses around subqueries in the FROM clause are harmless.
Ticket [28c6e830f239ea5].

FossilOrigin-Name: 1c79569226db3d5a73e65a35877635ea8b478866

12 years agoAdd the #ifdefs for sqlite3ErrName() to sqliteInt.h as well. winOsTrace
mistachkin [Tue, 30 Apr 2013 07:58:15 +0000 (07:58 +0000)] 
Add the #ifdefs for sqlite3ErrName() to sqliteInt.h as well.

FossilOrigin-Name: 400fc4c37ff34e84f5a129a083a567bda840278e

12 years agoDefine the sqlite3ErrName() function only when necessary. More robust handling of...
mistachkin [Tue, 30 Apr 2013 07:54:42 +0000 (07:54 +0000)] 
Define the sqlite3ErrName() function only when necessary. More robust handling of unknown return codes.

FossilOrigin-Name: e47cd314371c2be6e00d96392b3892a7f3015f98

12 years agoImprove the error message issued when an FTS query exceeds the maximum allowable...
dan [Mon, 29 Apr 2013 18:07:37 +0000 (18:07 +0000)] 
Improve the error message issued when an FTS query exceeds the maximum allowable tree depth.

FossilOrigin-Name: f480b1fe6012f36c59cd0525efdc6df74143ccd0

12 years agoFix an off-by-one in the code for limiting the depth of FTS expression trees.
dan [Mon, 29 Apr 2013 17:12:06 +0000 (17:12 +0000)] 
Fix an off-by-one in the code for limiting the depth of FTS expression trees.

FossilOrigin-Name: 72ac73189c3577740a77d2ea2fc7118391c0703f

12 years agoMerge mmap test fix from trunk.
mistachkin [Mon, 29 Apr 2013 09:20:06 +0000 (09:20 +0000)] 
Merge mmap test fix from trunk.

FossilOrigin-Name: 95811877fdcbede4f61269ff1c7a6d9554f669cd

12 years agoFix mmap1.test so that it passes on windows as well as unix.
dan [Mon, 29 Apr 2013 09:17:42 +0000 (09:17 +0000)] 
Fix mmap1.test so that it passes on windows as well as unix.

FossilOrigin-Name: 52417eac3ecaec2dbbde170334358f5ddbd32501

12 years agoAdjust a WAL test result due to changes in the corresponding return code name.
mistachkin [Mon, 29 Apr 2013 08:58:00 +0000 (08:58 +0000)] 
Adjust a WAL test result due to changes in the corresponding return code name.

FossilOrigin-Name: 9272009f7932b3f18006f73776e36b8ef8770d3e

12 years agoMerge updates from trunk.
mistachkin [Mon, 29 Apr 2013 08:56:49 +0000 (08:56 +0000)] 
Merge updates from trunk.

FossilOrigin-Name: 3a245a832d4843802c3c57f8cda3e4e1d0d52622

12 years agoUpdate 'fuzzerfault' test for its new module loading command. Fix several test names...
mistachkin [Mon, 29 Apr 2013 07:01:23 +0000 (07:01 +0000)] 
Update 'fuzzerfault' test for its new module loading command.  Fix several test names in 'io.test' and make sure the database gets closed between tests.

FossilOrigin-Name: e81e9ca11db09424dd310bbc91686a5daa618cb1

12 years agoMore refinements to Windows OSTRACE usage. Replace all usage of sqlite3TestErrorName...
mistachkin [Mon, 29 Apr 2013 03:09:10 +0000 (03:09 +0000)] 
More refinements to Windows OSTRACE usage.  Replace all usage of sqlite3TestErrorName() with sqlite3ErrName() and add missing return codes.

FossilOrigin-Name: 05ba5e23fcc5da416d47a8ad5e667ed6a0c7a34a

12 years agoInitial work on reforming usage of OSTRACE by the Windows VFS.
mistachkin [Sun, 28 Apr 2013 01:44:43 +0000 (01:44 +0000)] 
Initial work on reforming usage of OSTRACE by the Windows VFS.

FossilOrigin-Name: b347b5d1a01301f44e6fd20ee03a9529ffd25788

12 years agoRemove spellfix virtual table documentation from the source tree.
drh [Sat, 27 Apr 2013 18:06:40 +0000 (18:06 +0000)] 
Remove spellfix virtual table documentation from the source tree.
Reference the separate documentation on the website instead.

FossilOrigin-Name: adcf78909ff9064b6e3c4dd15ccd3245c8cf270b

12 years agoUntested fix for building on VxWorks.
drh [Sat, 27 Apr 2013 12:13:29 +0000 (12:13 +0000)] 
Untested fix for building on VxWorks.

FossilOrigin-Name: f14d55cf358b0392d3b8cd61dc85f43a610a8edf

12 years agoFix a formatting typo in a comment. No changes to code.
drh [Fri, 26 Apr 2013 19:33:34 +0000 (19:33 +0000)] 
Fix a formatting typo in a comment.  No changes to code.

FossilOrigin-Name: 7a97226ffe174349e7113340f5354c4e44bd9738

12 years agoAvoid unnecessarily reseting the pager cache after committing a transaction that...
dan [Fri, 26 Apr 2013 18:36:58 +0000 (18:36 +0000)] 
Avoid unnecessarily reseting the pager cache after committing a transaction that takes advantage of the SQLITE_IOCAP_ATOMIC related optimization.

FossilOrigin-Name: c47144e98c0a0f9e09780c945de10c57b6a495ea

12 years agoAvoid using posix_fallocate() in WAL mode, as it is not supported by all file-systems.
dan [Fri, 26 Apr 2013 17:00:52 +0000 (17:00 +0000)] 
Avoid using posix_fallocate() in WAL mode, as it is not supported by all file-systems.

FossilOrigin-Name: 1bbb4be1a25947f75b2b0c6f368199016b6f7de3

12 years agoAvoid using posix_fallocate() in WAL mode, as it is not supported by all file-systems. avoid-fallocate
dan [Fri, 26 Apr 2013 16:09:29 +0000 (16:09 +0000)] 
Avoid using posix_fallocate() in WAL mode, as it is not supported by all file-systems.

FossilOrigin-Name: 9c7523dabf4aee609287732ce787c9b9a9087e7f

12 years agoUpdate documentation with new hyperlinks. No changes to code.
drh [Fri, 26 Apr 2013 15:55:57 +0000 (15:55 +0000)] 
Update documentation with new hyperlinks.  No changes to code.

FossilOrigin-Name: 640eb54ad6aac9bc7109cba167389a9bcec3f21e

12 years agoRebalance FTS expressions after parsing to limit recursion during evaluation. Avoid...
dan [Fri, 26 Apr 2013 14:13:15 +0000 (14:13 +0000)] 
Rebalance FTS expressions after parsing to limit recursion during evaluation. Avoid recursion when deleting FTS expression trees. Enforce a limit (currently 12) on the depth of an expression tree.

FossilOrigin-Name: 49d23ef61f9ce2ffe13237b51a0e01b0b46ba96b

12 years agoMerge another trunk change. fts3-expr-rebalance
dan [Fri, 26 Apr 2013 14:04:28 +0000 (14:04 +0000)] 
Merge another trunk change.

FossilOrigin-Name: 2648966f17bc1b783ef6d3b2368c613f6e02945e

12 years agoFix harmless compiler warnings in the FTS expression parser.
drh [Fri, 26 Apr 2013 13:14:19 +0000 (13:14 +0000)] 
Fix harmless compiler warnings in the FTS expression parser.

FossilOrigin-Name: 3c78af8c535e16518f18733325f4cd1df7ec8282

12 years agoReduce the default SQLITE_MAX_MMAP_SIZE slightly so that it fits in a
drh [Fri, 26 Apr 2013 12:08:29 +0000 (12:08 +0000)] 
Reduce the default SQLITE_MAX_MMAP_SIZE slightly so that it fits in a
signed 32-bit integer.

FossilOrigin-Name: 460752b8575320163d2659bb7ff24aff41e2bb66

12 years agoMerge latest trunk changes.
dan [Fri, 26 Apr 2013 06:58:06 +0000 (06:58 +0000)] 
Merge latest trunk changes.

FossilOrigin-Name: 4d08e74d34e82f3be588049c9576a5c1008435e7

12 years agoRebalance FTS expressions after parsing to limit recursion during evaluation. Avoid...
dan [Thu, 25 Apr 2013 20:34:02 +0000 (20:34 +0000)] 
Rebalance FTS expressions after parsing to limit recursion during evaluation. Avoid recursion when deleting FTS expression trees. Enforce a limit on the depth of an expression tree.

FossilOrigin-Name: f968d43f80cc2f236e7d09ba1e8278343e2b6976