]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
9 years agoFixes for compiler warnings and errors in the makefiles. Rename the json
drh [Fri, 21 Aug 2015 20:37:12 +0000 (20:37 +0000)] 
Fixes for compiler warnings and errors in the makefiles.  Rename the
one test script to json101.test.

FossilOrigin-Name: 9ff6ccde5f26f18073587c320290570854ffc833

9 years agoChange the name of the json loadable extension to "json1.c", in anticipation
drh [Fri, 21 Aug 2015 20:12:43 +0000 (20:12 +0000)] 
Change the name of the json loadable extension to "json1.c", in anticipation
of having future major changes to the interface.

FossilOrigin-Name: d0d4bec9e3d8829a2d488f2742f1650214fa716a

9 years agoAdd the fullkey column to both json_each() and json_tree().
drh [Fri, 21 Aug 2015 20:02:48 +0000 (20:02 +0000)] 
Add the fullkey column to both json_each() and json_tree().

FossilOrigin-Name: 15dd99431e9ddd0fbdbb8dcc921687b0c6d26a29

9 years agoMerge header file fixes from trunk.
drh [Fri, 21 Aug 2015 19:56:45 +0000 (19:56 +0000)] 
Merge header file fixes from trunk.

FossilOrigin-Name: 7c2713e98ffb5f0d96eb7de9514eab43f0712011

9 years agoAdd a missing #define for sqlite3_vsnprintf to sqlite3ext.h.
drh [Fri, 21 Aug 2015 19:53:06 +0000 (19:53 +0000)] 
Add a missing #define for sqlite3_vsnprintf to sqlite3ext.h.

FossilOrigin-Name: da3c9df09c46564353218d0163e378b880a3ce62

9 years agoReserve the SQLITE_IOERR_VNODE error code name.
drh [Fri, 21 Aug 2015 17:39:35 +0000 (17:39 +0000)] 
Reserve the SQLITE_IOERR_VNODE error code name.

FossilOrigin-Name: 53b593fcae178f2e08f758ae6fd100869f771bfd

9 years agoAdd the json_tree() virtual table.
drh [Fri, 21 Aug 2015 17:33:11 +0000 (17:33 +0000)] 
Add the json_tree() virtual table.

FossilOrigin-Name: 08c36e45f0d3a7b89caf823652d7543b76ac802a

9 years agoMerge in trunk fixes for table-valued functions.
drh [Fri, 21 Aug 2015 17:16:22 +0000 (17:16 +0000)] 
Merge in trunk fixes for table-valued functions.

FossilOrigin-Name: 67375f32d931351964d75d20671c4a6d8a294d7d

9 years agoFix a corner-case bug in table-valued functions. Update the generate_series()
drh [Fri, 21 Aug 2015 17:14:48 +0000 (17:14 +0000)] 
Fix a corner-case bug in table-valued functions.  Update the generate_series()
virtual table to increase the performance estimate penalty for being
underspecified.

FossilOrigin-Name: 552bc9cb88bbe54b4cf5fdf66d1217e7a2047110

9 years agoFix typo in comment. No changes to code.
drh [Fri, 21 Aug 2015 12:37:49 +0000 (12:37 +0000)] 
Fix typo in comment.  No changes to code.

FossilOrigin-Name: 7b8d17dd840f64dac9a018a4547a97de799e94ab

9 years agoMerge the latest changes from trunk, including the table-valued function
drh [Thu, 20 Aug 2015 23:39:38 +0000 (23:39 +0000)] 
Merge the latest changes from trunk, including the table-valued function
implementation.

FossilOrigin-Name: 10c444322f05ea8b83247f96a140bf3dbc4e9448

9 years agoCompiler-warning fixes in the sqldiff.exe utility.
drh [Thu, 20 Aug 2015 23:33:09 +0000 (23:33 +0000)] 
Compiler-warning fixes in the sqldiff.exe utility.

FossilOrigin-Name: 64d13339d44d1b7ec6768a33421f2138cb7872d8

9 years agoFix a couple C99-isms that cause compile errors on MSVC.
drh [Thu, 20 Aug 2015 23:28:18 +0000 (23:28 +0000)] 
Fix a couple C99-isms that cause compile errors on MSVC.

FossilOrigin-Name: bc577fe6cbbe5385d81d6fa0f3c34bb1c833f0d6

