drh
07b09a9420
Remove an unused non-terminal from the grammar.
...
FossilOrigin-Name: 3c37c522883ea9f2eec4f0ba5c5141912c003425
2015-11-10 00:02:49 +00:00
drh
82415f2d8d
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
2015-11-09 19:33:42 +00:00
drh
a441404f92
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
2015-11-09 15:06:26 +00:00
drh
3781f01780
Size reduction and performance improvement in the stack-popping logic of
...
the Lemon-generated parser.
FossilOrigin-Name: 9748c48a4fbd5c06208bbf80e7bfcb159ec026d9
2015-11-09 14:11:37 +00:00
drh
d797035ac7
Avoid unnecessary function prologues in the sqlite3VdbeAddOp3() routine.
...
FossilOrigin-Name: 7c6a19ba9b0bdb1cc0b9a9796b7c1c114944d927
2015-11-09 12:33:39 +00:00
drh
0739e45bcd
Small size reduction and performance increase in the parser.
...
FossilOrigin-Name: d62cd757a69cc49c2d309e27c948610b5868632f
2015-11-09 02:08:09 +00:00
drh
6e7722669e
Proposed fix for an infinite loop bug in the WITH clause semantic analysis
...
logic.
FossilOrigin-Name: 028475cb17a4b50baf0e9aba9bd3403d0a5d03b0
2015-11-07 17:48:21 +00:00
drh
2476a6f2cb
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
2015-11-07 15:19:59 +00:00
drh
98a0e0083f
Merge recent enhancements and bug fixes from trunk.
...
FossilOrigin-Name: 78bc42e664e9fa9ee21ad9762c369f291fcdf5db
2015-11-07 01:33:30 +00:00
drh
d6b7946c32
The OPFLAG_SEEKEQ optimization is only applicable to equality comparisons
...
against an index, not against a rowid table.
FossilOrigin-Name: 0f5b147d1fe83c34d0fbeacc7422be94d8441bc1
2015-11-07 01:19:00 +00:00
drh
3adf8783b0
Avoid an unnecessary key comparison when doing an indexed lookup against an
...
equality constraint.
FossilOrigin-Name: d741e1ccdce96e6142e294fbdd20a0282296dcea
2015-11-06 20:22:25 +00:00
drh
f83075201f
Work around a sign-extension bug in the optimizer on the HP C compiler that
...
comes with HP/UX.
FossilOrigin-Name: 46c36b1543d7a8156eaa866c67080526153fb10d
2015-11-06 20:13:48 +00:00
drh
c8bb430dfe
A proposed patch for working around a bug in the optimizer for the HP compiler
...
found on HP/UX Itanium.
FossilOrigin-Name: 8a171548e4f665f03d00af6dcb46669a4a78fad5
2015-11-06 17:28:00 +00:00
drh
2ab410aa1e
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
2015-11-06 14:59:07 +00:00
drh
8b8446fc21
Increase the precision of integer vs. floating-point comparisons.
...
Candidate fix for ticket [38a97a87a6e4e8].
FossilOrigin-Name: cfcaa0ff276b1936418abe72c7e0c99d90d37885
2015-11-06 01:04:41 +00:00
drh
b1d607de25
Improvements and simplifications to the equality seek logic. Tests are
...
adjusted so that they all pass now.
FossilOrigin-Name: 997ce6c90b454c03cc2ef6934752ee8dd2e520e3
2015-11-05 22:30:54 +00:00
drh
70528d7868
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
2015-11-05 20:25:09 +00:00
mistachkin
63225522f9
Remove #pragma that was used to work around an obsolete issue with MSVC 2012.
...
FossilOrigin-Name: b9b22fae69000ca506656f9cf847e713c6304b75
2015-11-05 03:26:36 +00:00
drh
8dd1c25388
Performance improvements in the getAndInitPage() routine of btree.c.
...
FossilOrigin-Name: 2aa50f6f2029e3c91a4cb91224df8ec1194f215e
2015-11-04 22:31:02 +00:00
drh
9584f58cc2
Rename the sqlite3PagerAcquire() function to sqlite3PagerGet(). The former
...
macro called sqlite3PagerGet() has been removed.
FossilOrigin-Name: 708253be34084b89987efe955c34557516171a3a
2015-11-04 20:22:37 +00:00
drh
e2ef7dc05b
Merge all recent enhancements and fixes from trunk.
...
FossilOrigin-Name: 0546d1cd1a3402890edade7970c269cc3f17bc98
2015-11-02 18:57:26 +00:00
dan
f0db464b93
On unix, if a file is opened via a symlink, create, read and write journal and wal files based on the name of the actual db file, not the symlink.
...
FossilOrigin-Name: 6d5ce3ede4c7038c19a77268a5a7b9d5650933c2
2015-11-02 15:08:56 +00:00
drh
153110a7da
If a table-constraint PRIMARY KEY lists a single column in single-quotes and
...
that column has type INTEGER, then make that column an integer primary key,
for historical compatibility. Fix for ticket [ac661962a2aeab3c331].
FossilOrigin-Name: db319a035feeb6f8fcd04f90fb10cd4b06e68184
2015-11-01 21:19:13 +00:00
dan
245fdc60d6
On unix, if a file is opened via a symlink, create, read and write journal and wal files based on the name of the actual db file, not the symlink.
...
FossilOrigin-Name: c7c8105099c0412ac6c605f98987092c10bde57c
2015-10-31 17:58:33 +00:00
dan
6a75c8ad94
Add mutex operations to test code in test3.c to avoid triggering assert() failures in certain configurations.
...
FossilOrigin-Name: 9f19420b0a79dff65fc3a9d548f4b3fc4955f9f9
2015-10-30 20:54:25 +00:00
drh
d286b9fb7d
Merge all the latest enhancements from trunk.
...
FossilOrigin-Name: 395a153ff7b3c7a72f3d02b6fe76d72383f4e480
2015-10-30 16:50:00 +00:00
dan
3bfab7c6d6
Add new API function sqlite3_db_cacheflush().
...
FossilOrigin-Name: ad80d3073388c59f67171720efc6ef766e19886f
2015-10-30 16:14:03 +00:00
dan
5596eb3020
Return immediately if sqlite3PagerWrite() is called when the pager is in PAGER_ERROR state.
...
FossilOrigin-Name: a6695b008487aeb7badf572fa32bfcba3c9fab03
2015-10-30 14:28:16 +00:00
dan
9fb13abc6e
Do not attempt to flush the pages of an in-memory database to disk if sqlite3_db_cacheflush() is called.
...
FossilOrigin-Name: 9b79a390440a23542a370b591e567b31ebb35c42
2015-10-29 21:11:22 +00:00
dan
dbf6773e88
Avoid automatically rolling back the transaction if an SQLITE_IOERR or SQLITE_FULL error occurs within sqlite3_db_cacheflush().
...
FossilOrigin-Name: 370b5d520c6523526988d0db5299f1bd09567782
2015-10-29 18:16:40 +00:00
drh
1167d32716
Make the internal sqlite3PExpr() interface responsive to the
...
TKFLG_DONTFOLD flag on the operator parameter.
FossilOrigin-Name: b10ab59fb8a696d11a269f3904e799c687246aea
2015-10-28 20:01:45 +00:00
dan
6fa255fd5c
Add experimental API sqlite3_db_cacheflush().
...
FossilOrigin-Name: 65b86dc1fa4a57cc3cde86a820d9f848aa288a15
2015-10-28 19:46:57 +00:00
drh
9109b7f8e1
Factor out adding NOT expression nodes in the parser into a subroutine.
...
FossilOrigin-Name: 001854181640bd9b088f2bc16083d84808c3da18
2015-10-28 16:05:10 +00:00
drh
1bbbd85bd2
Provide hints to the storage engine using the sqlite3BtreeCursorHint()
...
interface when compiling with SQLITE_ENABLE_CURSOR_HINTS.
FossilOrigin-Name: 45d3539e152a44629639723f18ce70d9ef01f31a
2015-10-27 13:35:14 +00:00
drh
f7854c7329
Split out sqlite3BtreeCursorHintFlags() from sqlite3BtreeCursorHint()
...
the interface for improved performance.
FossilOrigin-Name: b3ec9a0d62c5543e91d4be2cd634ec4a3d6dca11
2015-10-27 13:24:37 +00:00
dan
2853c688ad
Add new extended error code SQLITE_IOERR_AUTH.
...
FossilOrigin-Name: b4e70dd08e79decaa09f7b99e2dc7e2df92f26ee
2015-10-26 20:39:56 +00:00
dan
c5dc3dcd6e
Merge the BTREE_FORDELETE enhancement with this branch.
...
FossilOrigin-Name: 20da0849ce910ceb445954dfc5f985acf9a02695
2015-10-26 20:11:24 +00:00
drh
0691191d26
Merge in all trunk changes prior to the BTREE_FORDELETE enhancement.
...
FossilOrigin-Name: 53d5a4add6b60722ad77daf98b6b8983b081e16a
2015-10-26 18:51:09 +00:00
drh
ad61c46409
Capture BTREE_FORDELETE test cases that were mistakenly omitted from the
...
previous merge.
FossilOrigin-Name: de6972515f65c5cf5da7cfdf876a05718299e9b8
2015-10-26 18:01:36 +00:00
drh
3d541a5b8c
Provide the BTREE_FORDELETE flag to sqlite3BtreeCursor() if the cursor will
...
be used only for deletions and seeking.
FossilOrigin-Name: 871b1c78bcbea1cb03d482f2f424c4e012633695
2015-10-26 17:50:54 +00:00
dan
433d5aaed1
Fix an uninitialized variable problem in the test code added by the previous commit.
...
FossilOrigin-Name: 7849662ef94fa48fe53177db5623f46b3cb401e8
2015-10-26 16:34:13 +00:00
dan
6b513640c0
Test that the binary record "0x01 0x00" is interpreted by OP_Column as a vector of NULL (or default) values.
...
FossilOrigin-Name: 5bdc3c82bd10f924c12568eb0fa7a07393fc864f
2015-10-26 16:31:18 +00:00
drh
4dd83a22f2
Fix a C99-ism and a harmless compiler warning.
...
FossilOrigin-Name: 138783b553602a055b3efdeac5947cf5ccd76b5d
2015-10-26 14:54:32 +00:00
drh
46e6ea0282
When compiling with SQLITE_HAS_CODEC, honor the hexkey= query parameter on
...
URI pathnames in sqlite3_open_v2().
FossilOrigin-Name: e0ce3fc089c2523b8b718b4a4f9ab8c4d0432fc7
2015-10-26 14:41:35 +00:00
drh
56d90be183
Remove an unreachable branch in malloc.c.
...
FossilOrigin-Name: a36b7fe92372a13ff0b6e08f1704496045c6f62a
2015-10-26 12:55:56 +00:00
dan
fb785b2c2b
When creating an automatic-index on a sub-query, add a unique integer to the end of each index key to ensure the entire key is unique. Fix for [8a2adec1].
...
FossilOrigin-Name: bfea226d0d226a046a8bfb7a7a6288850d69bd26
2015-10-24 20:31:22 +00:00
dan
2b4e95226c
Remove an unused #define from whereInt.h. Add comments describing the new sqlite3BtreeCursor() flags.
...
FossilOrigin-Name: 4c0ba8be43bb7c7100456bd8cd6921c164be31e1
2015-10-23 11:50:23 +00:00
dan
fd261ec67e
Modifications to pass a flag to internal routine sqlite3BtreeCursor() when a cursor that is used solely for deleting b-tree entries, or for obtaining the components of keys to delete from other b-trees, is opened.
...
FossilOrigin-Name: cdc92919e600007cae5eb61223684f48a65babc0
2015-10-22 20:54:33 +00:00
mistachkin
7ef855f156
Alternate compiler warning fix for sqlite3StatusHighwater.
...
FossilOrigin-Name: 4315d20200d578c9252dcb26e60739063a8eff1d
2015-10-22 18:06:40 +00:00
drh
b0df963465
Fix a comment in expr.c and add a CORRUPT_DB to an assert() in btree.c.
...
FossilOrigin-Name: 0df371d1a51c2028aefa4c704707773750317689
2015-10-16 23:55:08 +00:00