]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
12 years agoFix compiler warnings about unused code in spellfix. Fix the editDist3Core() spellfix-matchlen
drh [Mon, 16 Jul 2012 22:16:44 +0000 (22:16 +0000)] 
Fix compiler warnings about unused code in spellfix.  Fix the editDist3Core()
routine to return the matchlen in characters instead of bytes.

FossilOrigin-Name: f96d4e7bd7d81b05b1490bf5d79c77ff583e444c

12 years agoFix a bug in the phonetic-hash routine in spellfix1: Even if the first character...
dan [Mon, 16 Jul 2012 14:52:49 +0000 (14:52 +0000)] 
Fix a bug in the phonetic-hash routine in spellfix1: Even if the first character of a word is deemed to be "silent", do not apply the special handling intended for the first character of each word to the second.

FossilOrigin-Name: 6333b42dd292e8e567c3fce1c371d6f58021af88

12 years agoMerge trunk changes.
dan [Mon, 16 Jul 2012 10:25:54 +0000 (10:25 +0000)] 
Merge trunk changes.

FossilOrigin-Name: 90df64ab803001819b3ebbb41d596aedbd9961b1

12 years agoIf a specific database is nominated as part of a "PRAGMA integrity_check" or "PRAGMA...
dan [Mon, 16 Jul 2012 10:06:12 +0000 (10:06 +0000)] 
If a specific database is nominated as part of a "PRAGMA integrity_check" or "PRAGMA quick_check" command, search for problems in the nominated database only. i.e. "PRAGMA main.quick_check" now only scans the main database, not all attached databases as before.

FossilOrigin-Name: 4353e40b74f577f224f190c429bfe03cf6a5c6d6

12 years agoAdd the "matchlen" column to the spellfix1 virtual table.
dan [Fri, 13 Jul 2012 19:26:34 +0000 (19:26 +0000)] 
Add the "matchlen" column to the spellfix1 virtual table.

FossilOrigin-Name: f24b9d87f6b0e8b4d26669d5c1191f9280ba14a3

12 years agoUpdate test_spellfix.c with latest changes.
dan [Fri, 13 Jul 2012 16:15:20 +0000 (16:15 +0000)] 
Update test_spellfix.c with latest changes.

FossilOrigin-Name: cba2a65870481df213e006b07e74f0ca19d2d57c

13 years agoSetup the necessary library paths for cross-compilation with MSVC.
mistachkin [Sat, 30 Jun 2012 22:22:34 +0000 (22:22 +0000)] 
Setup the necessary library paths for cross-compilation with MSVC.

FossilOrigin-Name: 7fac56ed9feda819e66070bd5e06db8cad77e8bd

13 years agoSimplify usage of some linker options in the MSVC makefile.
mistachkin [Sat, 30 Jun 2012 19:24:09 +0000 (19:24 +0000)] 
Simplify usage of some linker options in the MSVC makefile.

FossilOrigin-Name: 03016020664a7459cb01c8ac9016b20af8a416bb

13 years agoMake use of the predefined nmake command macro CC when possible instead of the litera...
mistachkin [Sat, 30 Jun 2012 16:22:05 +0000 (16:22 +0000)] 
Make use of the predefined nmake command macro CC when possible instead of the literal string 'cl.exe'.  Improve support for cross-compilation.  Eliminate problematic use of double quotes in macro preprocessing expressions.

FossilOrigin-Name: 6c88229aa39775a7438befebe1640a30affc72c8

13 years agoAnother changes to the shell in support of SQLITE_OMIT_AUTOINIT.
drh [Wed, 27 Jun 2012 16:41:31 +0000 (16:41 +0000)] 
Another changes to the shell in support of SQLITE_OMIT_AUTOINIT.

FossilOrigin-Name: 3b4f5add04259eec145066312bcd532182cc339c

13 years agoUpdate the shell so that it works with SQLITE_OMIT_FLOATING_POINT and
drh [Wed, 27 Jun 2012 16:12:27 +0000 (16:12 +0000)] 
Update the shell so that it works with SQLITE_OMIT_FLOATING_POINT and
SQLITE_OMIT_AUTOINIT.

FossilOrigin-Name: 95c0c995fd18c2de907a39fc52299c8abe502b68

13 years agoRemove code that was incorrectly changing SQLITE_MISUSE errors into SQLITE_OK
drh [Thu, 21 Jun 2012 17:21:52 +0000 (17:21 +0000)] 
Remove code that was incorrectly changing SQLITE_MISUSE errors into SQLITE_OK
in sqlite3_finalize().

FossilOrigin-Name: d5e6880279210ca63e2d5e7f6d009f30566f1242