9 years agoFix corner-case memory management issues in table-valued functions. Change
drh [Thu, 20 Aug 2015 23:21:34 +0000 (23:21 +0000)] 
Fix corner-case memory management issues in table-valued functions.  Change
virtual table handling so that if xDestroy is missing the table is
eponymous only even if xCreate is present.

FossilOrigin-Name: 774e6a14b124bbae4da0e188b62aee9ffb8c3745

9 years agoSkip calling the virtual table xDestroy method when it is null.
mistachkin [Thu, 20 Aug 2015 21:14:31 +0000 (21:14 +0000)] 
Skip calling the virtual table xDestroy method when it is null.

FossilOrigin-Name: b73ad305a6b7cb84fe0a1efb334b8e4592e21c40

9 years agoFix compiler warnings in the sqldiff tool seen with MSVC.
mistachkin [Thu, 20 Aug 2015 21:09:32 +0000 (21:09 +0000)] 
Fix compiler warnings in the sqldiff tool seen with MSVC.

FossilOrigin-Name: 072279d458fbb74a812a9ee723041d6b7c662a88

9 years agoFix stray variable declaration for C89.
mistachkin [Thu, 20 Aug 2015 20:21:06 +0000 (20:21 +0000)] 
Fix stray variable declaration for C89.

FossilOrigin-Name: 17eb7f18cb76170e109977a94b259b763cd86c47

9 years agoCorrectly handle empty function argument lists on table-valued functions.
drh [Thu, 20 Aug 2015 20:13:37 +0000 (20:13 +0000)] 
Correctly handle empty function argument lists on table-valued functions.

FossilOrigin-Name: a7acc7878b8bb8e27a0da67b2dbb7bd51df4859b

9 years agoAdd support for table-valued functions in the FROM clause implemented as
drh [Thu, 20 Aug 2015 19:55:58 +0000 (19:55 +0000)] 
Add support for table-valued functions in the FROM clause implemented as
virtual tables.

FossilOrigin-Name: 9b718b06b156163ae34115b6c5f6d163a7ee7cc3

9 years agoPrevent the series.c extension from loading on older versions of SQLite that table-valued-functions
drh [Thu, 20 Aug 2015 18:28:46 +0000 (18:28 +0000)] 
Prevent the series.c extension from loading on older versions of SQLite that
do not support xCreate==NULL.

FossilOrigin-Name: 3efc79427ef4686142d074cfe5b2f0a33af19b2e

9 years agoMake SQLITE_BUSY_SNAPSHOT and SQLITE_BUSY_RECOVERY retryable, just as a plain
drh [Thu, 20 Aug 2015 17:18:32 +0000 (17:18 +0000)] 
Make SQLITE_BUSY_SNAPSHOT and SQLITE_BUSY_RECOVERY retryable, just as a plain
SQLITE_BUSY is.

FossilOrigin-Name: fd13dd950d99fd1996860f7a5f220fdc89180194

9 years agoFix a typo in series.c.
dan [Thu, 20 Aug 2015 16:16:37 +0000 (16:16 +0000)] 
Fix a typo in series.c.

FossilOrigin-Name: 23db7f50f14801c2cf56c006d7c7f593908b7158

9 years agoFix the path lookup for objects so that it can handle quoted identifier
drh [Wed, 19 Aug 2015 23:02:49 +0000 (23:02 +0000)] 
Fix the path lookup for objects so that it can handle quoted identifier
names and non-alphanumerics in the identifier.

FossilOrigin-Name: 87f5873004f69396baa7c67937342b4e32f79bda

9 years agoAdd the json_each(JSON,PATH) table-valued-function.
drh [Wed, 19 Aug 2015 22:47:17 +0000 (22:47 +0000)] 
Add the json_each(JSON,PATH) table-valued-function.

FossilOrigin-Name: 3335ac17bbcb09dc915173d69bf42048f84ad563

9 years agoMerge the table-valued-function rowid fix.
drh [Wed, 19 Aug 2015 19:26:13 +0000 (19:26 +0000)] 
Merge the table-valued-function rowid fix.

FossilOrigin-Name: a06a6392bd48baa8b9bac2624869c0cc7da7e779

9 years agoFix eponymous virtual tables so that they do not automatically make the first
drh [Wed, 19 Aug 2015 19:01:28 +0000 (19:01 +0000)] 
Fix eponymous virtual tables so that they do not automatically make the first
column the rowid.  Enhance the generate_series virtual table to support rowid.

FossilOrigin-Name: a325a08599759471047e234ef9cfcc3cb110aafd

