]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
9 years agoSimplification of the error code translator in os_unix.c. Code cleanup only.
drh [Wed, 25 Nov 2015 14:00:07 +0000 (14:00 +0000)] 
Simplification of the error code translator in os_unix.c.  Code cleanup only.
The logic is unchanged.

FossilOrigin-Name: 2a20f793fdf6a2e88b679a7bd4e8ccf2935df049

9 years agoFix the fts5 "prefix=" option to match the documentation (space separated list, multi...
dan [Wed, 25 Nov 2015 11:56:24 +0000 (11:56 +0000)] 
Fix the fts5 "prefix=" option to match the documentation (space separated list, multiple prefix= options supported). The undocumented comma-separated format (compatible with fts4) still works.

FossilOrigin-Name: 11eb8e877e2ba859ef6b44318f286597186dfaf2

9 years agoEnhancement the virtual table interface to support LIKE, GLOB, and REGEXP
drh [Wed, 25 Nov 2015 01:57:42 +0000 (01:57 +0000)] 
Enhancement the virtual table interface to support LIKE, GLOB, and REGEXP
operators.  Also add the sqlite3_strlike() interface, which might be useful
as part of the implementation of LIKE on some virtual tables.

FossilOrigin-Name: a6bfd4692c3f8b107546fbcaeb985d2c1817b3c1

9 years agoAdd the sqlite3_strlike() interface, which might be useful for implementing vtab-like-operator
drh [Tue, 24 Nov 2015 21:23:59 +0000 (21:23 +0000)] 
Add the sqlite3_strlike() interface, which might be useful for implementing
LIKE operators on virtual tables.

FossilOrigin-Name: e70ec71d6883f2f8fc75301ff985bccb5aa06127

9 years agoFix a problem in whereexpr.c causing a crash while processing a user-function taht...
dan [Tue, 24 Nov 2015 18:16:15 +0000 (18:16 +0000)] 
Fix a problem in whereexpr.c causing a crash while processing a user-function taht accepts zero arguments.

FossilOrigin-Name: 069e51b19c773aa3017a8d307c8daa0766c224ba

9 years agoFix harmless compiler warnings in the TCL test harness logic.
drh [Tue, 24 Nov 2015 18:04:39 +0000 (18:04 +0000)] 
Fix harmless compiler warnings in the TCL test harness logic.

FossilOrigin-Name: 2fba7a96566b5448f527a4ec6a26e860c4889813

9 years agoMerge latest trunk changes with this branch.
dan [Tue, 24 Nov 2015 17:44:26 +0000 (17:44 +0000)] 
Merge latest trunk changes with this branch.

FossilOrigin-Name: 99222bb3e5f9b2a9a10d9561a9fd8c0f717baaff

9 years agoAdd further tests and related fixes for GLOB/REGEXP/LIKE support in virtual tables.
dan [Tue, 24 Nov 2015 17:39:01 +0000 (17:39 +0000)] 
Add further tests and related fixes for GLOB/REGEXP/LIKE support in virtual tables.

FossilOrigin-Name: c5e9fd0dc92a07db3d3b5f5c5ad8fb63b3425c2b

9 years agoRemove from os_unix.c pointless logic that tries to prevent a recurrence of
drh [Tue, 24 Nov 2015 16:40:23 +0000 (16:40 +0000)] 
Remove from os_unix.c pointless logic that tries to prevent a recurrence of
a warning message that can only occur once.

FossilOrigin-Name: 20256177072caa4f2b4114038ad1c8f6e26bc562

9 years agoFix a comment typo in the unix VFS. No changes to code.
drh [Tue, 24 Nov 2015 15:12:47 +0000 (15:12 +0000)] 
Fix a comment typo in the unix VFS.  No changes to code.

FossilOrigin-Name: 32e138796c66c88e8cbb77aa3a4282a38d1f959a

9 years agoMake the geteuid() system call overloadable using xSetSystemCall() on the
drh [Tue, 24 Nov 2015 15:06:28 +0000 (15:06 +0000)] 
Make the geteuid() system call overloadable using xSetSystemCall() on the
unix VFSes.

FossilOrigin-Name: 6c2ddea65e1871b2fcb4991c5b3e6992993db3ea

9 years agoAdd a test case for the fix of check-in [19d9f9ce691963310]
drh [Tue, 24 Nov 2015 03:50:16 +0000 (03:50 +0000)] 
Add a test case for the fix of check-in [19d9f9ce691963310]

FossilOrigin-Name: 19a9c07b26a4123dc60abdcc84a956f88c352bab

9 years agoRemove an incorrect ALWAYS() macro. Fix for ticket [e5c6268dd807fa8950] -
drh [Tue, 24 Nov 2015 02:10:52 +0000 (02:10 +0000)] 
Remove an incorrect ALWAYS() macro.  Fix for ticket [e5c6268dd807fa8950] -
a problem introduced in SQLite 3.9.0 and found by libFuzzer.

FossilOrigin-Name: 824ad96f72cb0c948ec98aca9d17a7e6790c575f

9 years agoAdd a clarifying comment to the virtual table test module 'test8'.
mistachkin [Tue, 24 Nov 2015 01:17:01 +0000 (01:17 +0000)] 
Add a clarifying comment to the virtual table test module 'test8'.

FossilOrigin-Name: e92f97a6794440eb9d64e21218d39cb0e297a98e

9 years agoDo not try to eliminate No-ops at the end of VDBE program as this can cause
drh [Tue, 24 Nov 2015 00:49:44 +0000 (00:49 +0000)] 
Do not try to eliminate No-ops at the end of VDBE program as this can cause
problems for some DISTINCT handling algorithms, and does not improve
performance.  This also fixes an assertion fault found by libFuzzer.

FossilOrigin-Name: 19d9f9ce691963310fa73ac5ff728ea8dea9d2b2

9 years agoAdd experimental support for LIKE, GLOB and REGEXP to the virtual table interface.
dan [Mon, 23 Nov 2015 21:09:54 +0000 (21:09 +0000)] 
Add experimental support for LIKE, GLOB and REGEXP to the virtual table interface.

FossilOrigin-Name: 277a5b4027d4c2caba8143228a4f7d6df899dbb4

9 years agoFix an obscure memory leak found by libfuzzer that may occur under some circumstances...
dan [Sat, 21 Nov 2015 19:43:29 +0000 (19:43 +0000)] 
Fix an obscure memory leak found by libfuzzer that may occur under some circumstances if expanding a "*" expression causes a SELECT to return more than 32767 columns.

FossilOrigin-Name: 60de5f23424552c98aa760ac89149a3d51f895be

9 years agoFix over-length source code lines. No logic changes.
drh [Sat, 21 Nov 2015 17:27:42 +0000 (17:27 +0000)] 
Fix over-length source code lines.  No logic changes.

FossilOrigin-Name: 198d191b2f5ef7d63ac0093c701955c9052fd734

9 years agoDo not allow table-valued function syntax on ordinary tables and views as those
drh [Sat, 21 Nov 2015 13:24:46 +0000 (13:24 +0000)] 
Do not allow table-valued function syntax on ordinary tables and views as those
objects are not table-valued functions.
Fix for ticket [73eba7ba5c7c0fc].

FossilOrigin-Name: ff5716b89f99d9c4568a39f1f52524528a631623

9 years agoRefactor the VdbeCursor object. It is now slightly smaller and faster and is
drh [Fri, 20 Nov 2015 19:22:01 +0000 (19:22 +0000)] 
Refactor the VdbeCursor object.  It is now slightly smaller and faster and is
easier to understand.

FossilOrigin-Name: 9b1d174d862500a627840008ffac4c8419dc97e2

9 years agoIn the OP_Column opcode, only test the btree payload size for exceeding the
drh [Fri, 20 Nov 2015 13:33:56 +0000 (13:33 +0000)] 
In the OP_Column opcode, only test the btree payload size for exceeding the
string length limit if the payload does not fit on a single page.

FossilOrigin-Name: 35c7f6cba6febf2480de01fca9d61b8065bf1c12

9 years agoEnhancements to a comment in sqliteInt.h. No changes to code.
drh [Fri, 20 Nov 2015 13:17:29 +0000 (13:17 +0000)] 
Enhancements to a comment in sqliteInt.h.  No changes to code.

FossilOrigin-Name: 5446ae64d7f92444ca40aae2108015d1d77bc03f

9 years agoFix problems with the way the IsHiddenColumn() macro is defined.
drh [Thu, 19 Nov 2015 18:11:20 +0000 (18:11 +0000)] 
Fix problems with the way the IsHiddenColumn() macro is defined.

FossilOrigin-Name: 126b998cf163dcdd5a222634f1e929f04db3c700

9 years agoFix a problem with VACUUM and __hidden__ columns.
dan [Thu, 19 Nov 2015 18:09:05 +0000 (18:09 +0000)] 
Fix a problem with VACUUM and __hidden__ columns.

FossilOrigin-Name: 13995756ad8b80568aa2f74387788a8cab1123ef

9 years agoWhen manifesting a view as part of an DELETE or UPDATE, be sure to include
drh [Thu, 19 Nov 2015 17:55:11 +0000 (17:55 +0000)] 
When manifesting a view as part of an DELETE or UPDATE, be sure to include
the hidden columns in the manifestation.

FossilOrigin-Name: 28df5dc4a9569f388af2ee0d1f016afbea132277

9 years agoFix problems with INSERT INTO ... SELECT ... statements that write to tables with...
dan [Thu, 19 Nov 2015 16:46:46 +0000 (16:46 +0000)] 
Fix problems with INSERT INTO ... SELECT ... statements that write to tables with __hidden__ columns.

FossilOrigin-Name: 59bd0ec7d4327852ee8c0206b2c59d0a12484db8

9 years agoCreate the new TK_ASTERISK token to represent the "*" in "SELECT *". Formerly
drh [Thu, 19 Nov 2015 16:33:31 +0000 (16:33 +0000)] 
Create the new TK_ASTERISK token to represent the "*" in "SELECT *".  Formerly
that operator was TK_ALL, which was also used for UNION ALL.  Less confusion if
they operator symbols are distinct.

FossilOrigin-Name: 201ac6d449431dadc6b29faecd68b559bd64bc9f

9 years agoIf compiled with SQLITE_ENABLE_HIDDEN_COLUMNS, then columns in ordinary
drh [Thu, 19 Nov 2015 14:11:58 +0000 (14:11 +0000)] 
If compiled with SQLITE_ENABLE_HIDDEN_COLUMNS, then columns in ordinary
tables and views that have names beginning with "__hidden__" are omitted from
the "*" expansion in SELECT statements and from the automatic list of columns
following the table name in an INSERT INTO statement.

FossilOrigin-Name: 011904cad2be2ce34e2f37ffae8ff2f1044a2969

9 years agoOnly support the magic "__hidden__" column name prefix interpretation when hidden-columns-in-tables
drh [Thu, 19 Nov 2015 13:53:57 +0000 (13:53 +0000)] 
Only support the magic "__hidden__" column name prefix interpretation when
compiled with SQLITE_ENABLE_HIDDEN_COLUMNS.

FossilOrigin-Name: 5490646b2eb74ea8bd5ab2690f69b9c707a0165f

9 years agoFix a 10-year-old misguided attempt at parser performance improvement that
drh [Thu, 19 Nov 2015 13:21:31 +0000 (13:21 +0000)] 
Fix a 10-year-old misguided attempt at parser performance improvement that
actually made parsing slightly slower.

FossilOrigin-Name: 3833cbac0706ecac9a641d70b786d26f7e1a42b1

9 years agoGet the __hidden__ column mechanism working on views with INSTEAD OF triggers.
drh [Wed, 18 Nov 2015 21:22:02 +0000 (21:22 +0000)] 
Get the __hidden__ column mechanism working on views with INSTEAD OF triggers.

FossilOrigin-Name: 20c1e9ce75cc0b5f7456379f35a4fe24edd98088

9 years agoAdd tests for views to hidden.test.
dan [Wed, 18 Nov 2015 20:59:47 +0000 (20:59 +0000)] 
Add tests for views to hidden.test.

FossilOrigin-Name: 27d4b6f5756c7b19c00c95d46a77280c8b6f03a4

9 years agoHonor the "__hidden__" prefix on the columns of views.
drh [Wed, 18 Nov 2015 20:57:50 +0000 (20:57 +0000)] 
Honor the "__hidden__" prefix on the columns of views.

FossilOrigin-Name: 3071ba2bdbda7018d0a285eceb04b8527209ec1e

9 years agoAdd a test for the __hidden__ hack on this branch.
dan [Wed, 18 Nov 2015 20:07:12 +0000 (20:07 +0000)] 
Add a test for the __hidden__ hack on this branch.

FossilOrigin-Name: ebf4bbffec58111a670c46a9eb469bfd2440b0b1

9 years agoIf a table column name begins with "__hidden__" then do not include that
drh [Wed, 18 Nov 2015 18:43:15 +0000 (18:43 +0000)] 
If a table column name begins with "__hidden__" then do not include that
column in "*" expansions in SELECT statements, nor fill in that column in
an INSERT INTO that omits the column list.  <b>This branch is a
proof-of-concept only and is not intended to ever be merged into trunk.</b>

FossilOrigin-Name: 2dbffb3a3b20dba7d7d86c8ad2e34633f616c78a

9 years agoWhen using mmap mode on Win32, use a read-only mapping by default. Write to the datab...
mistachkin [Tue, 17 Nov 2015 21:42:32 +0000 (21:42 +0000)] 
When using mmap mode on Win32, use a read-only mapping by default. Write to the database file using WriteFile(). Unless SQLITE_MMAP_READWRITE is defined, in which case use a read/write mapping and write into the file using memcpy().

FossilOrigin-Name: 4f521b5bb36a1117db324e92dcf80abd2f1a5bc1

9 years agoWhen using mmap mode on unix, use a read-only mapping by default. Write to the databa...
dan [Tue, 17 Nov 2015 20:56:06 +0000 (20:56 +0000)] 
When using mmap mode on unix, use a read-only mapping by default. Write to the database file using write(). Unless SQLITE_MMAP_READWRITE is defined, in which case use a read/write mapping and write into the file using memcpy().

FossilOrigin-Name: 67c5d3c646c8198c8637069140aca952b802df25

9 years agoFix uninitialized variable in the command line shell.
mistachkin [Tue, 17 Nov 2015 19:17:14 +0000 (19:17 +0000)] 
Fix uninitialized variable in the command line shell.

FossilOrigin-Name: dc2ac024d31a898bbc3e7fc824d806e63e993234

9 years agoFix harmless compiler warning.
mistachkin [Tue, 17 Nov 2015 19:16:39 +0000 (19:16 +0000)] 
Fix harmless compiler warning.

FossilOrigin-Name: eea26b6caea37422c9b46a7a3a538b0c9575f392

9 years agoAdd testfixture command "vfs_current_time_int64". Returns the value returned by the...
dan [Mon, 16 Nov 2015 15:28:54 +0000 (15:28 +0000)] 
Add testfixture command "vfs_current_time_int64". Returns the value returned by the xCurrentTimeInt64 method of the default VFS.

FossilOrigin-Name: f79d5b1853b3d4316ea08de8206ffca33e44c395

9 years agoIn the shell tool, avoid testing if (sqlite3_vfs.xGetCurrentInt64) is NULL for a...
dan [Mon, 16 Nov 2015 08:54:10 +0000 (08:54 +0000)] 
In the shell tool, avoid testing if (sqlite3_vfs.xGetCurrentInt64) is NULL for a version 1 VFS. This field is only defined for version 2 and greater.

FossilOrigin-Name: ad5fcaa583ef743d143b6c030e0d78019709fe71

9 years agoFix the column name uniquifier so that it works with zero-length column names.
drh [Sun, 15 Nov 2015 11:13:49 +0000 (11:13 +0000)] 
Fix the column name uniquifier so that it works with zero-length column names.

FossilOrigin-Name: 791761ebac26c82ab67bdf867117ec5b5d8b20b0

9 years agoCode simplification in sqlite3ColumnsFromExprList(). Update the %z format
drh [Sat, 14 Nov 2015 22:04:22 +0000 (22:04 +0000)] 
Code simplification in sqlite3ColumnsFromExprList().  Update the %z format
code so that it works with buffers obtained from sqlite3DbMalloc().  Add a
testcase for the slow column name uniquifier.

FossilOrigin-Name: 9272426057b6cb2d913519ff4c97aa6e211f7d51

9 years agoUse a hash table to improve the preformance of column name uniqueness checking.
drh [Sat, 14 Nov 2015 20:52:43 +0000 (20:52 +0000)] 
Use a hash table to improve the preformance of column name uniqueness checking.

FossilOrigin-Name: 5b08f29f458c600401860c7d70d8174cf61e69f8

9 years agoUse randomness to prevent showness in the generated-column-name uniqueness
drh [Sat, 14 Nov 2015 16:47:23 +0000 (16:47 +0000)] 
Use randomness to prevent showness in the generated-column-name uniqueness
checking.

FossilOrigin-Name: 6266712968a2cdcd6f5a3007d60c2cf1b3faf912

9 years agoFix a memory leak in the fuzzcheck utility.
drh [Fri, 13 Nov 2015 20:52:49 +0000 (20:52 +0000)] 
Fix a memory leak in the fuzzcheck utility.

FossilOrigin-Name: dfd6d9f4fbe902086f9158dfa5f37e781765a683

9 years agoAdd the "--enable-static-shell" option to the amalgamation autoconf script. If set...
dan [Fri, 13 Nov 2015 16:59:00 +0000 (16:59 +0000)] 
Add the "--enable-static-shell" option to the amalgamation autoconf script. If set (the default) the compiled shell tool is statically linked against sqlite3.o. Otherwise, it is linked against libsqlite3.so.

FossilOrigin-Name: 499a02a34316cada9e197ef1d2e77c4cd75c41be

9 years agoAdd the --transaction option to the sqldiff tool.
drh [Fri, 13 Nov 2015 13:15:42 +0000 (13:15 +0000)] 
Add the --transaction option to the sqldiff tool.

FossilOrigin-Name: 8882d1f3ef0fc53d7c19918c3af43c5bdd79e88f

9 years agoFix the releasetest-out.txt log output from releasetest.tcl so that it works
drh [Fri, 13 Nov 2015 12:52:34 +0000 (12:52 +0000)] 
Fix the releasetest-out.txt log output from releasetest.tcl so that it works
when the --jobs option is used.

FossilOrigin-Name: 6bb314a5022c8bae63f6cdb48652915e05c06a38

9 years agoDisable two PRAGMA cache_spill tests when MEMORY_MANAGEMENT is enabled.
drh [Fri, 13 Nov 2015 12:32:01 +0000 (12:32 +0000)] 
Disable two PRAGMA cache_spill tests when MEMORY_MANAGEMENT is enabled.

FossilOrigin-Name: ebda77aad4d964593606ded2fdb19259ef9ebb8e

9 years agoChange the error messages so that they begin can be grepped using '^!' instead
drh [Fri, 13 Nov 2015 00:03:14 +0000 (00:03 +0000)] 
Change the error messages so that they begin can be grepped using '^!' instead
of '^ '.  There are far too many extraneous outputs that being with a space.

FossilOrigin-Name: 367ec0db49607559960d58891771113c205fd951

9 years agoUpdate the SQLLOG logic so that to builds in accordance with the instructions
drh [Thu, 12 Nov 2015 23:48:08 +0000 (23:48 +0000)] 
Update the SQLLOG logic so that to builds in accordance with the instructions
in the header comment.

FossilOrigin-Name: ee6f2feec7d777a969ddba6dc00fb571d64e57f8

9 years agoAlways parse the schema *before* running "PRAGMA cache_size", not after.
drh [Thu, 12 Nov 2015 22:15:18 +0000 (22:15 +0000)] 
Always parse the schema *before* running "PRAGMA cache_size", not after.

FossilOrigin-Name: 12e7d9ec023db4dd837f76006c87defc5a3e9388

9 years agoAdd a space before each line of error output in the test scripts so that all
drh [Thu, 12 Nov 2015 21:42:40 +0000 (21:42 +0000)] 
Add a space before each line of error output in the test scripts so that all
errors can be conveniently located in logs by doing "grep '^ '".

FossilOrigin-Name: 9d532fb50d310df629ea65193f21dc9b3594ff5f

9 years agoAdd support for the SQLITE_SQLLOG_CONDITIONAL environment variable to the logging...
dan [Thu, 12 Nov 2015 20:12:51 +0000 (20:12 +0000)] 
Add support for the SQLITE_SQLLOG_CONDITIONAL environment variable to the logging code in test_sqllog.c. When defined, logging is only performed if the "<database>-sqllog" file is present in the file system when the main database is opened.

FossilOrigin-Name: cab8126be9f63dd596719b12704ba77c128282bc

9 years agoEnhance the "PRAGMA cache_spill" statement to accept an integer argument which
drh [Thu, 12 Nov 2015 16:44:40 +0000 (16:44 +0000)] 
Enhance the "PRAGMA cache_spill" statement to accept an integer argument which
is the threshold at which spilling will begin.

FossilOrigin-Name: f79d264db24a470d1a4571e15a99cd3d68b5166c

9 years agoTest cases. Minor problems fixed. All appears to work now. cache_spill=N
drh [Thu, 12 Nov 2015 15:47:48 +0000 (15:47 +0000)] 
Test cases.  Minor problems fixed.  All appears to work now.

FossilOrigin-Name: 9a431362dccbc9b8f93375f30a3b8955903cca79

9 years agoFix a #define in parse.y that disabled unused code in the generated parser.
drh [Thu, 12 Nov 2015 15:04:05 +0000 (15:04 +0000)] 
Fix a #define in parse.y that disabled unused code in the generated parser.

FossilOrigin-Name: f84e3085c87cfffe4aba0eb4c4a3298b4027db83

9 years agoFirst attempt at enhancing the "PRAGMA cache_spill" statement to accept a
drh [Thu, 12 Nov 2015 14:57:19 +0000 (14:57 +0000)] 
First attempt at enhancing the "PRAGMA cache_spill" statement to accept a
cache threashold size.

FossilOrigin-Name: 549d42be0dac87dc04c3eeccfdc60615c3a6ad3f

9 years agoFix missing word in a documentation comment. No changes to code.
mistachkin [Wed, 11 Nov 2015 18:43:49 +0000 (18:43 +0000)] 
Fix missing word in a documentation comment.  No changes to code.

FossilOrigin-Name: ed24d302657e8495bef7f5ed698c7cca12717be9

9 years agoImprovements to the SQLITE_CONFIG_PAGECACHE documentation. Enhance the
drh [Wed, 11 Nov 2015 15:28:52 +0000 (15:28 +0000)] 
Improvements to the SQLITE_CONFIG_PAGECACHE documentation.  Enhance the
command-line shell to be able to take advantage of the full range of
SQLITE_CONFIG_PAGECACHE capabilities, such as setting pMem==NULL and N<0.

FossilOrigin-Name: 2518d5c971c4b32d9227b3bb7259162e3e27b00b

9 years agoImproved output formatting for "PRAGMA parser_trace=ON;".
drh [Tue, 10 Nov 2015 14:51:22 +0000 (14:51 +0000)] 
Improved output formatting for "PRAGMA parser_trace=ON;".

FossilOrigin-Name: e43e1171fd7837a08069dc25df4eac14db1c2afe

9 years agoMake the output of "PRAGMA parser_trace" go to stdout instead of stderr.
drh [Tue, 10 Nov 2015 14:27:17 +0000 (14:27 +0000)] 
Make the output of "PRAGMA parser_trace" go to stdout instead of stderr.

FossilOrigin-Name: 1e4849911e3eed65eabee18fdee63bab4faae57a

9 years agoSave a few bytes in the parser by using "int" instead of "u8" or "u16" for
drh [Tue, 10 Nov 2015 13:45:21 +0000 (13:45 +0000)] 
Save a few bytes in the parser by using "int" instead of "u8" or "u16" for
all small integer types.

FossilOrigin-Name: 5dcd212bf6489f4698a0ed0f21497c78379f7c0f

9 years agoChange all parsers to use the standard "lempar.c" template in the tool/
drh [Tue, 10 Nov 2015 12:41:03 +0000 (12:41 +0000)] 
Change all parsers to use the standard "lempar.c" template in the tool/
folder and remove the customized lempar.c from src/, plus other compiler
performance and space enhancements.

FossilOrigin-Name: 0e7fb24ad3c010884763a97e6ae7a3fd39d0e5a9

9 years agoFix harmless compiler warnings in FTS5. parser-enhancements
drh [Tue, 10 Nov 2015 12:31:25 +0000 (12:31 +0000)] 
Fix harmless compiler warnings in FTS5.

FossilOrigin-Name: 09752e51a18ac1b4c9642965e6ee1b6a32de00df

9 years agoPerformance enhancement to the tokenizer.
drh [Tue, 10 Nov 2015 03:30:51 +0000 (03:30 +0000)] 
Performance enhancement to the tokenizer.

FossilOrigin-Name: 6ea2df86c95c226052f528424e9bee367a2e765a

9 years agoRemove an unused non-terminal from the grammar.
drh [Tue, 10 Nov 2015 00:02:49 +0000 (00:02 +0000)] 
Remove an unused non-terminal from the grammar.

FossilOrigin-Name: 3c37c522883ea9f2eec4f0ba5c5141912c003425

9 years agoFix a comment typo in the lempar.c template that was missed by the prior
drh [Mon, 9 Nov 2015 19:35:18 +0000 (19:35 +0000)] 
Fix a comment typo in the lempar.c template that was missed by the prior
check-in.

FossilOrigin-Name: c4a7e93fca622fd11a6e16161fbd2f39c2575f00

9 years agoChange the parser to use the standard "lempar.c" template over in the tool/
drh [Mon, 9 Nov 2015 19:33:42 +0000 (19:33 +0000)] 
Change the parser to use the standard "lempar.c" template over in the tool/
folder rather than the customized "lempar.c" found in src/.

FossilOrigin-Name: 0a72991f4e54548f6c3268c5a9cac1c8d6437d26

9 years agoAvoid recursion in the yy_find_shift_action() routine of the Lemon-generated
drh [Mon, 9 Nov 2015 15:06:26 +0000 (15:06 +0000)] 
Avoid recursion in the yy_find_shift_action() routine of the Lemon-generated
parser, so that routine can be inlined, for a size reduction and performance
increase.

FossilOrigin-Name: 0557a179f932296cc1fd5217f9a0d2f74e34ce1d

9 years agoSize reduction and performance improvement in the stack-popping logic of
drh [Mon, 9 Nov 2015 14:11:37 +0000 (14:11 +0000)] 
Size reduction and performance improvement in the stack-popping logic of
the Lemon-generated parser.

FossilOrigin-Name: 9748c48a4fbd5c06208bbf80e7bfcb159ec026d9

9 years agoFix incorrect WHERE clause in sqldiff, as reported on the mailing list
drh [Mon, 9 Nov 2015 12:47:04 +0000 (12:47 +0000)] 
Fix incorrect WHERE clause in sqldiff, as reported on the mailing list
by Youcef Hilem.

FossilOrigin-Name: e0ed4c3e376248dfbf903e4b5845f910824fa6c6

9 years agoCheck in the cg_anno.tcl and run-speed-test.sh scripts, as an historical
drh [Mon, 9 Nov 2015 12:44:19 +0000 (12:44 +0000)] 
Check in the cg_anno.tcl and run-speed-test.sh scripts, as an historical
record.

FossilOrigin-Name: 836418d3b7cfcd5ec375c4e08c09bd6b78646307

9 years agoAvoid unnecessary function prologues in the sqlite3VdbeAddOp3() routine.
drh [Mon, 9 Nov 2015 12:33:39 +0000 (12:33 +0000)] 
Avoid unnecessary function prologues in the sqlite3VdbeAddOp3() routine.

FossilOrigin-Name: 7c6a19ba9b0bdb1cc0b9a9796b7c1c114944d927

9 years agoSmall size reduction and performance increase in the parser.
drh [Mon, 9 Nov 2015 02:08:09 +0000 (02:08 +0000)] 
Small size reduction and performance increase in the parser.

FossilOrigin-Name: d62cd757a69cc49c2d309e27c948610b5868632f

9 years agoEnhance the sqldiff utility to deal gracefully with ALTER TABLE ADD COLUMN.
drh [Sat, 7 Nov 2015 18:32:17 +0000 (18:32 +0000)] 
Enhance the sqldiff utility to deal gracefully with ALTER TABLE ADD COLUMN.

FossilOrigin-Name: 7ea036ac37397ed8f6a0fa9f5bfc0994364b53dc

9 years agoFix a bug in CTE handling discovered by LibFuzzer that can cause an infinite loop...
dan [Sat, 7 Nov 2015 18:07:15 +0000 (18:07 +0000)] 
Fix a bug in CTE handling discovered by LibFuzzer that can cause an infinite loop in the query planner.

FossilOrigin-Name: 088009efdd56160bb4eee0fbd829a529b141274e

9 years agoAdd test cases for WITH clauses. infinite-with-loop-bug
dan [Sat, 7 Nov 2015 17:51:39 +0000 (17:51 +0000)] 
Add test cases for WITH clauses.

FossilOrigin-Name: e7e65c7559ed43e7065adc2ec1bd242bf187b7c3

9 years agoProposed fix for an infinite loop bug in the WITH clause semantic analysis
drh [Sat, 7 Nov 2015 17:48:21 +0000 (17:48 +0000)] 
Proposed fix for an infinite loop bug in the WITH clause semantic analysis
logic.

FossilOrigin-Name: 028475cb17a4b50baf0e9aba9bd3403d0a5d03b0

9 years agoEnhance TreeView to show WITH clauses. Add an assert to detect the
drh [Sat, 7 Nov 2015 15:19:59 +0000 (15:19 +0000)] 
Enhance TreeView to show WITH clauses.  Add an assert to detect the
infinite loop behavior when certain kinds of errors occur on a nested
WITH clause.

FossilOrigin-Name: 2040d88e877bdb69de125a047cefb4a1558e89e8

9 years agoThe OPFLAG_SEEKEQ optimization is only applicable to equality comparisons
drh [Sat, 7 Nov 2015 01:19:00 +0000 (01:19 +0000)] 
The OPFLAG_SEEKEQ optimization is only applicable to equality comparisons
against an index, not against a rowid table.

FossilOrigin-Name: 0f5b147d1fe83c34d0fbeacc7422be94d8441bc1

9 years agoFix a harmless sanitizer warning in the ieee754 extension.
drh [Sat, 7 Nov 2015 00:51:15 +0000 (00:51 +0000)] 
Fix a harmless sanitizer warning in the ieee754 extension.

FossilOrigin-Name: dd9a26ecdeaef7b0b9cbf4ff70448ab13a276b4e

9 years agoAvoid an unnecessary key comparison when doing an indexed lookup against an
drh [Fri, 6 Nov 2015 20:22:25 +0000 (20:22 +0000)] 
Avoid an unnecessary key comparison when doing an indexed lookup against an
equality constraint.

FossilOrigin-Name: d741e1ccdce96e6142e294fbdd20a0282296dcea

9 years agoWork around a sign-extension bug in the optimizer on the HP C compiler that
drh [Fri, 6 Nov 2015 20:13:48 +0000 (20:13 +0000)] 
Work around a sign-extension bug in the optimizer on the HP C compiler that
comes with HP/UX.

FossilOrigin-Name: 46c36b1543d7a8156eaa866c67080526153fb10d

9 years agoTest changes: Omit numindex1.test from valgrind, since valgrind uses a
drh [Fri, 6 Nov 2015 20:04:08 +0000 (20:04 +0000)] 
Test changes:  Omit numindex1.test from valgrind, since valgrind uses a
none-standard floating-point processor which gives inconsistent answers.
Run one releasetest.tcl module using LONGDOUBLE_TYPE=double.

FossilOrigin-Name: d421efbf9a5688f5a20b6dfe3aa216299c7b9c86

9 years agoEnforce consistent comparison results between integer and floating point
drh [Fri, 6 Nov 2015 19:53:09 +0000 (19:53 +0000)] 
Enforce consistent comparison results between integer and floating point
values.  Fix for ticket [38a97a87a6e4e83].

FossilOrigin-Name: 849e686da2d20fd7f938427475fc792384d2aa7c

9 years agoMerge the fixes and tests for the ieee754 extension. int-float-precision
drh [Fri, 6 Nov 2015 17:59:33 +0000 (17:59 +0000)] 
Merge the fixes and tests for the ieee754 extension.

FossilOrigin-Name: 7a9988d38cd7ab3df79eed97631ff23d5928b4ad

9 years agoA proposed patch for working around a bug in the optimizer for the HP compiler hp-optimizer-fix
drh [Fri, 6 Nov 2015 17:28:00 +0000 (17:28 +0000)] 
A proposed patch for working around a bug in the optimizer for the HP compiler
found on HP/UX Itanium.

FossilOrigin-Name: 8a171548e4f665f03d00af6dcb46669a4a78fad5

9 years agoTest cases for the ieee754 extension.
drh [Fri, 6 Nov 2015 17:01:20 +0000 (17:01 +0000)] 
Test cases for the ieee754 extension.

FossilOrigin-Name: 840cbda88675b6012dae2423252bf42d0d563874

9 years agoA different approach to handling integer/float comparisons. This seems to
drh [Fri, 6 Nov 2015 14:59:07 +0000 (14:59 +0000)] 
A different approach to handling integer/float comparisons.  This seems to
work better on systems where "long double" and "double" are the same type,
but still needs refinement and testing.

FossilOrigin-Name: a3f7614b2095fbc1eca54801b2da88f85f294ec5

9 years agoHave fts5 load its configuration from the xConnect() method is invoked. This ensures...
dan [Fri, 6 Nov 2015 12:50:57 +0000 (12:50 +0000)] 
Have fts5 load its configuration from the xConnect() method is invoked. This ensures that the very first query run uses the correct value of the 'rank' option.

FossilOrigin-Name: 33e6606f5e497e81119ec491cf2370f60bddafc0

9 years agoMore test cases for indexes on large numeric values.
drh [Fri, 6 Nov 2015 04:14:38 +0000 (04:14 +0000)] 
More test cases for indexes on large numeric values.

FossilOrigin-Name: c220741a62808c64d42c6161152ab06af74cb48c

9 years agoSome simple test cases from the mailing list.
drh [Fri, 6 Nov 2015 03:37:02 +0000 (03:37 +0000)] 
Some simple test cases from the mailing list.

FossilOrigin-Name: 1d642b73f9e93a1ba291bf265b3d17e46551d70e

9 years agoIncrease the precision of integer vs. floating-point comparisons.
drh [Fri, 6 Nov 2015 01:04:41 +0000 (01:04 +0000)] 
Increase the precision of integer vs. floating-point comparisons.
Candidate fix for ticket [38a97a87a6e4e8].

FossilOrigin-Name: cfcaa0ff276b1936418abe72c7e0c99d90d37885

9 years agoImprovements and simplifications to the equality seek logic. Tests are seekeq-experiment
drh [Thu, 5 Nov 2015 22:30:54 +0000 (22:30 +0000)] 
Improvements and simplifications to the equality seek logic.  Tests are
adjusted so that they all pass now.

FossilOrigin-Name: 997ce6c90b454c03cc2ef6934752ee8dd2e520e3

9 years agoFix typo in help information for an FTS5 script.
mistachkin [Thu, 5 Nov 2015 21:49:19 +0000 (21:49 +0000)] 
Fix typo in help information for an FTS5 script.

FossilOrigin-Name: 777ae8007f6ff303b120b25f2dc37d7ef6b6a4f8

9 years agoThe top of an index equality loop normally starts with OP_SeekGE and OP_IdxGT.
drh [Thu, 5 Nov 2015 20:25:09 +0000 (20:25 +0000)] 
The top of an index equality loop normally starts with OP_SeekGE and OP_IdxGT.
This check-in adds a flag to OP_SeekGE such that it fails immediately if
the key is not equal, then jumps over the OP_IdxGT, saving a call to the key
comparison functions.  Consider this check-in a proof-of-concept.  It needs
improvement before going on trunk.  Some tests fail, but only because they
new use fewer key comparisons than expected (which is a good thing!).

FossilOrigin-Name: 32e31b9bc8664afcd326a1ff3892d86dc5202474

9 years agoAdd the 'hashsize' configuration option to fts5, for configuring the amount of memory...
dan [Thu, 5 Nov 2015 18:09:16 +0000 (18:09 +0000)] 
Add the 'hashsize' configuration option to fts5, for configuring the amount of memory allocated to the in-memory hash table while writing.

FossilOrigin-Name: 445480095e6877cce8220b1c095f334bbb04c1c3

9 years agoRemove a #pragma used to work around an issues with MSVC 2012 that has been
drh [Thu, 5 Nov 2015 11:47:48 +0000 (11:47 +0000)] 
Remove a #pragma used to work around an issues with MSVC 2012 that has been
overcome but subsequent changes.

FossilOrigin-Name: 8303e4cfed715464c710668c2bdc58a8e3d4cd9f