13 years agoAdd the sqlite3_close_v2() interface (from the deferred-close branch) that
drh [Thu, 21 Jun 2012 15:51:42 +0000 (15:51 +0000)] 
Add the sqlite3_close_v2() interface (from the deferred-close branch) that
allows close operations to happen out-of-order in bindings to
garbage-collected langauges.

FossilOrigin-Name: fb8893abeefabe9de44e34dcf4327764481189f5

13 years agoMerge changes to trunk that ensure that floating point values are exactly
drh [Thu, 21 Jun 2012 15:22:04 +0000 (15:22 +0000)] 
Merge changes to trunk that ensure that floating point values are exactly
preserved on a round-trip through ".dump".

FossilOrigin-Name: 4cebd60704f92bb3689c126f46feadc3516d3d45

13 years agoFix spelling typo.
mistachkin [Thu, 21 Jun 2012 15:12:30 +0000 (15:12 +0000)] 
Fix spelling typo.

FossilOrigin-Name: 6131a0002fea5d6f3b416a63a466bf2b69d1e12d

13 years agoRemove more references to OS/2.
mistachkin [Thu, 21 Jun 2012 15:09:20 +0000 (15:09 +0000)] 
Remove more references to OS/2.

FossilOrigin-Name: eebd594d6bd09c77727620a818d7dc0b091f55b4

13 years agoDisable the atof1.test module when compiling on MSVC. floating-point-conversions
drh [Thu, 21 Jun 2012 15:02:26 +0000 (15:02 +0000)] 
Disable the atof1.test module when compiling on MSVC.

FossilOrigin-Name: 0f706acfc7181f2714a06b2c232677ebeede3a44

13 years agoIncrease the version number to 3.7.14 and rerun autoconf
drh [Thu, 21 Jun 2012 14:31:40 +0000 (14:31 +0000)] 
Increase the version number to 3.7.14 and rerun autoconf

FossilOrigin-Name: 8c9f564a2a07603f1852ccb45089fe84591cf68f

13 years agoFix the SQLITE_ZERO_MALLOC compile-time option so that it works on windows.
drh [Thu, 21 Jun 2012 14:25:17 +0000 (14:25 +0000)] 
Fix the SQLITE_ZERO_MALLOC compile-time option so that it works on windows.

FossilOrigin-Name: b80bc52f8964569f948c5671e9d58e4d199a08dc

13 years agoMerge several compiler compatibility fixes to trunk.
mistachkin [Thu, 21 Jun 2012 14:05:15 +0000 (14:05 +0000)] 
Merge several compiler compatibility fixes to trunk.

FossilOrigin-Name: d3d491a5461e21d84c6425977b80deedc7fa8a3a

13 years agoRemove support for OS/2 from the source tree.
drh [Thu, 21 Jun 2012 13:00:37 +0000 (13:00 +0000)] 
Remove support for OS/2 from the source tree.

FossilOrigin-Name: ff828c67e5d3c1afa5bc3a304b9c6fcc7b3ea5fa

13 years agoWhen linking to the MSVC runtime library, use the debug library when necessary. ...
mistachkin [Thu, 21 Jun 2012 04:21:35 +0000 (04:21 +0000)] 
When linking to the MSVC runtime library, use the debug library when necessary.  Also, link dynamically to the MSVC runtime library when required (e.g. WinRT) or requested via the USE_CRT_DLL build macro.

FossilOrigin-Name: f6be345ad5ff739bd64114489930bab970e7972e

13 years agoAdd tests to check that the "unicode61" and "icu" tokenizers both identify white...
dan [Tue, 19 Jun 2012 06:35:39 +0000 (06:35 +0000)] 
Add tests to check that the "unicode61" and "icu" tokenizers both identify white-space codepoints outside the ASCII range.

FossilOrigin-Name: bfb2d4730cbbe18fb940e72f4fde9122d550734e

13 years agoMove variable declaration to fix compilation with MSVC.
mistachkin [Tue, 19 Jun 2012 04:36:48 +0000 (04:36 +0000)] 
Move variable declaration to fix compilation with MSVC.

FossilOrigin-Name: d45f7a013f05fe7603d5e6d02df0e6bab2c7ffd8

13 years agoFix an incorrect testcase for the round() function. All tests are passing
drh [Tue, 19 Jun 2012 03:59:30 +0000 (03:59 +0000)] 
Fix an incorrect testcase for the round() function.  All tests are passing
now, including new real->text->real round-trip tests.

FossilOrigin-Name: 963eb24f737f184d5fcdcd92ebf90466f818cfd8

13 years agoRound-trip conversions of real->text->real are now lossless on x64 with GCC.
drh [Tue, 19 Jun 2012 03:35:05 +0000 (03:35 +0000)] 
Round-trip conversions of real->text->real are now lossless on x64 with GCC.
Untested on other platforms so far.  Still a corner-case problem with round().