9 years agoMerge support for table-valued functions.
drh [Wed, 19 Aug 2015 18:31:11 +0000 (18:31 +0000)] 
Merge support for table-valued functions.

FossilOrigin-Name: 96a5d44d9fcb7b159c04630ad2d956fe27df5a43

9 years agoImproved comments on the generate_series virtual table. Test cases for
drh [Wed, 19 Aug 2015 18:19:49 +0000 (18:19 +0000)] 
Improved comments on the generate_series virtual table.  Test cases for
ORDER BY rowid DESC with generate_series.

FossilOrigin-Name: fef44c37f31ca9fd7891cecdbe95cc46a987067b

9 years agoA list of arguments following a table name translates into equality
drh [Wed, 19 Aug 2015 17:11:37 +0000 (17:11 +0000)] 
A list of arguments following a table name translates into equality
constraints against hidden columns in that table.

FossilOrigin-Name: 40e12cfe4c29475417ba89fb637b4c763cf74016

9 years agoMinor refactor of the SrcList object so that it is able to hold the argument
drh [Wed, 19 Aug 2015 15:20:00 +0000 (15:20 +0000)] 
Minor refactor of the SrcList object so that it is able to hold the argument
list to a table-valued-function in the FROM clause.

FossilOrigin-Name: b919376147597c4b73421abe5788f893baf1560b

9 years agoVirtual table modules with a null xCreate method act as eponymous-only modules -
drh [Wed, 19 Aug 2015 13:54:20 +0000 (13:54 +0000)] 
Virtual table modules with a null xCreate method act as eponymous-only modules -
they cannot be used in a CREATE VIRTUAL TABLE statement.  Add the series.c
extension that implements a postgres-like generate_series virtual table to
demonstrate this capability.

FossilOrigin-Name: c58426dbd5ea8b8440ebcc1214f79fa63d658216

9 years agoMerge changes from trunk.
drh [Wed, 19 Aug 2015 12:52:51 +0000 (12:52 +0000)] 
Merge changes from trunk.

FossilOrigin-Name: dddd792dedf0c73ebe74b4ff8d303e6216c16b6a

9 years agoSimplification to error handling in addModuleArgument() in the virtual table
drh [Wed, 19 Aug 2015 12:45:57 +0000 (12:45 +0000)] 
Simplification to error handling in addModuleArgument() in the virtual table
processing.

FossilOrigin-Name: c573b0a1aa3ba509234f07520fa94d008bcbb330

9 years agoWhen updating a zipvfs database with RBU, set journal_mode=off to prevent the upper...
dan [Wed, 19 Aug 2015 08:34:34 +0000 (08:34 +0000)] 
When updating a zipvfs database with RBU, set journal_mode=off to prevent the upper-level pager from creating a large temporary file.

FossilOrigin-Name: dec14a3980dcf6c61b0b9ac4ba82fa963ac346d4

9 years agoInitial implementation of eponymous virtual table instances.
drh [Wed, 19 Aug 2015 02:32:25 +0000 (02:32 +0000)] 
Initial implementation of eponymous virtual table instances.

FossilOrigin-Name: c1f43a7799a9298abea01b2f8531fc7cdadc4594

9 years agoAdd test file spellfix2.test, which should have been checked in some time ago.
dan [Tue, 18 Aug 2015 19:09:28 +0000 (19:09 +0000)] 
Add test file spellfix2.test, which should have been checked in some time ago.

FossilOrigin-Name: 8599402092537ab3df8926eb900661c12d738d4c

9 years agoFix harmless compiler warning in FTS5.
mistachkin [Tue, 18 Aug 2015 16:32:45 +0000 (16:32 +0000)] 
Fix harmless compiler warning in FTS5.

FossilOrigin-Name: 02448a9fccd4532daa667e4ba6ff1dbb7f68008a

9 years agoComment clarification. No changes to code.
drh [Tue, 18 Aug 2015 12:59:58 +0000 (12:59 +0000)] 
Comment clarification.  No changes to code.

FossilOrigin-Name: 71a966952cf8f1d699cf8362ea3f6204c6e16384

9 years agoInitial implementation of json_set() and json_insert().
drh [Tue, 18 Aug 2015 02:28:03 +0000 (02:28 +0000)] 
Initial implementation of json_set() and json_insert().

FossilOrigin-Name: 4aa49656d98e2894f2faa8963f79462ee6165d40

