]>
git.ipfire.org Git - thirdparty/sqlite.git/log
mistachkin [Mon, 30 Nov 2015 23:29:07 +0000 (23:29 +0000)]
Add experimental support for the 'test_fs' test module on Win32.
FossilOrigin-Name:
f3ffb3aeea95712e92919fd5071741327add9643
drh [Mon, 30 Nov 2015 22:52:14 +0000 (22:52 +0000)]
Add the SQLITE_PRINTF_PRECISION_LIMIT compile-time option.
FossilOrigin-Name:
ecad75d69e0d5c83dd3584d363e557e84b65f7f2
drh [Mon, 30 Nov 2015 22:22:23 +0000 (22:22 +0000)]
Fix a problem in xFullPathname for the unix VFS. The problem was found by
Kostya Serebryany using libFuzzer.
FossilOrigin-Name:
bb1e2c4df0b81327923f121dd6c002845486a314
drh [Mon, 30 Nov 2015 20:36:26 +0000 (20:36 +0000)]
The EOVERFLOW errors from fstat() is not possible unless SQLite has been
compiled with SQLITE_DISABLE_LFS.
FossilOrigin-Name:
8cfb7a50bb70ba1e021c1d12d31563e98a20d291
drh [Mon, 30 Nov 2015 19:15:25 +0000 (19:15 +0000)]
Fix the threadtest3 test program so that it works with VFSes that omit the
xCurrentTime() method and supply only xCurrentTimeInt64().
FossilOrigin-Name:
3b155855f3d5918f1df7dbd19783215b3da0ca3e
dan [Mon, 30 Nov 2015 12:01:37 +0000 (12:01 +0000)]
Add the "colUsed" field to the sqlite3_index_info structure passed to virtual table xBestIndex methods. To indicate the subset of the virtual table columns that may be required by the current scan.
FossilOrigin-Name:
47f10b7e5d8c1d965df891990090623444933cc9
drh [Mon, 30 Nov 2015 00:05:39 +0000 (00:05 +0000)]
Simplifications to the locking logic in the unix-dotfile VFS.
FossilOrigin-Name:
583813525888c7e106f3e8cb46c1a507006daee6
drh [Sun, 29 Nov 2015 21:46:19 +0000 (21:46 +0000)]
Fix the sqldiff utility program so that it works for schemas that have
tables with zero-length column names.
FossilOrigin-Name:
64263ccb8f9835c615242de6e28db24f953422fa
drh [Sat, 28 Nov 2015 21:49:53 +0000 (21:49 +0000)]
Improvements to temporary file creation logic in the unix VFS.
FossilOrigin-Name:
d6e177fd09c83d46adc5b5d36e9a439aa5397450
drh [Sat, 28 Nov 2015 18:06:36 +0000 (18:06 +0000)]
Add the SQLITE_FCNTL_VFS_POINTER file control which obtains a pointer to
the top-level VFS in use by a database connection.
FossilOrigin-Name:
7c6a809e25138950f50554e1fb96e0b6ebbe0bd4
drh [Sat, 28 Nov 2015 17:38:22 +0000 (17:38 +0000)]
Disable testing with SQLITE_USER_AUTHENTICATION as the makefiles are not set
up to do that.
FossilOrigin-Name:
14bbcdc64ecc21f47aed8935858788928ca63107
drh [Thu, 26 Nov 2015 22:12:41 +0000 (22:12 +0000)]
The first argument to SQLITE_CONFIG_PAGECACHE, SQLITE_CONFIG_SCRATCH, and
SQLITE_CONFIG_HEAP must always be a pointer.
FossilOrigin-Name:
5e14cadff09d7425c8e1cc5e817f2b0609e52a46
dan [Thu, 26 Nov 2015 19:33:41 +0000 (19:33 +0000)]
Add the "colUsed" field to the sqlite3_index_info structure passed to virtual table xBestIndex methods. To indicate the subset of the virtual table columns that may be required by the current scan.
FossilOrigin-Name:
116b206494eb8ba963c7c5acfbf9e7b6db11c79c
dan [Thu, 26 Nov 2015 15:51:55 +0000 (15:51 +0000)]
Fix a problem with the userauth extension and no-authentication databases. Run the tests for this extension as part of the Debug-One module in releasetest.tcl.
FossilOrigin-Name:
8b15621952889b4ba53b2ea3171fef7ef0479ddb
drh [Thu, 26 Nov 2015 10:37:05 +0000 (10:37 +0000)]
Simplify logic for syncing directories after creating or deleting a file in
the unix VFS.
FossilOrigin-Name:
eb180b4f04d412dcd0af138e2dd7f62fbb5ac439
drh [Thu, 26 Nov 2015 02:21:05 +0000 (02:21 +0000)]
Small simplification to the xOpen method in the unix VFS.
FossilOrigin-Name:
96e7d638ecdabbf84a152036eb01d408d142839e
drh [Wed, 25 Nov 2015 23:13:14 +0000 (23:13 +0000)]
Simplify the temporary filename generator and the time-of-day functions in
the unix VFS.
FossilOrigin-Name:
6c5621ce1b1a65913b088ed8be65f9b689260d2c
drh [Wed, 25 Nov 2015 18:40:38 +0000 (18:40 +0000)]
Fix harmless compiler warnings in test_fs.c. Fix typos and clean up the text
of the documentation for sqlite3_strglob() and sqlite3_strlike().
FossilOrigin-Name:
697b20534c2d780cdd8cc165d2930f6e56480770
dan [Wed, 25 Nov 2015 18:07:46 +0000 (18:07 +0000)]
Update test_fs.c to include a virtual table that reads a file-system hierarchy. Use it to further test GLOB and LIKE support for virtual tables.
FossilOrigin-Name:
6ef6578c03b7cfbeaaf3627b9eea2febf501ace5
drh [Wed, 25 Nov 2015 18:03:33 +0000 (18:03 +0000)]
Make the xAccess method of the unix VFS smaller and faster.
FossilOrigin-Name:
191aef986ffc4ef34d813e417e52a4ec820b0300
drh [Wed, 25 Nov 2015 15:15:03 +0000 (15:15 +0000)]
Remove unused methods from the unix VFS.
FossilOrigin-Name:
228bd15bbb7a1e6e3e0d03832e7f39ba169356a8
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
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
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
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
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
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
dan [Tue, 24 Nov 2015 17:44:26 +0000 (17:44 +0000)]
Merge latest trunk changes with this branch.
FossilOrigin-Name:
99222bb3e5f9b2a9a10d9561a9fd8c0f717baaff
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
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
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
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
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
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
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
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
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
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
drh [Sat, 21 Nov 2015 17:27:42 +0000 (17:27 +0000)]
Fix over-length source code lines. No logic changes.
FossilOrigin-Name:
198d191b2f5ef7d63ac0093c701955c9052fd734
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
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
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
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
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
dan [Thu, 19 Nov 2015 18:09:05 +0000 (18:09 +0000)]
Fix a problem with VACUUM and __hidden__ columns.
FossilOrigin-Name:
13995756ad8b80568aa2f74387788a8cab1123ef
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
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
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
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
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
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
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
dan [Wed, 18 Nov 2015 20:59:47 +0000 (20:59 +0000)]
Add tests for views to hidden.test.
FossilOrigin-Name:
27d4b6f5756c7b19c00c95d46a77280c8b6f03a4
drh [Wed, 18 Nov 2015 20:57:50 +0000 (20:57 +0000)]
Honor the "__hidden__" prefix on the columns of views.
FossilOrigin-Name:
3071ba2bdbda7018d0a285eceb04b8527209ec1e
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
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
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
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
mistachkin [Tue, 17 Nov 2015 19:17:14 +0000 (19:17 +0000)]
Fix uninitialized variable in the command line shell.
FossilOrigin-Name:
dc2ac024d31a898bbc3e7fc824d806e63e993234
mistachkin [Tue, 17 Nov 2015 19:16:39 +0000 (19:16 +0000)]
Fix harmless compiler warning.
FossilOrigin-Name:
eea26b6caea37422c9b46a7a3a538b0c9575f392
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
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
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
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
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
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
drh [Fri, 13 Nov 2015 20:52:49 +0000 (20:52 +0000)]
Fix a memory leak in the fuzzcheck utility.
FossilOrigin-Name:
dfd6d9f4fbe902086f9158dfa5f37e781765a683
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
drh [Fri, 13 Nov 2015 13:15:42 +0000 (13:15 +0000)]
Add the --transaction option to the sqldiff tool.
FossilOrigin-Name:
8882d1f3ef0fc53d7c19918c3af43c5bdd79e88f
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
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
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
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
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
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
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
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
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
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
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
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
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
drh [Tue, 10 Nov 2015 14:51:22 +0000 (14:51 +0000)]
Improved output formatting for "PRAGMA parser_trace=ON;".
FossilOrigin-Name:
e43e1171fd7837a08069dc25df4eac14db1c2afe
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
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
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
drh [Tue, 10 Nov 2015 12:31:25 +0000 (12:31 +0000)]
Fix harmless compiler warnings in FTS5.
FossilOrigin-Name:
09752e51a18ac1b4c9642965e6ee1b6a32de00df
drh [Tue, 10 Nov 2015 03:30:51 +0000 (03:30 +0000)]
Performance enhancement to the tokenizer.
FossilOrigin-Name:
6ea2df86c95c226052f528424e9bee367a2e765a
drh [Tue, 10 Nov 2015 00:02:49 +0000 (00:02 +0000)]
Remove an unused non-terminal from the grammar.
FossilOrigin-Name:
3c37c522883ea9f2eec4f0ba5c5141912c003425
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
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
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
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
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
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
drh [Mon, 9 Nov 2015 12:33:39 +0000 (12:33 +0000)]
Avoid unnecessary function prologues in the sqlite3VdbeAddOp3() routine.
FossilOrigin-Name:
7c6a19ba9b0bdb1cc0b9a9796b7c1c114944d927
drh [Mon, 9 Nov 2015 02:08:09 +0000 (02:08 +0000)]
Small size reduction and performance increase in the parser.
FossilOrigin-Name:
d62cd757a69cc49c2d309e27c948610b5868632f
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
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
dan [Sat, 7 Nov 2015 17:51:39 +0000 (17:51 +0000)]
Add test cases for WITH clauses.
FossilOrigin-Name:
e7e65c7559ed43e7065adc2ec1bd242bf187b7c3