FossilOrigin-Name: fd7bd4a59361be41b10522abc212cf56fb5e35b4

13 years agoImproved accuracy on text-to-real and real-to-text conversions. Most
drh [Tue, 19 Jun 2012 03:11:25 +0000 (03:11 +0000)] 
Improved accuracy on text-to-real and real-to-text conversions.  Most
conversions now round-trip correctly.  Still need to fix some corner
cases.

FossilOrigin-Name: 8ecffca900cd6a8922001fd458a266ce8c83fb66

13 years agoImproved rounding accuracy on test-to-float conversions.
drh [Tue, 19 Jun 2012 00:45:16 +0000 (00:45 +0000)] 
Improved rounding accuracy on test-to-float conversions.

FossilOrigin-Name: 699b792c6a0e989994549959b11ec1bfad8bbd92

13 years agoFix a problem with identifying white-space characters outside of the ascii range...
dan [Mon, 18 Jun 2012 20:52:32 +0000 (20:52 +0000)] 
Fix a problem with identifying white-space characters outside of the ascii range in the ICU tokenizer.

FossilOrigin-Name: 892b74116a3b23268895b96433d18ef00c1433d8

13 years agoAllow the SQLITE_API macro to apply to the sqlite3_win32_sleep function. compiler-compat
mistachkin [Mon, 18 Jun 2012 17:15:29 +0000 (17:15 +0000)] 
Allow the SQLITE_API macro to apply to the sqlite3_win32_sleep function.

FossilOrigin-Name: 21266c68afb067ff40062df1e8b383dfd247c17b