9 years agoInitial implementation of json_replace().
drh [Mon, 17 Aug 2015 21:22:32 +0000 (21:22 +0000)] 
Initial implementation of json_replace().

FossilOrigin-Name: 3c4bee65d93efc7f03f0f11817a068b02068d37c

9 years agoAdd an initial implementation for json_remove().
drh [Mon, 17 Aug 2015 20:14:19 +0000 (20:14 +0000)] 
Add an initial implementation for json_remove().

FossilOrigin-Name: 2a8267209dbda36a37c1b5f65000b2f763c62341

9 years agoInitial implementation for json_array_length(), json_extract(), and
drh [Mon, 17 Aug 2015 15:17:37 +0000 (15:17 +0000)] 
Initial implementation for json_array_length(), json_extract(), and
json_type().

FossilOrigin-Name: 39983204515837e7bd574cf47918e493acc03d1f

9 years agoAbandon the JSONB format for now. (We may return to it in the future.) Add
drh [Mon, 17 Aug 2015 11:28:03 +0000 (11:28 +0000)] 
Abandon the JSONB format for now.  (We may return to it in the future.)  Add
a function to render a JSON parse.

FossilOrigin-Name: 9703c0aa18ae43375af876474b818e504e1c10a5

9 years agoFix off-by-one error when parsing primitive JSON types "true", "false", and
drh [Sat, 15 Aug 2015 21:29:14 +0000 (21:29 +0000)] 
Fix off-by-one error when parsing primitive JSON types "true", "false", and
"null".

FossilOrigin-Name: 42c15c1e36b5077646fef99028cf12e587a45023

9 years agoAdd a prototype JSON parser.
drh [Sat, 15 Aug 2015 21:25:36 +0000 (21:25 +0000)] 
Add a prototype JSON parser.

FossilOrigin-Name: 789ba487000aa73621a41d115ad5de455ea8ea31

9 years agoMinor fix to the display of oversized KeyInfo structures in the P4 operand
drh [Sat, 15 Aug 2015 16:32:50 +0000 (16:32 +0000)] 
Minor fix to the display of oversized KeyInfo structures in the P4 operand
of Open opcodes in EXPLAIN output.

FossilOrigin-Name: f65a9b4ab2c6f0b7028e16e2a0f83fd6d58ae1cd

9 years agoDuplicate the output of releasetest.tcl into releasetest-out.txt
drh [Fri, 14 Aug 2015 12:53:37 +0000 (12:53 +0000)] 
Duplicate the output of releasetest.tcl into releasetest-out.txt

FossilOrigin-Name: 5e06a9c186f4b7478c73155613de219d702e0241

9 years agoAdd the sqlite3rbu_savestate() function to the rbu extension. To force rbu to save...
dan [Thu, 13 Aug 2015 18:26:09 +0000 (18:26 +0000)] 
Add the sqlite3rbu_savestate() function to the rbu extension. To force rbu to save its state to disk without closing the sqlite3rbu* handle.

FossilOrigin-Name: 851a875ad6b81f90960caf4d03b116afc911858d

9 years agoExperimental code (untested) for a JSONB datatype.
drh [Thu, 13 Aug 2015 13:54:59 +0000 (13:54 +0000)] 
Experimental code (untested) for a JSONB datatype.

FossilOrigin-Name: e3596ac7b1dd5bde3f9cae5781a6806d8d9f7166

9 years agoAvoid invoking system call unlink() directly from RBU code. Use the xDelete method...
dan [Thu, 13 Aug 2015 11:46:21 +0000 (11:46 +0000)] 
Avoid invoking system call unlink() directly from RBU code. Use the xDelete method of the default VFS instead.

FossilOrigin-Name: ee966af8ff79189f8b90f3557dea21059517dfe2

9 years agoAdd the json_object() function.
drh [Wed, 12 Aug 2015 17:23:34 +0000 (17:23 +0000)] 
Add the json_object() function.

FossilOrigin-Name: 414a95f3b79359f167858b2325fd2be223569c66

9 years agoBegin adding an extension that provides JSON SQL functions.
drh [Wed, 12 Aug 2015 16:49:40 +0000 (16:49 +0000)] 
Begin adding an extension that provides JSON SQL functions.

FossilOrigin-Name: dde8afdd8dba1d92560326dca7c1cdfedbe5e070

9 years agoMinor optimization for fts5 API xInst().
dan [Wed, 12 Aug 2015 15:36:58 +0000 (15:36 +0000)] 
Minor optimization for fts5 API xInst().

FossilOrigin-Name: efb7c9c5d0015c8c966f8d6742c05cda82fc146a

9 years agoAdd the xPhraseFirst() and xPhraseNext() fts5 APIs, for faster iteration through...
dan [Wed, 12 Aug 2015 12:11:28 +0000 (12:11 +0000)] 
Add the xPhraseFirst() and xPhraseNext() fts5 APIs, for faster iteration through a single phrases position list. Also optimize xInst() and xInstCount() a bit.

FossilOrigin-Name: f7682435278419829a46bb4cc9b5625d46549e22

9 years agoMerge fixes from the fts5NoWarn branch.
dan [Tue, 11 Aug 2015 14:25:34 +0000 (14:25 +0000)] 
Merge fixes from the fts5NoWarn branch.

FossilOrigin-Name: 61cb2fc6c12810863c965c74e90bc502e20cf810

9 years agoFix compiler warnings and remove unreachable code.
drh [Sat, 8 Aug 2015 23:30:56 +0000 (23:30 +0000)] 
Fix compiler warnings and remove unreachable code.

FossilOrigin-Name: fd5608fb20831f1f1946c8941445b7acc463a143

9 years agoFix an assert() that was in the wrong spot.
drh [Sat, 8 Aug 2015 23:23:33 +0000 (23:23 +0000)] 
Fix an assert() that was in the wrong spot.

FossilOrigin-Name: 962b6cd6bbc1ef82ae98cb2ddf41e7a1116e70f5

9 years agoFix compiler warnings and remove unreachable code.
drh [Sat, 8 Aug 2015 22:47:47 +0000 (22:47 +0000)] 
Fix compiler warnings and remove unreachable code.

FossilOrigin-Name: be190fe7826d157fc5acd84210095725b059e4f6

9 years agoUpdate RBU to avoid repreparing a statement immediately after it is prepared.
dan [Sat, 8 Aug 2015 15:13:08 +0000 (15:13 +0000)] 
Update RBU to avoid repreparing a statement immediately after it is prepared.

FossilOrigin-Name: 1d75a41bb2f7fcd32f9f08768517b814e452e456

9 years agoEnhance the query planner so that it is able to use partial indexes that use
drh [Fri, 7 Aug 2015 20:57:00 +0000 (20:57 +0000)] 
Enhance the query planner so that it is able to use partial indexes that use
AND-connected terms in the WHERE clause.

FossilOrigin-Name: 065765902d2774d7432b9c00ea2efed26e0aaa5e

9 years agoAdd a specially formatted comment to shell.c to make it easier for scripts to edit...
dan [Fri, 7 Aug 2015 20:06:14 +0000 (20:06 +0000)] 
Add a specially formatted comment to shell.c to make it easier for scripts to edit. No code changes.

FossilOrigin-Name: 6d47b35ad10e85f27d1c446586e8c798cce4911d

9 years agoincrease the version number to 3.8.12
drh [Thu, 6 Aug 2015 12:54:13 +0000 (12:54 +0000)] 
increase the version number to 3.8.12

FossilOrigin-Name: e596a6b63f3a18c26352b1b3e67bb282fdec8055

9 years agoFix harmless compiler warnings in FTS5 code. fts5NoWarn
mistachkin [Thu, 6 Aug 2015 03:19:14 +0000 (03:19 +0000)] 
Fix harmless compiler warnings in FTS5 code.

FossilOrigin-Name: 0ddb2532b2daaaf1b0109ac360822f84cb999b7f

9 years agoFix duplicate test numbering in the FTS5 matchinfo tests.
mistachkin [Thu, 6 Aug 2015 03:09:49 +0000 (03:09 +0000)] 
Fix duplicate test numbering in the FTS5 matchinfo tests.

FossilOrigin-Name: 483ebe8989ed7dbe197fe84e3eef6e76fa828e14

9 years agoAdd tests for the matchinfo-like test function. Fix problems found in test and fts5...
dan [Wed, 5 Aug 2015 19:35:59 +0000 (19:35 +0000)] 
Add tests for the matchinfo-like test function. Fix problems found in test and fts5 code by doing so.

FossilOrigin-Name: 9e3aafe44a0813aa2a0c6172fdba1440b8a973ec

9 years agoUpdate the spellfix virtual table extension so that an explicit "top = ?" constraint...
dan [Wed, 5 Aug 2015 15:29:32 +0000 (15:29 +0000)] 
Update the spellfix virtual table extension so that an explicit "top = ?" constraint works even if there is also a "distance < ?" or "distance <= ?" constraint.