13 years agoFix a few compilation issues that can occur with certain compilers (e.g. GCC 2.95...
mistachkin [Mon, 18 Jun 2012 08:00:56 +0000 (08:00 +0000)] 
Fix a few compilation issues that can occur with certain compilers (e.g. GCC 2.95.3, MSVC).

FossilOrigin-Name: f970a3de61fe2ebaf1778c4a3383cfdc52299162

13 years agoIn Lemon, when comparing the output to the *.h file to see if it has changed,
drh [Sat, 16 Jun 2012 15:26:31 +0000 (15:26 +0000)] 
In Lemon, when comparing the output to the *.h file to see if it has changed,
make sure that the proposed new output and the preexisting output are the
same size before deciding that they are the same.

FossilOrigin-Name: 0c2fb18d25217ada7e75dcab8b342bbc632875d8

13 years agoFix compiler warning. deferred-close
mistachkin [Fri, 15 Jun 2012 20:42:43 +0000 (20:42 +0000)] 
Fix compiler warning.

FossilOrigin-Name: 37d9bc061d5ecfe37ccbd6f559986d7ae0449179

13 years agoVersion 3.7.13 version-3.7.13
drh [Mon, 11 Jun 2012 02:05:22 +0000 (02:05 +0000)] 
Version 3.7.13

FossilOrigin-Name: f5b5a13f7394dc143aa136f1d4faba6839eaa6dc

13 years agoAdd missing targets for fts3_unicode.lo and fts3_unicode2.lo to Makefile.in.
dan [Sat, 9 Jun 2012 18:52:29 +0000 (18:52 +0000)] 
Add missing targets for fts3_unicode.lo and fts3_unicode2.lo to Makefile.in.

FossilOrigin-Name: 0ae0ce630a2e11f81dca50a9cfb04c4a41c03b2d

13 years agoFix an obscure memory leak in FTS3 that can come about when two memory
drh [Fri, 8 Jun 2012 14:01:53 +0000 (14:01 +0000)] 
Fix an obscure memory leak in FTS3 that can come about when two memory
allocations are immediately adjacent to one another.

FossilOrigin-Name: 025227be5495f950c466dfabac140cba69e498be

13 years agoFix a problem in vtab1.test causing it to fail when run with any permutation that...
dan [Fri, 8 Jun 2012 11:48:40 +0000 (11:48 +0000)] 
Fix a problem in vtab1.test causing it to fail when run with any permutation that executes SQL within the tcl "sqlite3" command.

FossilOrigin-Name: 006db555260273209933371d17afb33d557baa68

13 years agoDocumentation and evidence mark updates. Remove a redundant assert().
drh [Thu, 7 Jun 2012 17:57:23 +0000 (17:57 +0000)] 
Documentation and evidence mark updates.  Remove a redundant assert().

FossilOrigin-Name: cfcbf9375fddd0aae0dd17bdc76a710ab77ef667

13 years agoFix a problem preventing a shared in-memory database from being attached to a read...
dan [Thu, 7 Jun 2012 17:16:04 +0000 (17:16 +0000)] 
Fix a problem preventing a shared in-memory database from being attached to a read-only connection.

FossilOrigin-Name: 7caca1939ce70d5b14ae8ca8ff6afb62f8aff361

13 years agoAdd the "tokenchars=" and "separators=" options, for customizing the set of character...
dan [Thu, 7 Jun 2012 15:53:48 +0000 (15:53 +0000)] 
Add the "tokenchars=" and "separators=" options, for customizing the set of characters considered to be token separators, to the unicode61 tokenizer.

FossilOrigin-Name: e56fb462aa1f11bb23303ae0dc62815c21e26a52

13 years agoFix a malloc/free mismatch in pager.c (sqlite3_free() called on a buffer allocated...
dan [Thu, 7 Jun 2012 07:24:04 +0000 (07:24 +0000)] 
Fix a malloc/free mismatch in pager.c (sqlite3_free() called on a buffer allocated by sqlite3DbMalloc()).

FossilOrigin-Name: 506008f000ba4af0b35da023b8c52f7a3f5033bd

13 years agoProvide an (undocumented) compile-time option to disable the page cache
drh [Thu, 7 Jun 2012 02:35:29 +0000 (02:35 +0000)] 
Provide an (undocumented) compile-time option to disable the page cache
overflow counter, in order to avoid a mutex.

FossilOrigin-Name: 208825cd830748a2ca456affc57be75bbe618e47

13 years agoFix harmless Clang warnings.
drh [Wed, 6 Jun 2012 23:59:36 +0000 (23:59 +0000)] 
Fix harmless Clang warnings.

FossilOrigin-Name: 31fe1985ad6be5eb04bbe85da378c2385c503ceb

13 years agoFix an #if that is applicable to WinRT, even thought it is currently disabled by...
mistachkin [Wed, 6 Jun 2012 23:25:33 +0000 (23:25 +0000)] 
Fix an #if that is applicable to WinRT, even thought it is currently disabled by another #if.

FossilOrigin-Name: baa8b7830779d5797e210a2e057181413412e152

13 years agoMerge the changes need to compile on WinRT into trunk.
drh [Wed, 6 Jun 2012 23:23:23 +0000 (23:23 +0000)] 
Merge the changes need to compile on WinRT into trunk.

FossilOrigin-Name: 61360ca6ca3448477d5c662d3642beef6dd2079e

13 years agoDisable FTS unicode61 by default. It is enabled by specifying compile time option...
dan [Wed, 6 Jun 2012 19:51:27 +0000 (19:51 +0000)] 
Disable FTS unicode61 by default. It is enabled by specifying compile time option SQLITE_ENABLE_FTS4_UNICODE61.

FossilOrigin-Name: eccd6b6580637084495b80e9232262188ba0cf8d

13 years agoHave the FTS unicode61 strip out diacritics when tokenizing text. This can be disable...
dan [Wed, 6 Jun 2012 19:30:38 +0000 (19:30 +0000)] 
Have the FTS unicode61 strip out diacritics when tokenizing text. This can be disabled by specifying the tokenizer option "remove_diacritics=0".

FossilOrigin-Name: 790f76a5898dad1a955d40edddf11f7b0fec0ccd

13 years agoAvoid resetting the shared-cache schema when on of the connections using
drh [Wed, 6 Jun 2012 19:01:13 +0000 (19:01 +0000)] 
Avoid resetting the shared-cache schema when on of the connections using
the shared cache closes.  Delay resetting the schema until the last connection
closes.

FossilOrigin-Name: 635e3a762ddeb1f952f66a08c1d4d53e3f42c9eb

13 years agoMake sure the Index.azColl pointers do not point to connection-specific memory. shared-schema
drh [Wed, 6 Jun 2012 10:56:22 +0000 (10:56 +0000)] 
Make sure the Index.azColl pointers do not point to connection-specific memory.
Also, remove an unnecessary reinitialization to sqlite3.pDfltColl.

FossilOrigin-Name: c469850b2eb61a63150cc5fc7d2fe98f0b5abffb

13 years agoMerge the latest trunk changes into shared-schema branch. Also fix a C99-ism
drh [Tue, 5 Jun 2012 19:20:03 +0000 (19:20 +0000)] 
Merge the latest trunk changes into shared-schema branch.  Also fix a C99-ism
in that branch.

FossilOrigin-Name: 42338e9e6979bb497823527f8f39e96f63623c59

13 years agoAdd sqlite3_quota_ferror() and sqlite3_quota_file_available() interfaces to
drh [Tue, 5 Jun 2012 13:56:15 +0000 (13:56 +0000)] 
Add sqlite3_quota_ferror() and sqlite3_quota_file_available() interfaces to
test_quota.c.  Change sqlite3_quota_fwrite() to use a const input buffer.

FossilOrigin-Name: 61669c95859e187618fb2fb4249306a947ae8d26

13 years agoCorrect docs regarding use of malloc and free by the Windows VFS layer. No changes...
mistachkin [Tue, 5 Jun 2012 02:24:54 +0000 (02:24 +0000)] 
Correct docs regarding use of malloc and free by the Windows VFS layer.  No changes to code.

FossilOrigin-Name: 8e8590a4dc8d9b0fa12ce288cdfd0146223fee6c

13 years agoWhen not compiling for WinRT, skip using a couple Win32 APIs unavailable when compili...
mistachkin [Mon, 4 Jun 2012 05:18:32 +0000 (05:18 +0000)] 
When not compiling for WinRT, skip using a couple Win32 APIs unavailable when compiling with MinGW.

FossilOrigin-Name: eb29e2d93984c29756430b55c08501d7e1783df0

13 years agoRevert sqlite3_close() to legacy behavior. Create a new sqlite3_close_v2()
drh [Sat, 2 Jun 2012 17:09:46 +0000 (17:09 +0000)] 
Revert sqlite3_close() to legacy behavior.  Create a new sqlite3_close_v2()
interface that exhibits the deferred-close behavior.  This minimizes the
chance of breakage in legacy apps.

FossilOrigin-Name: c4b8621125ce77308b06692d92f70586b10055a9

13 years agoThe sqlite3_close() interface returns SQLITE_OK even if there are outstanding
drh [Sat, 2 Jun 2012 14:32:21 +0000 (14:32 +0000)] 
The sqlite3_close() interface returns SQLITE_OK even if there are outstanding
sqlite3_stmt and sqlite3_backup objects.  The connection becomes a zombie.
Resource deallocation is deferred until the last sqlite3_stmt or
sqlite3_backup object closes.  This is intended to help SQLite play nicer
with garbage collectors.

FossilOrigin-Name: e276a02b7f54e804caa553dca99023416a415e1c

13 years agoUpdate several APIs to enable compilation with newer revisions of WinRT.
mistachkin [Thu, 31 May 2012 22:12:26 +0000 (22:12 +0000)] 
Update several APIs to enable compilation with newer revisions of WinRT.

FossilOrigin-Name: 54de739f056749b53b198f6b074d9e649520cf00

13 years agoAvoid calling fchown() if the process is not running as root.
drh [Thu, 31 May 2012 13:10:49 +0000 (13:10 +0000)] 
Avoid calling fchown() if the process is not running as root.

FossilOrigin-Name: 70c419a434be77b042a23174483d6a411899eb5d

13 years agoLink the NDEBUG macro to SQLITE_DEBUG so that when SQLITE_DEBUG is defined,
drh [Tue, 29 May 2012 19:25:20 +0000 (19:25 +0000)] 
Link the NDEBUG macro to SQLITE_DEBUG so that when SQLITE_DEBUG is defined,
NDEBUG is automatically undefined an dwhen SQLITE_DEBUG is undefined
NDEBUG is automatically defined.

FossilOrigin-Name: 07935d10d341fe6265cfd3b09e2c4ef4005c4826

13 years agoFix a typo (a repeated "or") in the documentation. No changes to code.
drh [Tue, 29 May 2012 17:59:11 +0000 (17:59 +0000)] 
Fix a typo (a repeated "or") in the documentation.  No changes to code.

FossilOrigin-Name: 6fec6cf1fbac881a33a35ea99aac2f5f1cf27c2a

13 years agoChanges some NDEBUG macros to SQLITE_DEBUG in os_unix.c. The is a notational
drh [Tue, 29 May 2012 17:02:40 +0000 (17:02 +0000)] 
Changes some NDEBUG macros to SQLITE_DEBUG in os_unix.c.  The is a notational
change only and really should not effect the code.

FossilOrigin-Name: 8e3025709e4954803919c84f3a810c7c63c60601

13 years agoIn the RTree module, make sure all double-to-float conversions round in a
drh [Tue, 29 May 2012 00:39:50 +0000 (00:39 +0000)] 
In the RTree module, make sure all double-to-float conversions round in a
direction to increase the size of element bounding boxes.

FossilOrigin-Name: 0abdc2903d8b3f86cad426e1bac2a959d1b1f7dd

13 years agoRefactor the float-to-double rounding routines so that they compile without rtree-32bit-rounding
drh [Tue, 29 May 2012 00:30:43 +0000 (00:30 +0000)] 
Refactor the float-to-double rounding routines so that they compile without
warnings.

FossilOrigin-Name: f607ad27c1ede27af24dbee10ca867c8f7761ee3

13 years agoFix the MSVC makefile so that it works with the unicode61 tokenizer.
drh [Mon, 28 May 2012 20:22:16 +0000 (20:22 +0000)] 
Fix the MSVC makefile so that it works with the unicode61 tokenizer.

FossilOrigin-Name: 480158143be1256cbe4dba52ef1a5b96e172b38c

13 years agoSimplification to the coordinate rounding logic in RTree.
drh [Mon, 28 May 2012 20:16:42 +0000 (20:16 +0000)] 
Simplification to the coordinate rounding logic in RTree.

FossilOrigin-Name: df24072de27555c6b530b02e821ea8b066c554fc

13 years agoWhen converting 64-bit floating point coordinates to 32-bit in RTree, take
drh [Mon, 28 May 2012 19:19:25 +0000 (19:19 +0000)] 
When converting 64-bit floating point coordinates to 32-bit in RTree, take
care to round the values such that the size of the bounding box is enlarged.

FossilOrigin-Name: f4e8ff03eae70334632455a867859cfcc25682be

13 years agoUpdates regarding URI query parameters and shared cache in the documentation
drh [Mon, 28 May 2012 17:51:53 +0000 (17:51 +0000)] 
Updates regarding URI query parameters and shared cache in the documentation
derived from comments in sqlite.h.in.  No changes to code.

FossilOrigin-Name: bcc72d413e8db5fe8b32147ac22d406e2cd6bb60

13 years agoFix Makefile.in so that it works with the new unicode tokenizer of FTS3/4.
drh [Mon, 28 May 2012 15:32:09 +0000 (15:32 +0000)] 
Fix Makefile.in so that it works with the new unicode tokenizer of FTS3/4.
Update the version number to 3.7.13.

FossilOrigin-Name: b8720d0416b8d4af7d131f1ddc3d280d196a9eda

13 years agoAdd the mode=memory option to URI filenames, which when present forces the
drh [Mon, 28 May 2012 13:58:00 +0000 (13:58 +0000)] 
Add the mode=memory option to URI filenames, which when present forces the
database to be an in-memory database.  This enables named in-memory databases.

FossilOrigin-Name: 651520fa84ee0c488bef660bab9865500309d5e9

13 years agoOmit the fts3 unicode character class routines from the build if fts3/4
drh [Mon, 28 May 2012 12:22:00 +0000 (12:22 +0000)] 
Omit the fts3 unicode character class routines from the build if fts3/4
is disabled.

FossilOrigin-Name: c00bb5d4601efc15933f222349e96a043b610a19

13 years agoMerge into trunk the changes that permit :memory: databases to use shared cache.
drh [Sun, 27 May 2012 22:42:57 +0000 (22:42 +0000)] 
Merge into trunk the changes that permit :memory: databases to use shared cache.

FossilOrigin-Name: e72179f3a43e4df36b7c2955eaacce6c804272c6

13 years agoHave user interfaces report out the filename of in-memory databases as an shared-cache-memdb
drh [Sun, 27 May 2012 01:19:04 +0000 (01:19 +0000)] 
Have user interfaces report out the filename of in-memory databases as an
empty string, as it always has.  This simplifies the changes.

FossilOrigin-Name: 595dfdbffefb2598cba89980f885289d1c5f5833

13 years agoOnly allow :memory: databases to share cache if there are created using a
drh [Sat, 26 May 2012 20:08:49 +0000 (20:08 +0000)] 
Only allow :memory: databases to share cache if there are created using a
URI filename.  This minimizes the risk of breakages in legacy applications
that have shared-cache enabled but also use :memory: databases which they
expect to keep separate.

FossilOrigin-Name: e3ad61e0308a8442c2bdb7cdb3465576cd39ed4a

13 years agoMerge fts4-unicode branch with trunk.
dan [Sat, 26 May 2012 18:42:21 +0000 (18:42 +0000)] 
Merge fts4-unicode branch with trunk.

FossilOrigin-Name: 25ba1f84f2b98d50ac1e2b9849b59ee902c2cca7

13 years agoIf SQLITE_DISABLE_FTS3_UNICODE is defined, do not build the "unicode61" tokenizer. fts4-unicode
dan [Sat, 26 May 2012 18:28:14 +0000 (18:28 +0000)] 
If SQLITE_DISABLE_FTS3_UNICODE is defined, do not build the "unicode61" tokenizer.

FossilOrigin-Name: e71495a817b479bc23c5403d99255e3f098eb054

13 years agoEnable the use of shared cache for an in-memory database, so that separate
drh [Sat, 26 May 2012 18:06:38 +0000 (18:06 +0000)] 
Enable the use of shared cache for an in-memory database, so that separate
database connections can share the same in-memory database.

FossilOrigin-Name: 4590e433f2a595bb80fb061024b0a3d2ca25b7b2

13 years agoChange the format of the tables used by sqlite3FtsUnicodeTolower() to make them a...
dan [Sat, 26 May 2012 17:57:02 +0000 (17:57 +0000)] 
Change the format of the tables used by sqlite3FtsUnicodeTolower() to make them a little smaller.

FossilOrigin-Name: b89d3834f6690073fca0fc22c18afa1fb280ea7d

13 years agoAdd coverage tests for fts3_unicode.c.
dan [Sat, 26 May 2012 16:22:56 +0000 (16:22 +0000)] 
Add coverage tests for fts3_unicode.c.

FossilOrigin-Name: 07d3ea8a3cb179fab6c48934fc6751f53b507d36

13 years agoAdd fault-injection tests that use the unicode61 tokenizer. Fix a problem revealed...
dan [Sat, 26 May 2012 15:44:08 +0000 (15:44 +0000)] 
Add fault-injection tests that use the unicode61 tokenizer. Fix a problem revealed by the same.

FossilOrigin-Name: ed28c48a3dd7e766e60db0d96ef5460bf9913e6b

13 years agoChange the name of the "unicode" tokenizer to "unicode61" to emphasize that the case...
dan [Sat, 26 May 2012 14:54:50 +0000 (14:54 +0000)] 
Change the name of the "unicode" tokenizer to "unicode61" to emphasize that the case folding and separator-character identification routines are based on unicode version 6.1.

FossilOrigin-Name: 8f3e60aa2253f21bcee5d03982cfdd7f16c00060

13 years agoAdd special fast paths to sqlite3FtsUnicodeTolower() and Isalnum() for codepoints...
dan [Fri, 25 May 2012 19:50:12 +0000 (19:50 +0000)] 
Add special fast paths to sqlite3FtsUnicodeTolower() and Isalnum() for codepoints in the ASCII range.

FossilOrigin-Name: cf7b25d47687635a04f4347d45f135c686b9d758

13 years agoFix comments in generated file fts3_unicode2.c.
dan [Fri, 25 May 2012 18:48:48 +0000 (18:48 +0000)] 
Fix comments in generated file fts3_unicode2.c.

FossilOrigin-Name: 3dc567ef4702d9a63d78d11ff705cb7f7359f7a6

13 years agoAdd an experimental tokenizer to fts4 - "unicode". This tokenizer works in the same...
dan [Fri, 25 May 2012 17:50:19 +0000 (17:50 +0000)] 
Add an experimental tokenizer to fts4 - "unicode". This tokenizer works in the same way except that it understands unicode "simple case folding" and recognizes all characters not classified as "Letters" or "Numbers" by unicode as token separators.

FossilOrigin-Name: 0c13570ec78c6887103dc99b81b470829fa28385

13 years agoUse the new test suite helper procedure 'get_pwd' to query the current directory...
mistachkin [Tue, 22 May 2012 19:25:51 +0000 (19:25 +0000)] 
Use the new test suite helper procedure 'get_pwd' to query the current directory from tests.

FossilOrigin-Name: 1dd01e408161f5c1ab6b4fd449bee147d7e00744

13 years agoMerge the 3.7.12.1 trunk changes into the WinRT branch.
drh [Tue, 22 May 2012 17:39:00 +0000 (17:39 +0000)] 
Merge the 3.7.12.1 trunk changes into the WinRT branch.

FossilOrigin-Name: b9ed0b26debd225a4530eb17d25b857e8e883a85

13 years agoVersion 3.7.12.1 version-3.7.12.1
drh [Tue, 22 May 2012 02:45:53 +0000 (02:45 +0000)] 
Version 3.7.12.1

FossilOrigin-Name: 6d326d44fd1d626aae0e8456e5fa2049f1ce0789

13 years agoIncrease the version number to 3.7.12.1. Minor changes to test scripts.
drh [Mon, 21 May 2012 22:45:35 +0000 (22:45 +0000)] 
Increase the version number to 3.7.12.1.  Minor changes to test scripts.

FossilOrigin-Name: 5519cc5ef471e32a59995a34be811b46478dca1e

13 years agoMerge the nested aggregate query fix (ticket [c2ad16f997ee9c8ed]) unto trunk.
drh [Mon, 21 May 2012 21:26:17 +0000 (21:26 +0000)] 
Merge the nested aggregate query fix (ticket [c2ad16f997ee9c8ed]) unto trunk.

FossilOrigin-Name: e459c3360ba2543e52b5736d7a84f1ce67388d5c

13 years agoMark and always-true conditional as such. Add the fuzz-oss1.test test module.
drh [Mon, 21 May 2012 21:20:57 +0000 (21:20 +0000)] 
Mark and always-true conditional as such.  Add the fuzz-oss1.test test module.

FossilOrigin-Name: bdc01fd0fa0c15efbb32bf18527c71e3e4dc48ed

13 years agoCandidate fix for the nested aggregate query problem of ticket
drh [Mon, 21 May 2012 20:13:39 +0000 (20:13 +0000)] 
Candidate fix for the nested aggregate query problem of ticket
[c2ad16f997ee9c8e].

FossilOrigin-Name: f3dd1fafd4718558de1f06139419a8c560d727f5

13 years agoConvert the NameContext object from using u8 booleans to using individual
drh [Mon, 21 May 2012 19:11:25 +0000 (19:11 +0000)] 
Convert the NameContext object from using u8 booleans to using individual
bits in a single u8 as its booleans.  This change might become a basis for
a fix for [c2ad16f997ee9c].

FossilOrigin-Name: 722260969306778029b738402f22e3c154dd77a1

13 years agoMake sure lookaside memory allocations are unusable after they are freed.
drh [Mon, 21 May 2012 16:59:16 +0000 (16:59 +0000)] 
Make sure lookaside memory allocations are unusable after they are freed.

FossilOrigin-Name: 3869aef6348018f584137f36f6924193a790e52f

13 years agoMove some #defines earlier in the file for test_quota.c in order to avoid
drh [Mon, 21 May 2012 12:25:42 +0000 (12:25 +0000)] 
Move some #defines earlier in the file for test_quota.c in order to avoid
a use before definition.

FossilOrigin-Name: fda1ea0bee0fe283e0ed5710058fdfc403519bac

13 years agoAllow the sqlite3ExplainBegin function to be compiled by MSVC.
mistachkin [Mon, 21 May 2012 05:02:22 +0000 (05:02 +0000)] 
Allow the sqlite3ExplainBegin function to be compiled by MSVC.

FossilOrigin-Name: 18555128f59b59d8c67446cd778ece9a181b30a5

13 years agoChange the ".schema" command of the shell to output VIEWs in declared order,
drh [Mon, 21 May 2012 03:15:06 +0000 (03:15 +0000)] 
Change the ".schema" command of the shell to output VIEWs in declared order,
rather than alphabetical order, so that nested views will appear in the
correct order.  Fix for ticket [cfe84e86839e59e8].

FossilOrigin-Name: e092ff69e25363f97495adc622f4250041ca9708

13 years agoFix a test case so that it works even with very long pathnames.
drh [Sun, 20 May 2012 20:23:19 +0000 (20:23 +0000)] 
Fix a test case so that it works even with very long pathnames.

FossilOrigin-Name: ecd4a0635909a0127ed7b802af9ea9041e56ddf1

13 years agoFix a test case in the shell1.test script so that it works even for very
drh [Sun, 20 May 2012 20:14:18 +0000 (20:14 +0000)] 
Fix a test case in the shell1.test script so that it works even for very
long pathnames.

FossilOrigin-Name: 0c0a03987cc144fa017b0a0f9cf45c36e74fbd9f

13 years agoMerge updates from trunk.
mistachkin [Thu, 17 May 2012 21:04:26 +0000 (21:04 +0000)] 
Merge updates from trunk.

FossilOrigin-Name: 224c65e4a5c6ede076c364c93933cedd17f1e70b

13 years agoReturn SQLITE_MISUSE if an application attempts to register a virtual table module...
dan [Wed, 16 May 2012 14:29:11 +0000 (14:29 +0000)] 
Return SQLITE_MISUSE if an application attempts to register a virtual table module with the same name as an existing module.

FossilOrigin-Name: ea2cd55e098b21cd8997fd6c1978131d3ef2fab4

13 years agoAvoid using sqlite3ResetAllSchemasOfConnection() purely for its side-effects.
drh [Wed, 16 May 2012 01:24:34 +0000 (01:24 +0000)] 
Avoid using sqlite3ResetAllSchemasOfConnection() purely for its side-effects.

FossilOrigin-Name: 5587c73badc07d3e01a7c5c5964e178b5112dd24

13 years agoThe former sqlite3ResetInternalSchema() routine was really two different
drh [Tue, 15 May 2012 18:28:27 +0000 (18:28 +0000)] 
The former sqlite3ResetInternalSchema() routine was really two different
routines, selected by parameter, each with a confused mission.  So split
this routine up into three separate smaller routines, calling each
separately as needed.  Hopefully this will make further refactoring and
schema reset collateral damage containment easier.

FossilOrigin-Name: aa0c3493d3647d7efe527067e9fcccefda8e3008