FossilOrigin-Name: 0888838371608558f31d5bcb5fed1c8861aa52c1

9 years agoFix some problems in test code detected by cppcheck.
dan [Wed, 5 Aug 2015 08:01:46 +0000 (08:01 +0000)] 
Fix some problems in test code detected by cppcheck.

FossilOrigin-Name: c9ff4ca4a0b44bbb8d6676144ddf77b04426e619

9 years agoRemove all references to "docid" within fts5 source code and comments. Replace with...
dan [Wed, 5 Aug 2015 07:43:46 +0000 (07:43 +0000)] 
Remove all references to "docid" within fts5 source code and comments. Replace with "rowid".

FossilOrigin-Name: dffd358f6cbf575d3b1045b1ce53429d15bade2a

9 years agoAdd new test file fts5_test_mi.c, containing an implementation of a function similar...
dan [Tue, 4 Aug 2015 20:29:00 +0000 (20:29 +0000)] 
Add new test file fts5_test_mi.c, containing an implementation of a function similar to FTS4 matchinfo() for FTS5.

FossilOrigin-Name: 4f9520a9dc9c667b7fda5b0822de2bf48184ac99

9 years agoImprove the usage comment on sqlite3_analyzer: show the available switches.
drh [Tue, 4 Aug 2015 19:06:50 +0000 (19:06 +0000)] 
Improve the usage comment on sqlite3_analyzer: show the available switches.

FossilOrigin-Name: 783f78e39795b2c491c342558ef59f1fc32c2858

9 years agoUpdate the [showdb] program so that the database file is read directly (bypassing...
dan [Tue, 4 Aug 2015 15:29:43 +0000 (15:29 +0000)] 
Update the [showdb] program so that the database file is read directly (bypassing the SQLite VFS) only if the --raw option is specified. Otherwise, it is read using the default VFS. Also, the URI syntax may be used on the command line to specify the name of the database file to examine, so an alternative VFS may be requested using a URI parameter.

FossilOrigin-Name: e3c6d4b6e738c7ea015c0c809a5f7d1a94dda945

9 years agoUpdate the [showdb] program so that the database file is read directly (bypassing... showdb-uri-option
dan [Tue, 4 Aug 2015 15:23:49 +0000 (15:23 +0000)] 
Update the [showdb] program so that the database file is read directly (bypassing the SQLite VFS) only if the --raw option is specified. Otherwise, it is read using the default VFS. An alternative VFS may be specified by specifying the database file to open using the URI syntax.

FossilOrigin-Name: 9699e9bd9a0e813d04c9d37422920670697c46ed

9 years agoIn the sqlite3_analyzer.exe utility, show the depth of each btree and report
drh [Tue, 4 Aug 2015 14:18:10 +0000 (14:18 +0000)] 
In the sqlite3_analyzer.exe utility, show the depth of each btree and report
the average fanout of indexes and WITHOUT ROWID tables.

FossilOrigin-Name: cd997770013e923ac3fa34b1546b97681923c8b1

9 years agoAdd the "--uri" option to utility program "showdb". This option causes showdb to...
dan [Mon, 3 Aug 2015 17:03:31 +0000 (17:03 +0000)] 
Add the "--uri" option to utility program "showdb". This option causes showdb to use sqlite with the SQLITE_OPEN_URI option to open the database file, instead of opening it directly using the OS open() function.

FossilOrigin-Name: 90e34d5119f720496e86a3a6de7771ea87b7dcbb

9 years agoAllow a VIEW to reference undefined tables and functions when initially
drh [Mon, 3 Aug 2015 13:44:45 +0000 (13:44 +0000)] 
Allow a VIEW to reference undefined tables and functions when initially
created.  The error report is deferred until the VIEW is used.  This allows
views to be created before subviews and tables that the view references.

FossilOrigin-Name: 70b57dafb3216feb21091883196831fa1252e7bf

9 years agoAdd extra tests for RBU and FTS3/4.
dan [Sat, 1 Aug 2015 18:18:21 +0000 (18:18 +0000)] 
Add extra tests for RBU and FTS3/4.

FossilOrigin-Name: 3419044967258e3ed65f71528e06952ee102dcc7

9 years agoAdd support for "fossil deltas" to RBU and "sqldiff --rbu".
dan [Fri, 31 Jul 2015 19:52:03 +0000 (19:52 +0000)] 
Add support for "fossil deltas" to RBU and "sqldiff --rbu".

FossilOrigin-Name: e26ef165fe2f7524684af0d269d38475ea8b9489

9 years agoFix the sqlite3_stmt_busy() interface so that it always returns FALSE after
drh [Fri, 31 Jul 2015 18:59:56 +0000 (18:59 +0000)] 
Fix the sqlite3_stmt_busy() interface so that it always returns FALSE after
the statement has returned SQLITE_DONE, even for ROLLBACK statements.
Clarify the documentation.

FossilOrigin-Name: 047d3475e93d08cf172ad02404a690d5b0c1b833

9 years agoRemove a duplicate "typedef struct Fts5Global Fts5Global;" from fts5_main.c (duplicat...
dan [Fri, 31 Jul 2015 17:48:07 +0000 (17:48 +0000)] 
Remove a duplicate "typedef struct Fts5Global Fts5Global;" from fts5_main.c (duplicate is in fts5Int.h).

FossilOrigin-Name: 54a771fe2c2b3c1cc2914a527a825934fe114c49

9 years agoWhen building the VSIX package for UAP, omit the AppLocal suffix for the MSVC runtime...
mistachkin [Fri, 31 Jul 2015 15:14:14 +0000 (15:14 +0000)] 
When building the VSIX package for UAP, omit the AppLocal suffix for the MSVC runtime library because it is no longer needed.

FossilOrigin-Name: fee7ad73c10e9353c3ac298d254ab77ad85a210d

9 years agoFix a problem causing [sqldiff --rbu] to fail on tables for which all columns are...
dan [Fri, 31 Jul 2015 15:13:29 +0000 (15:13 +0000)] 
Fix a problem causing [sqldiff --rbu] to fail on tables for which all columns are part of the PRIMARY KEY.

FossilOrigin-Name: 93449e7046d60cad020ca439ded82e759c2e3cd9

9 years agoFix a bug in the fts5 porter tokenizer preventing it from passing xCreate() arguments...
dan [Fri, 31 Jul 2015 14:43:02 +0000 (14:43 +0000)] 
Fix a bug in the fts5 porter tokenizer preventing it from passing xCreate() arguments through to its parent tokenizer.

FossilOrigin-Name: c3c672af97edf2ae5d793f6fa47364370aa4f4ec

9 years agoAdd the --rbu switch to the "sqldiff" utility.
dan [Thu, 30 Jul 2015 20:26:16 +0000 (20:26 +0000)] 
Add the --rbu switch to the "sqldiff" utility.

FossilOrigin-Name: 098bea26da4533d9ad97a85687cca56fb0d764a4

9 years agoAllow RBU tables to be named "data[0-9]*_<target>" instead of strictly "data_<target...
dan [Thu, 30 Jul 2015 11:38:19 +0000 (11:38 +0000)] 
Allow RBU tables to be named "data[0-9]*_<target>" instead of strictly "data_<target>". Also update RBU so that it always processes data tables in order sorted by name.

FossilOrigin-Name: 287aa30601506f168d355c35176a3383474444ca

9 years agoReturn an error message (instead of segfaulting) if test function fts5_expr() is...
dan [Thu, 30 Jul 2015 11:26:10 +0000 (11:26 +0000)] 
Return an error message (instead of segfaulting) if test function fts5_expr() is invoked with no arguments.

FossilOrigin-Name: 8e818b8985c0196cd9671a6491796faaeebeb16e

9 years agoSupport building VSIX packages for UAP using Visual Studio 2015 and the Windows 10...
mistachkin [Wed, 29 Jul 2015 22:38:45 +0000 (22:38 +0000)] 
Support building VSIX packages for UAP using Visual Studio 2015 and the Windows 10 SDK.

FossilOrigin-Name: 96559adbf18bbbf25ff4e1579ee3ff2afef4c4d7

9 years agoUpdate Windows 10 SDK version for RTM. msvc2015
mistachkin [Wed, 29 Jul 2015 22:37:06 +0000 (22:37 +0000)] 
Update Windows 10 SDK version for RTM.

FossilOrigin-Name: 80ab338cc6fe920ad7edbb86672ff3d704152f52

9 years agoAdd SQLITE_DISABLE_INTRINSIC define to disable use of intrinsic functions (e.g. for...
mistachkin [Wed, 29 Jul 2015 21:47:39 +0000 (21:47 +0000)] 
Add SQLITE_DISABLE_INTRINSIC define to disable use of intrinsic functions (e.g. for certain older compilers and/or platforms).

FossilOrigin-Name: f0075d735a76ce326619b6ba7f0d556e492f1c41

9 years agoFix the releasetest.tcl script so that it ignore cast overflow errors that
drh [Wed, 29 Jul 2015 20:24:39 +0000 (20:24 +0000)] 
Fix the releasetest.tcl script so that it ignore cast overflow errors that
recent versions of clang generate but which are unavoidable given the test
input.

FossilOrigin-Name: a0020c57859fd452a2b5c943f9c5cf5ec6f997e3

9 years agoVersion 3.8.11.1 version-3.8.11.1
drh [Wed, 29 Jul 2015 20:00:57 +0000 (20:00 +0000)] 
Version 3.8.11.1

FossilOrigin-Name: cf538e2783e468bbc25e7cb2a9ee64d3e0e80b2f

9 years agoRestore an undocumented side-effect of PRAGMA cache_size: it forces the
drh [Wed, 29 Jul 2015 15:22:49 +0000 (15:22 +0000)] 
Restore an undocumented side-effect of PRAGMA cache_size: it forces the
database schema to be parsed.  Also increase the version number to 3.8.11.1.

FossilOrigin-Name: e4628de3ce2b556fb46f0eb6eaac4809d17738f0

9 years agoUpdate comments in fts5.h describing the xColumnCount() API function.
dan [Wed, 29 Jul 2015 14:58:47 +0000 (14:58 +0000)] 
Update comments in fts5.h describing the xColumnCount() API function.

FossilOrigin-Name: a623eb55d1583bcfe360a8dabd29f2a583c61e64

9 years agoIncrease the version number to 3.8.11.1 branch-3.8.11
drh [Wed, 29 Jul 2015 14:46:46 +0000 (14:46 +0000)] 
Increase the version number to 3.8.11.1

FossilOrigin-Name: 326d746dee3589a4e2ee06f3285285856e734b87

9 years agoThe "PRAGMA cache_size" reads the database schema, as it has down in all prior
drh [Wed, 29 Jul 2015 14:10:43 +0000 (14:10 +0000)] 
The "PRAGMA cache_size" reads the database schema, as it has down in all prior
versions of SQLite.  This side-effect of cache_size is undocumented, but
apparently it does get used and its absence from 3.8.11 was causing problems.

FossilOrigin-Name: 4489722a6b560355ef13f091e5c9dcf0b00072f0

9 years agoUpdate batch build tool library paths for MSVC 2015.
mistachkin [Tue, 28 Jul 2015 19:35:26 +0000 (19:35 +0000)] 
Update batch build tool library paths for MSVC 2015.

FossilOrigin-Name: d431d4e11a6006473ac223e58806ac26050934d5

9 years agoFix the xfer optimization for WITHOUT ROWID tables so that it correctly
drh [Tue, 28 Jul 2015 18:53:37 +0000 (18:53 +0000)] 
Fix the xfer optimization for WITHOUT ROWID tables so that it correctly
updates the change count returned by sqlite3_changes().

FossilOrigin-Name: eff43715d1a3a9ce3fe5da194dbb76ec0c06e13c

9 years agoClarification to the documentation for sqlite3_result_zeroblob64(). No
drh [Mon, 27 Jul 2015 19:57:13 +0000 (19:57 +0000)] 
Clarification to the documentation for sqlite3_result_zeroblob64().  No
changes to code.

FossilOrigin-Name: c98175e900cdda0c81fb559fed4cc5f27c34e368

9 years agoVersion 3.8.11 version-3.8.11
drh [Mon, 27 Jul 2015 13:49:41 +0000 (13:49 +0000)] 
Version 3.8.11

FossilOrigin-Name: b8e92227a469de677a66da62e4361f099c0b79d0

9 years agoMerge the fts5-btree-index branch with this one. FTS5 changes only.
dan [Mon, 27 Jul 2015 12:19:11 +0000 (12:19 +0000)] 
Merge the fts5-btree-index branch with this one. FTS5 changes only.

FossilOrigin-Name: 9f1dcdc3e1644c21762dacf619fac70afe6318c5

9 years agoBump the "version" field in the fts5 config table. fts5-btree-index
dan [Mon, 27 Jul 2015 11:49:01 +0000 (11:49 +0000)] 
Bump the "version" field in the fts5 config table.

FossilOrigin-Name: 92c9178933ef95e92c343c0a741a76bbdf071966