drh
c595419910
Minor changes to make some newer test cases work under more compile-time
...
options.
FossilOrigin-Name: 382eea36c56f866efee1321f643687a4061e8b9e
2016-12-27 02:43:47 +00:00
drh
dfcfff646a
During fuzz testing with the fuzzcheck utility program, impose a record
...
length limit of 100MB and a limit on the length of LIKE strings of 50 bytes.
FossilOrigin-Name: edc9db41f3ee200ba44579a46ed8331bbbbf539e
2016-12-26 12:25:19 +00:00
drh
e6ce2b6704
Enable ossfuzz.c to build even if SQLITE_OMIT_PROGRESS_CALLBACK is defined.
...
FossilOrigin-Name: a37c00dcd192f9d610ecb91810ef57ef41d1f6a6
2016-12-26 12:14:44 +00:00
drh
9cc5b4eeb5
Remove an incorrect ALWAYS() macro from balance_nonroot(), which could result
...
in corrupt databases if it were optimized out. This ALWAYS was added
only two weeks ago (check-in [f9f2e23bbd68a]) and has never appeared in an
official release.
FossilOrigin-Name: e447b23cfd7bb31817e42adb3a98868d351c6b8a
2016-12-26 01:41:33 +00:00
drh
a1a523a5bb
Add the built-in affinity() SQL function.
...
FossilOrigin-Name: 57e40e1cb1bcd3dd8473d2fdeecc9c7ff3d6192b
2016-12-26 00:18:36 +00:00
drh
beaf514e23
Enhance the fuzztest utility with the --prng-seed option. Always reseed the
...
PRNG prior to each test.
FossilOrigin-Name: 8c5187f69d719b69aa6eaf2dc8f89243e5979222
2016-12-26 00:15:56 +00:00
drh
6a5a4208fc
Combine the implementations of the ".tables" and ".indexes" commands in the
...
command-line shell. The ".indexes" command now puts the indexes in multiple
columns, just like ".tables" and shows all indexes in all attached databases.
FossilOrigin-Name: def29333655691c7d54451193be13445a2857d29
2016-12-24 21:32:40 +00:00
drh
2951809ed4
The schema name "main" is always an acceptable alias for the primary database
...
even if the primary database is renamed using SQLITE_DBCONFIG_MAINDBNAME.
FossilOrigin-Name: 2f481b854f04bec546eb172d1b6dbc88067d3fda
2016-12-24 19:37:16 +00:00
drh
b20a61b704
Change the output format of the ".databases" command in the command-line shell
...
so that it shows the schema name, a colon, and the corresponding filename.
FossilOrigin-Name: 8558512e9ca343300a767ef23810f2d7b50fd925
2016-12-24 18:18:58 +00:00
drh
a4b81d2a44
In the command-line shell, improve the formatting to the ".databases"
...
command and on the ".tables" command, only show the schema prefix for
databases past the first ("main") database.
FossilOrigin-Name: c0d5626e274cbf8c2d2167183c4d6835d72dae57
2016-12-24 18:04:28 +00:00
drh
6bd4dc6dc4
Fill in missing opcode documentation entries for OP_SorterNext and
...
OP_SorterSort.
FossilOrigin-Name: 2940661b8c014b94973e05c44f1b1f4f443dbdd3
2016-12-23 16:05:22 +00:00
drh
cfdc235ec3
Use the VList object to capture the mapping between SQL parameter names and
...
variable numbers in a single memory allocation.
FossilOrigin-Name: 99fddf2ecb7202bfdf5ddc4cc1c4e155c883f7ec
2016-12-23 13:54:22 +00:00
drh
ce1bbe51b5
Add check to prevent a VList from growing after pointers to labels have been
...
taken.
FossilOrigin-Name: aa23d7eaf69f5ecbf9500b2353846094cae41e6c
2016-12-23 13:52:45 +00:00
drh
f326d66d61
Fix the VList object so that it actually works.
...
FossilOrigin-Name: 9dcd85698af46fd5ba34004ca690d368c4ae3078
2016-12-23 13:30:53 +00:00
drh
9bf755cc44
Use the VList object to replace Parse.azVar for tracking the mapping between
...
SQL parameter names and parameter numbers. There is a performance
improvement, though there are still a few hiccups in the current code.
FossilOrigin-Name: 68ecafa1425a41358c88f41efea3262f1b4490f2
2016-12-23 03:59:31 +00:00
drh
344a1bf133
Fix harmless compiler warnings.
...
FossilOrigin-Name: fa86db2f915c0a189c3be02b1aaa7f24d339d7d6
2016-12-22 14:53:25 +00:00
drh
cdfffed790
Change the default lookaside configuration from 500 slots of 128 bytes each to 125 slots of 512 bytes each. This uses the same amount of memory (64,000 bytes) but seems to perform much better in test applications.
...
FossilOrigin-Name: 52a12e47de88744187bd1c71f2820885cde414a8
2016-12-21 21:26:58 +00:00
drh
a582b01698
Simplifications to the way UnpackedRecord objects are allocated. Smaller
...
and faster code that also fixes a subtle (currently unreachable) bug.
FossilOrigin-Name: f7ab01f254cd9d7006b8dec29adb234a671b8e6f
2016-12-21 19:45:54 +00:00
drh
f99dd359d0
Change the OP_IfNotZero opcode so that it decrements register P1 by 1 rather
...
than the value in P3, and so that it only decrements if originally positive.
This avoids decrementing the smallest 64-bit signed integer.
FossilOrigin-Name: 165c044686212fbf7182dd560ad1e57eb4cc9838
2016-12-18 17:42:00 +00:00
drh
22d709dd91
Refinements to the new dbfuzz test program.
...
FossilOrigin-Name: 50325abe79b6a79b09ec6a1cee7d80ca02337428
2016-12-17 21:07:30 +00:00
drh
6918e2f9b2
Enhance fuzzershell.c to read and execute SQL commands in the autoexec table
...
of the database under test. Add the dbfuzz.c test program combining selected
features of fuzzershell.c and fuzzcheck.c.
FossilOrigin-Name: ef6e071a62cd79a0edbbef9f41ca9482540e5cb8
2016-12-17 20:27:22 +00:00
dan
11da002c02
Fix a problem in the shell tools readfile() command causing blobs to be
...
truncated at the first embedded 0x00 byte in release builds, or an assert() to
fail in a debug build.
FossilOrigin-Name: 8dedd6ad44bd1d103dced9d1350188cb2327128d
2016-12-17 08:18:05 +00:00
drh
d47c6c495d
Add the ".lint fkey-indexes" command to the command-line shell.
...
FossilOrigin-Name: 94689e3bdac2eabbcf1a51d741c2604ed4bd8a40
2016-12-16 18:43:49 +00:00
drh
3fd9f33bd1
Fix minor issues with the ".lint" command implemention in the shell and
...
the shell help text related to ".lint".
FossilOrigin-Name: 1268dc77712d85de0b62332c88b22f7489f4e87f
2016-12-16 18:41:11 +00:00
drh
186c930702
Built-in PRAGMA statements without side-effects can be invoked as
...
table-valued functions by prefixing their name with "pragma_".
FossilOrigin-Name: d66ec5cfb67c6c8134fb642e0c2f72113fe1b7fd
2016-12-16 18:14:19 +00:00
dan
3c7ebeb548
Change ".fkey_missing_indexes" to ".lint fkey-indexes".
...
FossilOrigin-Name: ee621ade38c11806e1df57c459da5f018a6d0670
2016-12-16 17:28:56 +00:00
dan
dd9e0be46a
Update .fkey_missing_indexes to use the built-in pragma vtabs.
...
FossilOrigin-Name: 3ab05987b0cc12af64bf32d885d04aff45d7a77c
2016-12-16 16:44:27 +00:00
dan
c17f6255a4
Merge the pragma-as-vtab change into this branch.
...
FossilOrigin-Name: 4ba45e722371ca4343e3563e7e1c2896b48c9a87
2016-12-16 16:13:45 +00:00
dan
69b9383edf
Fix a problem causing the planner to generate sub-optimal plans for some queries
...
that use recursive WITH sub-queries with LIMIT clauses.
FossilOrigin-Name: 053a149cc8244a7f85137129cfcb8622efe90306
2016-12-16 15:05:40 +00:00
drh
d8b7200b84
Fix an error in the way the "schema" argument to some pragma virtual tables
...
is handled.
FossilOrigin-Name: 546821e29edb0282a4b1d8f49512e36027a6bf6d
2016-12-16 04:20:27 +00:00
drh
30776acd74
Simplifications to facilitate full test coverage.
...
FossilOrigin-Name: 01afc515970a868c6a36d9a598453d0fde9e39ca
2016-12-16 02:31:50 +00:00
drh
9a63f09204
Minor bug fixes and enhancements to the pragma eponymous virtual tables.
...
FossilOrigin-Name: 3f8f461504139a4efea0e033e3a274cc4b2d3072
2016-12-16 02:14:15 +00:00
drh
c06bbceb9c
Merge enhancements from trunk, and especially the ability to use
...
temp.sqlite_master as an alias for sqlite_temp_master.
FossilOrigin-Name: 994a4401f5c34fed17af420761291b03072a5ea1
2016-12-16 01:09:22 +00:00
drh
e0a04a36a6
All temp.sqlite_master to be used as an alias for sqlite_temp_master.
...
FossilOrigin-Name: 8d646905b830d5bb29092e103ac5cb499b3c7e5a
2016-12-16 01:00:21 +00:00
drh
ae7045cd53
Fix the cost estimation in the BestIndex method of the eponymous pragma
...
virtual table implementation.
FossilOrigin-Name: 7126807a186746a8663fbaa267d63214d06476e4
2016-12-15 21:33:55 +00:00
drh
d7175ebeaf
The pragma as eponymous virtual table mechanism now appears to work.
...
FossilOrigin-Name: 2c274a1a7b57ef1208901fbc1d96d39c0d492652
2016-12-15 21:11:15 +00:00
drh
2fcc1590c4
Code to automatically create eponymous virtual tables for read-only pragmas.
...
Compiles, but does not yet work.
FossilOrigin-Name: 988a61e8b03f302c69d11898d1ea95f002cba1a5
2016-12-15 20:59:03 +00:00
drh
35a1895990
Do exponential rather than linear expansion of the SrcList.a array when
...
appending new elements, to reduce the number of malloc() calls.
FossilOrigin-Name: 4e3749127e7249f46e17bfabc614b0876f60565a
2016-12-15 18:59:14 +00:00
drh
c232aca184
Do more pragma processing from tables rather than in-line code.
...
FossilOrigin-Name: a88ca3524b97f296dffc68335466b3767a681747
2016-12-15 16:01:17 +00:00
dan
f9647b6625
Add the -groupbyparent option to the ".fkey_missing_indexes" command.
...
FossilOrigin-Name: 976c51b4836dfba2ce9b246334a85bda08ac526f
2016-12-15 06:01:40 +00:00
dan
35ac58eabc
Add the experimental ".fkey_missing_indexes" command to the shell tool. To
...
identify indexes that should be created on child keys if FK processing is to
be enabled.
FossilOrigin-Name: 7df23aca1f7c7b769d614d740b3fda3073f46ba9
2016-12-14 19:28:27 +00:00
drh
79df77821a
Refactor the Table.nRef field as Table.nTabRef for easier grepping.
...
FossilOrigin-Name: 9cae4c2e300e20304ced0dc8c1415c4922185928
2016-12-14 14:07:35 +00:00
drh
d07df8e76a
Increase the size of the reference count on Table objects to 32 bits.
...
FossilOrigin-Name: d08b72c38ff6fae6ddf7dc84a54f6d7189876289
2016-12-14 13:54:25 +00:00
drh
5ed7de09b0
Fix the configure makefile to align it with the manual makefile. Unsaved
...
changes from the previous check-in.
FossilOrigin-Name: 00a184b65f73f361e1728fea06529f746fab66b5
2016-12-14 11:39:52 +00:00
drh
c06e54345c
Adjust the unix makefiles so that "make test" runs fuzzcheck prior to even
...
attempting to build the other test programs.
FossilOrigin-Name: bb48f7a55945da4cee369bae0809037900fcaac7
2016-12-14 11:23:51 +00:00
drh
ac178b3d7f
Three times faster sqlite3SrcListAppend() in the common case by avoiding the
...
call to sqlite3SrcListEnlarge() for the first allocation.
FossilOrigin-Name: 0ea2762f1d8f6a93ae2ee3b7b835927a474c6f66
2016-12-14 11:14:13 +00:00
drh
8a123d60a8
Fix the optimization that prevents writing freelist pages to the journal.
...
FossilOrigin-Name: 6aa9b26544cbd0b41115c5f127dcf9a286d17e2b
2016-12-14 10:30:12 +00:00
drh
79f20e96dc
In the command-line shell, in the output of the ".dump", ".schema", and
...
".fullschema" commands, convert CREATE TABLE statements that appear to come
from shadow tables into CREATE TABLE IF NOT EXISTS statements.
FossilOrigin-Name: c7021960f5c070fb5c9db9e41b4000d3dc065f42
2016-12-13 23:22:39 +00:00
drh
380c08eaad
Fix harmless compiler warnings.
...
FossilOrigin-Name: ed2c9f3738c96d8e3dbece7ccb721cb1a8ae8fac
2016-12-13 20:30:29 +00:00
drh
fc4111f7d6
Convert sqlite3PagerGet() into a pointer-dispatched virtual method. This
...
makes it about 25% faster.
FossilOrigin-Name: 7f88bb44129a0cd36e27e00dc7c37e87cf3c90f7
2016-12-13 18:47:54 +00:00
drh
cbed604f52
In the pager, avoid checking for the illegal page number 0 except when creating
...
a new page.
FossilOrigin-Name: dee20ba982125ea98c280ad1571789af0f393903
2016-12-13 18:34:01 +00:00
dan
68a494c06f
Fix a problem causing SQLite to return false "foreign key violation" errors
...
when there is a partial (i.e. WHERE constrained) UNIQUE index on the parent
key columns. This bug did not cause SQLite to allow illegal data to be
inserted into the database, only to reject legal operations.
FossilOrigin-Name: 850877d1ea43104cc215353414b870c340acced2
2016-12-13 16:57:49 +00:00
drh
d5df3ff2cc
Further refinements to the virtual method implementation of
...
sqlite3PagerGet().
FossilOrigin-Name: 67df44464847b43f8c0b186157e31cc66c1e5796
2016-12-13 15:53:22 +00:00
drh
12e6f68279
Make the sqlite3PagerGet() interface into a virtual method, with different
...
implementations based on the current state of the pager. This gives a small
performance increase by avoiding unnecessary branches inside the various
methods.
FossilOrigin-Name: df5bb90d208e0633056389e97696d260e3830e8d
2016-12-13 14:32:47 +00:00
drh
26f419800a
Add the --mmap option to the speedtest1 program and to the speed-check.sh
...
script that is frequently used to run speedtest1.
FossilOrigin-Name: 1a636d5e0eec0a4d968519d1dfd35a983e512c78
2016-12-12 23:24:08 +00:00
drh
2a70254f74
Remove unnecessary MemPage initialization resets in the autovacuum ptrmap
...
processing.
FossilOrigin-Name: 1b36fbb9f05f3a5844e198b489bff36ef6cd908c
2016-12-12 18:12:03 +00:00
drh
5fa3d6ec3b
Faster operation for large in-memory databases.
...
FossilOrigin-Name: 9675518b33e8d40769daefb860dc748113f750b6
2016-12-12 16:08:44 +00:00
drh
6606586d81
Performance optimization in sqlite3PagerWrite().
...
FossilOrigin-Name: d4dff10a3d4edf8e1cc77c0a4f185d33f2c2e953
2016-12-12 11:05:15 +00:00
drh
585a59795c
Updates to the tokenizer for EBCDIC. No changes for standard builds.
...
FossilOrigin-Name: 4fc6580ffa7232aaf751f38f90c45edc8863abe5
2016-12-12 01:53:36 +00:00
drh
77dc0ed621
Size and performance optimization in btreeInitPage() in the freeblock
...
validation step.
FossilOrigin-Name: 57deb1b412e0c328528f2b4d697e326bfd028dca
2016-12-12 01:30:01 +00:00
drh
f0bc50aa3a
Change the order of comparison for divider cell overflow in balance non-root
...
to avoid a (harmless) reference to an uninitialized variable.
FossilOrigin-Name: f9f2e23bbd68a8994621623446868d666df52eff
2016-12-12 00:58:40 +00:00
drh
8c730bc5c5
Avoid an unnecessary memset() in the sqlite3BtreeInsert() routine.
...
FossilOrigin-Name: 35ecd4ebc55579175f7c934e4eb1edb969008428
2016-12-10 13:12:55 +00:00
drh
fbd8cbdcf5
Reorder the fields in the VdbeCursor object so that those that need to be
...
bulk zeroed on allocation are grouped at the beginning, and the memset()
only runs over those fields that really need it.
FossilOrigin-Name: 8165f88bb1d40693d67005a8d5dc499085f64b91
2016-12-10 12:58:15 +00:00
drh
719da30d53
Avoid signed integer overflow when dealing with a LIMIT and OFFSET whose
...
sum exceeds the maximum integer value.
FossilOrigin-Name: c9bdf7adb4745cfaf23d9afd496e71fa37793108
2016-12-10 04:06:49 +00:00
drh
2d08343a91
When doing the sqlite3BtreeInsert() overwrite optimization, make sure the
...
memcpy() does not extend off the end of the page.
FossilOrigin-Name: 684ef4582ed19b2af22dda6fc085c70464f92f1b
2016-12-09 19:42:18 +00:00
drh
f923825424
Additional comments and an assert on the sqlite3BtreeInsert() overwrite
...
optimization.
FossilOrigin-Name: c1f0ae9d2981a19875103750379ad26f2575f878
2016-12-09 18:09:42 +00:00
drh
80159da6c6
In sqlite3BtreeInsert() when replacing a re-existing row, try to overwrite
...
the cell directly rather than deallocate and reallocate the cell.
FossilOrigin-Name: 0b86fbca6615ccf1f3a62614db577a8acbec6d9e
2016-12-09 17:32:51 +00:00
dan
55092c1504
Fix an fts5 bug that could cause a crash following an OOM error or
...
sqlite3_interrupt() interrupt.
FossilOrigin-Name: 0ea3ece988883874bb88e3daaa220d7fc0cf36ef
2016-12-09 16:12:04 +00:00
drh
a2ee589c46
Avoid unnecessary zeroing of fields in the MemPage object that are going
...
to be reinitialized before use anyhow. A smaller and faster binary results.
FossilOrigin-Name: 01ada3d1068476f90dcae02cb089001ea4bcc23d
2016-12-09 16:02:00 +00:00
drh
e0568d6fb8
Fix an obscure problem in range estimation with STAT4.
...
FossilOrigin-Name: 1f16c9a76bc48331799f33b30d143c632fe0e7db
2016-12-09 00:15:17 +00:00
drh
4c177424a2
Fix the showstat4 utility program so that is displays strings using
...
standard SQL notation (single quotes) rather than C-style notation.
FossilOrigin-Name: 92998e4afbe4da1723e7e5155071a0e7242bd6ff
2016-12-08 23:52:38 +00:00
drh
5f00b9bea7
Fix a minor error in the cg_anno.tcl script causing the cycles-per-file counts
...
to be miscomputed.
FossilOrigin-Name: b26df26e184ec6da4b5537526c10f42a293d09b5
2016-12-08 19:04:36 +00:00
drh
23ee9dc369
Update the tool/cg_anno.tcl script to give a summary of cycle counts by
...
canonical source file name.
FossilOrigin-Name: 254a83bf30c15d6a355db309ccb97a8744675cc3
2016-12-08 18:36:19 +00:00
drh
2700acaacd
More changes to take advantage of the sqlite3VdbeAppendP4() method.
...
FossilOrigin-Name: 83bc5e40af9b20afeed008bf3e2669b7ac9e2dc8
2016-12-08 01:38:24 +00:00
drh
f14b7fb73b
Add the sqlite3VdbeAppendP4() method for adding P4 content to the most recently
...
coded instruction.
FossilOrigin-Name: 28883e8f3e92a8015fb5f6c8ae8580833931543d
2016-12-07 21:35:55 +00:00
drh
861b1307cb
The use P4_DYNAMIC in place of the P4_MPRINTF operand type.
...
FossilOrigin-Name: 3954f83798ed78527280c9db6360c62a5134b9ec
2016-12-07 20:22:31 +00:00
drh
bdaa1ee2ee
Performance optimization for sqlite3VdbeAddOp4().
...
FossilOrigin-Name: 04716c907bf9fc9b827e18fdc7b4e1069e201536
2016-12-07 20:09:51 +00:00
drh
4ed8c83cfd
Put the SQLITE_UNTESTABLE compile-time option in the correct order for
...
PRAGMA compile_options.
FossilOrigin-Name: 24574a15a336ffcb961334f84b56e9ab98490a79
2016-12-07 17:06:12 +00:00
drh
d12602a9c5
Rename the SQLITE_OMIT_BUILTIN_TEST compile-time option to SQLITE_UNTESTABLE.
...
FossilOrigin-Name: f360818737e73ee4f944685a547abc8f14f47819
2016-12-07 15:49:02 +00:00
dan
44c5604ced
Prevent the flattening or where-term push-down optimizations from obscuring
...
misuses of SQL row values that can lead to crashes or assert() failures.
FossilOrigin-Name: 433d16ff3adfede3be53d5b0e0512f37e225591b
2016-12-07 15:38:37 +00:00
drh
9314bd5fe2
Always honor the sqlite3.dbOptFlags bitmask, regardless of compile-time
...
options. Continuing fix for ticket [da78413751863].
FossilOrigin-Name: afab166313e0b8ad530df99887437a362398ed02
2016-12-07 13:49:11 +00:00
drh
abfd35ea03
Performance improvement and size reduction in the Expr node allocator
...
function sqlite3PExpr().
FossilOrigin-Name: 2a81763e68cdf9b8c46389b1e1a87bc2084b53e7
2016-12-06 22:47:23 +00:00
dan
2b519ab015
Add missing nul-terminator to a Tcl_AppendResult() call in tclsqlite.c.
...
FossilOrigin-Name: 0820f8b3dedfc846d187844847dfa8617539fc9a
2016-12-06 19:33:42 +00:00
drh
634133183c
In the LEMON parser-generator, fix the stack overflow processing so that it
...
correct invokes the destructor on the top-level of the parse stack.
FossilOrigin-Name: e8247065cf1d929f42d13864f8a1886ed4d329cd
2016-12-06 17:59:05 +00:00
drh
e6ad1717da
Fix a harmless redundant local variable declaration in the date/time function
...
logic.
FossilOrigin-Name: b4bc40d1836d8ed0803b81a734ce48be8e9d434a
2016-12-05 20:16:04 +00:00
drh
25ef7f55d7
Work around a bug in the definition of "ino_t" on some versions of Android.
...
FossilOrigin-Name: 8df492c1711bfea250264fdaa4892e0842705f83
2016-12-05 20:06:45 +00:00
drh
6d4e9c3d92
Simplify the date/time function logic for improved rebustness and also to
...
decrease the size of the binary.
FossilOrigin-Name: 6e144735ed0cd3d4461ae6a4d8034264563e3165
2016-12-02 19:07:03 +00:00
drh
861a56821b
Extend the valid range of 'unixepoch' dates from JulianDay 0 through 9999-12-31.
...
FossilOrigin-Name: 768c9859b21a3c88be084d6dd87acab4211b3a87
2016-12-02 17:08:27 +00:00
drh
7a40707b1f
Test cases for the improved LIKE/GLOB matcher.
...
FossilOrigin-Name: 0bdb7ae126d3909344640813489ee68ecad041c4
2016-12-02 02:19:24 +00:00
dan
edaeba5e64
Avoid clearing the EP_FromJoin flag from terms in ON clauses when flattening
...
sub-selects. Possible fix for [2df0107b].
FossilOrigin-Name: a427c4052820d90c3c8c23abf9097f973e564010
2016-12-01 19:58:01 +00:00
dan
92ddb3bd02
Avoid clearing the EP_FromJoin flag from terms in ON clauses when flattening
...
sub-selects. Possible fix for [2df0107b].
FossilOrigin-Name: 8bed4cd549759a93c4a087d8d8c08c0068ba8d59
2016-12-01 19:38:05 +00:00
drh
807b90f679
Performance improvement for GLOB and LIKE matching for patterns with two
...
or more multi-character wildcards ("*" or "%").
FossilOrigin-Name: 2df0ebf95f6a25c77777c33685303e81550fd739
2016-12-01 18:57:58 +00:00
drh
698a01ca2f
Faster version of patternCompare() that uses new return values rather than
...
an extra parameter to communicate wildcard information back up to parent
searches.
FossilOrigin-Name: a1e2b6ce3af690ae91bda3d056357205c4018da7
2016-12-01 18:49:40 +00:00
dan
1a4a73764c
Modify the patternCompare() function (used for GLOB, LIKE) to better handle
...
patterns containing multiple wildcard characters ("*", "%").
FossilOrigin-Name: c5e5614d98a752738c081fecdd1e349a1a92b0e5
2016-12-01 17:34:59 +00:00
drh
c9c81dc6d7
Add the remember(V,PTR) extension function which copies an SQL value into
...
an application variable.
FossilOrigin-Name: d2d30914d81022d7d4e1670caf9326524520deaf
2016-11-30 16:54:52 +00:00
drh
77320ea48d
Fix then handling of the (oversized) integer literal -0x8000000000000000.
...
FossilOrigin-Name: 3816bb415ecfd4f36430d0fcbc878e382975de60
2016-11-30 14:47:37 +00:00
drh
ab5be2e651
Change the OP_DecrJumpZero opcode back to its old behavior of always
...
decrementing, except top the decrementing when it reaches the largest negative
number.
FossilOrigin-Name: 9d0d8c2e7c529562889de02346733dcb532e9388
2016-11-30 05:08:59 +00:00
drh
b5489b88b0
More improvements to boundary cases in the date/time functions, flowing out
...
of branch coverage testing.
FossilOrigin-Name: 1218005ab7b52ef45db1354d17fdd8a1a1af9854
2016-11-30 04:07:57 +00:00
drh
64777ba834
Prevent a warning about integer overflow when using a very large negative
...
LIMIT.
FossilOrigin-Name: 96106d5620eae51474234f4eec1d2c5bd570d486
2016-11-30 01:05:41 +00:00
drh
d76a902c87
Further changes to the date/time functions to suppress harmless signed
...
integer overflow warnings that could have occurred when doing out-of-range
date calculations which, according to the docs, give undefined results.
FossilOrigin-Name: dc453b3403450b1d8cc53daf0721fed025b9053c
2016-11-30 00:48:28 +00:00
drh
3edb157e23
The documentation says that the built-in date-time functions give undefined
...
results for dates before 0000-01-01 and after 9999-12-31. Change the
actually implementation so that the answer given is really NULL. This also
avoids unnecessary hand-wringing over an signed integer overflow that might
otherwise occur when processing out-of-bound dates.
FossilOrigin-Name: d410a839752153c6d8be08f758abfbc16475745a
2016-11-29 20:39:48 +00:00
drh
bc60368d6f
Fix broken hyperlinks to the sqlite3_snapshot objection definition
...
in the documentation. No changes to code.
FossilOrigin-Name: 9021f6875f897d8b609ebcc04162dc6e0b529a4a
2016-11-28 21:22:26 +00:00
dan
158e4e56d7
Simplify some code in fts5_expr.c. Add some extra test cases for the same.
...
FossilOrigin-Name: 7cc2d60dce90b8d4dca35708e33002ae6387806e
2016-11-28 14:52:23 +00:00
drh
dd5fa17d3c
Add the sqlite3_snapshot_recover() interface and related functionality.
...
FossilOrigin-Name: b70c85ce6d07b08e13f4ea99edb8f4855a6d7580
2016-11-26 19:44:40 +00:00
drh
6412a4c8a5
Clarification of the behavior of sqlite3_stmt_readonly() on BEGIN IMMEDIATE
...
statements. The is comment changes only - no changes to code.
FossilOrigin-Name: a4205a83e4ed977a89ecae665604993711f7dd3f
2016-11-25 20:20:40 +00:00
drh
9057fc7c7f
Remove the OP_RowKey opcode. Use OP_RowData in its place.
...
FossilOrigin-Name: 6ac7b07a4aff2e1a9031289e3dafdb9ac0071c24
2016-11-25 19:32:32 +00:00
drh
cb3cabd01b
Refactor the sqlite3BtreeKey() and sqlite3BtreeData() internal interfaces
...
into sqlite3BtreePayload() and sqlite3BtreePayloadChecked(), respectively.
This is a continuation of the optimization started by check-in
[2d831074cf]. The result is a slightly smaller and faster binary.
FossilOrigin-Name: 49ebc219faea30eaa61def4a3fba2817b9c58a86
2016-11-25 19:18:28 +00:00
drh
06a09a828a
Small performance increase and size reduction in the OP_Column opcode.
...
FossilOrigin-Name: a9498407e646305e7b60115d63e85c642bbd1c3f
2016-11-25 17:03:03 +00:00
drh
e9bb566096
Performance enhancement to sqlite3_snprintf().
...
FossilOrigin-Name: c53dca7fadd81ea340fef776373cbb122c9ccd46
2016-11-25 15:47:53 +00:00
drh
043e586e29
Performance improvement in sqlite3StrAccumFinish() for the common case where
...
no memory allocation is required.
FossilOrigin-Name: b6acf5d4ef016326a079463e70e71c2fc95a352d
2016-11-25 15:11:26 +00:00
drh
36fd41e52b
Add a comment to help clarify the EP_FromJoin hack in exprCodeBetween().
...
FossilOrigin-Name: 6df7c5747e0247b14bf015ef4320ddcf6fccf694
2016-11-25 14:30:42 +00:00
drh
36f49d0565
Fix the error message for invalid ".mode" arguments in the command-line shell,
...
so that it mentions the new "quote" mode.
FossilOrigin-Name: 9a603a18ef626b7d7a24b82eb961d6d8b4926195
2016-11-23 23:18:45 +00:00
dan
4b72524072
Code constant vector components outside of any loops in CASE and BETWEEN
...
expressions. Fix for [1a684656].
FossilOrigin-Name: c08aff13ead3e6a8b92c0f031b08f7e556922e70
2016-11-23 19:31:18 +00:00
drh
30642cf4d2
Correctly display the names of SQL functions in the VDBE_PROFILE output.
...
FossilOrigin-Name: 161192f17273f32f1b3b82d41135aaca047e9a83
2016-11-23 14:19:11 +00:00
drh
4b4ffadb43
Merge bug fixes and enhancements from trunk.
...
FossilOrigin-Name: e2c4bdf54fc1b9605226c7d6c79ef4f8302d6213
2016-11-22 22:23:56 +00:00
drh
bc88711d08
Enclose the sqlite3WalSnapshotRecover() routine within
...
FossilOrigin-Name: e7be3183eb25e0f9f04b9e251ff37fa5e50cc1a7
2016-11-22 21:11:59 +00:00
drh
e74cc5c9bc
Add a new requirement mark for CAST expressions.
...
FossilOrigin-Name: bee2859b953c935c413de2917588159d03c672d9
2016-11-22 20:29:05 +00:00
drh
50da663516
Update requirement marks to reflect changes in wording in the documentation.
...
No changes to code.
FossilOrigin-Name: f5ac98efb5d5f7751c5c560bed9c7885e60ac4bc
2016-11-22 19:15:05 +00:00
drh
65f38d960d
Remove unnecessary OP_Close opcodes for a size reduction and performance
...
increase.
FossilOrigin-Name: 32be7aae92ee48bf2cd260ea41e79c2bc62738f9
2016-11-22 01:26:42 +00:00
drh
60ffc80756
Remove unnecessary OP_Close opcodes at the end of INSERT operations, resulting
...
in smaller and faster code.
FossilOrigin-Name: abeddb6d5a4040e1d0a87a4f32ad79794ba0842b
2016-11-21 21:33:46 +00:00
drh
89500dcd0b
Enhance speedtest1.c so that is works on older versions of SQLite, before
...
the introduction of the group_concat() aggregate function.
FossilOrigin-Name: 9979ba80a649ee61d9d174dc9d9fcab7e9fc1332
2016-11-21 18:15:35 +00:00
drh
c10b9dac84
Fix harmless compiler warnings.
...
FossilOrigin-Name: b3b7b42d9a4a0e7e2be8b2933328a7bec2f49a81
2016-11-20 17:59:59 +00:00
drh
0f85b2ff09
Prevent a possible use-after-free bug in the query optimizer.
...
FossilOrigin-Name: 0a98c8d76ac86412d5eb68de994658c250989349
2016-11-20 12:00:27 +00:00
dan
93f5113290
Remove the requirement to open the wal file before sqlite3_snapshot_recover()
...
is called. Also add some comments to new functions.
FossilOrigin-Name: 28393c413cc4505b94411730e728583c5d4baaae
2016-11-19 18:31:37 +00:00
dan
4d4757fcc8
Test some extra error conditions in sqlite3_recover_snapshot().
...
FossilOrigin-Name: db314213c08f27dd0ff5ede3c6a8eda36560809a
2016-11-19 17:30:57 +00:00
dan
20ba3d7fcb
Add another fault-injection test for sqlite3_snapshot_recover().
...
FossilOrigin-Name: 7e040406138669bd67dd6ecae016b3e50dbfaaf8
2016-11-19 17:20:28 +00:00
dan
6a9e7f16eb
Fix a problem causing sqlite3_snapshot_recover() to return
...
SQLITE_IOERR_SHORT_READ.
FossilOrigin-Name: 525f75fa9fd4a95acc3fb3b0a01dabe2be39b383
2016-11-19 16:35:53 +00:00
dan
5b4009f637
Fix a bug in sqlite3_snapshot_recover() that could cause subsequent read
...
transactions to use out-of-data cache entries.
FossilOrigin-Name: 9abeb7980a34cec11a3420e14ad98a4ec0d9c599
2016-11-19 14:53:22 +00:00
dan
1158498dce
Add experimental sqlite3_snapshot_recover() API.
...
FossilOrigin-Name: 174a6076a8d7bebe5efebf55f3fdc5d87c589cc7
2016-11-18 20:49:43 +00:00
dan
edace5d4f1
Require that the database handle be in autocommit mode for
...
sqlite3_snapshot_get() to succeed. This is because it may open a read
transaction on the database file.
FossilOrigin-Name: 83b658dad091211ade3594d1e8d00ce525882506
2016-11-18 18:43:39 +00:00
dan
93006cdd85
Add tests for snapshot interfaces.
...
FossilOrigin-Name: 1f7ee7af7b620262ae663d65889b6a87415d4a34
2016-11-18 18:22:05 +00:00
dan
25accbca72
Enhance existing snapshot tests to serialize/deserialize snapshots. No new
...
tests.
FossilOrigin-Name: 16b9bf92741e4c62874cffd7c6a61763c5054c7a
2016-11-18 14:38:41 +00:00
drh
65e1ba3fe7
Experimental changes for faster in-memory DB operation for large databases.
...
FossilOrigin-Name: 4fe94b0f1841180dfd8cac33838e335dc6a428bf
2016-11-17 21:52:08 +00:00
dan
9c8753c0a8
Fix a problem in rtreeD.test causing it to fail in OMIT_BUILTIN_TEST builds.
...
FossilOrigin-Name: d6b3779e6dad038d8bc35139cf314bf1e6e91977
2016-11-17 20:05:00 +00:00
drh
223b4bb3f7
Change the --enable-debug option on configure so that it enables the
...
".selecttrace" and ".wheretrace" commands in the command-line shell.
FossilOrigin-Name: 2331192b4ca6a169b6ac0daafb21ceb7c390de65
2016-11-17 13:54:21 +00:00
drh
54cda4edbe
Disable the query flattener optimization for SELECT statements that are on
...
the RHS of vector IN operators. This is a hack that fixes the bug
described in ticket [da7841375186386c]. A better solution that does not
disable the query flattener is needed, but this will server for the time
being.
FossilOrigin-Name: 005d5b870625d175fdf3c0e87d974006c569d9e1
2016-11-17 13:13:25 +00:00
drh
d2d69cc1fa
Add a needed #include to speedtest1.c.
...
FossilOrigin-Name: 77aeb705c37b1bf61a05b5e4a09f5b5cd67d07bc
2016-11-15 21:17:13 +00:00
drh
ba6eb8769f
Experimental changes toward making snapshots serializable.
...
FossilOrigin-Name: b6a81fa1fc1fb78a65894129851a4ec3986640de
2016-11-15 17:37:56 +00:00
drh
d6ef5afe3f
Change the OP_Last opcode so that it is a no-op if the cursor is already
...
pointing at the end of the b-tree.
FossilOrigin-Name: 663473850c4274270445b3771911fa773a8c405f
2016-11-15 04:00:24 +00:00
drh
c9b9deaee2
Make the VACUUM command about 9% faster by avoiding unnecessary calls
...
to sqlite3BtreeMovetoUnpacked() while copying rowid tables.
FossilOrigin-Name: 5ed0bd387699a0f3b477d4f3cfcb460a6a44cb84
2016-11-15 02:46:39 +00:00
drh
5413ba4b17
Add 8794 new test cases received from the OSS-FUZZ project.
...
FossilOrigin-Name: 03f75a67c320f21192d721a8c34d49dea48ffdbb
2016-11-14 20:47:18 +00:00
drh
588429a87d
Fix a potential use-after-free error during parsing of malformed
...
CREATE TABLE statement.
FossilOrigin-Name: c5dbc599b910c02a961675b12b273b8df6d29450
2016-11-14 20:08:00 +00:00
drh
362b66f051
Enhance fuzzcheck.c to accept database-specific configuration parameters in
...
the option CONFIG table. Add the fuzzdata5.db fuzz database containing
test cases from OSS-FUZZ.
FossilOrigin-Name: a71fad4538311ede111815d221d9eb8d9018092b
2016-11-14 18:27:41 +00:00
drh
55377b4717
Fix the ossfuzz.c test module so that it does not segfault after a
...
"PRAGMA empty_result_callbacks=1;". Add the ossshell.c program for
simple command-line testing of ossfuzz.c.
FossilOrigin-Name: 6f2d43eca68175ed28abae3afa792095af906af2
2016-11-14 17:25:57 +00:00
drh
2adb878b1f
Avoid unnecessary calls to sqlite3ExprCacheAffinityChange() when generating
...
OP_MakeRecord opcodes that do not change any register affinities.
FossilOrigin-Name: e211c579b2f092e3283edd5fb9add7c5183bac35
2016-11-14 15:28:56 +00:00
dan
b3e845ba33
Fix an fts5 problem causing a crash in phrase queries where the first token of
...
the phrase matches one or more rows but some other token within the phrase
matches zero.
FossilOrigin-Name: e78f6f3bbf4781850960fe6741f7cba480f2c27d
2016-11-14 08:19:37 +00:00
drh
48c286fc61
Fix harmless compiler warnings in test code for MSVC.
...
FossilOrigin-Name: 7b76be4117f4e57091b03fafcf42d17bce81160d
2016-11-11 20:37:27 +00:00
drh
66adb0a848
Avoid storing redundant fields in sorter records when the sort-key
...
and data have fields in common.
FossilOrigin-Name: b835cf3e507b910b6a3e0f802ce2c40a72d0c227
2016-11-11 19:08:00 +00:00
drh
4b727f17d6
Enhance the OP_IdxInsert opcode so that it can used unpacked key values if
...
they are available. Update the code generator to take advantage of this
new capability. The speedtest1.c test is about 2.6% faster as a result.
FossilOrigin-Name: 925840cfdb969a76640a1247cc4a7b2c0de5cb74
2016-11-11 19:01:11 +00:00
dan
04cd7aa373
Merge trunk with this branch.
...
FossilOrigin-Name: dd62d2de6eb12dc1902d6df050c395b1dcac01b4
2016-11-11 18:45:55 +00:00
drh
d95ef5cb5a
Remove obselete and unused logic in the update code generator.
...
Fix the sqlite3BtreeMovetoUnpacked() routine so that it remembers the
rowid of the row that it landed on.
FossilOrigin-Name: 1a587d72f981cb7064cfd8916a52a83ad9ba6074
2016-11-11 18:19:05 +00:00
dan
9af90b7231
Reenable the SQLITE_EXPR_REF optimization for "SELECT DISTINCT ... ORDER BY"
...
queries.
FossilOrigin-Name: 6e2e9d383f5fc4a0cbf05fe83ec7425812c0f556
2016-11-11 18:08:59 +00:00
drh
79297d1d59
Merge enhancements and bug-fixes from trunk.
...
FossilOrigin-Name: 5515b827dc1805a3010018cd6abf222b03525d24
2016-11-11 17:52:57 +00:00
dan
4a5bad572a
Fix a problem with switching from wal to rollback mode when
...
SQLITE_DBCONFIG_NO_CKPT_ON_CLOSE is configured.
FossilOrigin-Name: 46e0016207b8e7df2ae6c7491fd0f3c2926eed21
2016-11-11 17:08:51 +00:00
drh
ea432ba2df
Add the test/ossfuzz.c interface adaptor for OSS-FUZZ. Make previsions for
...
testing the adaptor using fuzzcheck.c.
FossilOrigin-Name: 119d6ef8478ea6ab07dfd0e974d2f5a8dcfce87e
2016-11-11 16:33:47 +00:00
dan
3bafdede8a
Handle some obscure "row value misused" cases that could cause segfaults or
...
assertion failures.
FossilOrigin-Name: fba5fddb1c40af75634b01c1f06d2610df697e01
2016-11-11 15:49:01 +00:00
drh
4e8142c726
Back out the "--raw" option on ".read" in the command-line shell. Instead,
...
fix the command-line shell so that if EOF is reached without seeing a
final semicolon, it goes ahead and passes the accumulated SQL text to
SQLite.
FossilOrigin-Name: f98c8ac8c485098f163400d3a92d6afb4008adbe
2016-11-11 14:54:22 +00:00
dan
b47ebe6128
Add extra tests for the xBestIndex() virtual table method.
...
FossilOrigin-Name: 642a8fba91d2bf61b494b845cb499714363209b1
2016-11-11 09:51:46 +00:00
mistachkin
2f9a613ced
In the command line shell, avoid using utf8_printf() in a couple places where it is superfluous.
...
FossilOrigin-Name: 6311a8bdb1f2e1813516a32d171aae030bd73fd3
2016-11-11 05:19:45 +00:00
drh
c5b86be7db
Add the --raw option to the ".read" dot-command of the command-line shell,
...
to cause the named file to be read and sent directly into sqlite3_exec()
without any interpretation.
FossilOrigin-Name: 09233770b24d69a305556241a6beeb5e4d77c0d7
2016-11-11 04:37:00 +00:00
drh
4360fcea6d
Take care not to try to generate code for the ATTACH and DETACH commands
...
if there were syntax errors during parsing.
Fix for ticket [2f1b168ab4d4844]
FossilOrigin-Name: b0ff183b8ffdbebece06cfea1c6781fc0e8e8547
2016-11-11 03:37:24 +00:00
drh
7a1c28defe
Avoid a few unnecessary calls to sqlite3BtreeMovetoUnpacked().
...
FossilOrigin-Name: eac0e827a61cfec4dd9b6d407ff398e9fda3510b
2016-11-10 20:42:08 +00:00
dan
257c13fa00
Avoid storing redundant fields in sorter records when the sort-key and data have
...
fields in common (as in "SELECT a FROM t1 ORDER BY 1").
FossilOrigin-Name: 0af62fdbd8e2aab14718ff8bcb5934f05463c176
2016-11-10 20:14:06 +00:00
drh
c6c9e158c5
When doing a REPLACE on a WITHOUT ROWID table with no secondary indexes,
...
bypass the OP_NoConflict/OP_Delete sequence and directly overwrite any
preexisting row, for a performance increase.
FossilOrigin-Name: f7041cbb63b912f9ecad538804b6f2383efbec4e
2016-11-10 17:01:36 +00:00
drh
bf2f5739c9
Remove C++ style comments. No code changes.
...
FossilOrigin-Name: 42f8aa6231bf4ed74bebdc85aa79d23dc20b3c14
2016-11-10 16:07:43 +00:00
drh
2c4dfc3095
Add the unpacked key fields to OP_IdxInsert for INSERT and UPDATE statements.
...
FossilOrigin-Name: 67602e40f122cbb6354048a64c5d3a72b2855ec7
2016-11-10 14:24:04 +00:00
drh
eaf6ae2992
Comment changes that attempt to better explain the behavior of the "seekResult"
...
field on VdbeCursor objects and the seekResult parameter to
sqlite3BtreeInsert() and the OPFLAG_USESEEKRESULT flag on insert opcodes.
No changes to code.
FossilOrigin-Name: 345b46be75bdf6f9fb7367a6164d89bae11995a6
2016-11-09 20:14:34 +00:00
drh
7405fa745e
Fix a simple comment typo. No changes to code.
...
FossilOrigin-Name: 51d0aed8d63d0710e4aa8925ff18cf3c45dc9e42
2016-11-09 16:03:36 +00:00
mistachkin
58282f68d8
Fix typo in the CSV extension.
...
FossilOrigin-Name: b4889588246c33374ff3758e21ccc4ce246380b6
2016-11-09 01:46:13 +00:00
drh
4a8b013ef6
Make use of the unpacked key on the OP_IdxInsert on sorters with a LIMIT.
...
FossilOrigin-Name: 42db7cd2c0b367f7dfe733bdaf006538937b812a
2016-11-09 01:38:56 +00:00
drh
fb8c56f21b
Fix a typo on the OP_IdxInsert documentation. No code changes.
...
FossilOrigin-Name: e4acd98207bf12b28f6c0f77896ba8f0b0a155d5
2016-11-09 01:19:25 +00:00
drh
088c086b14
Add a DISTINCT query to speedtest1.c. Also change INSERT OR REPLACE into
...
just REPLACE.
FossilOrigin-Name: 754ee844958bdc3b96acfd1f5395da5796e54a82
2016-11-09 01:07:10 +00:00
drh
7723371eb7
Remove the "experimental" marking from the sqlite3_preupdate interfaces.
...
But be sure all the interface definitions are within
documentation.
FossilOrigin-Name: d6dd2ad35ed17e980ed564688499c802e5850386
2016-11-09 00:57:27 +00:00
drh
9b4eaebc68
Enhance the OP_IdxInsert opcode to optionally accept unpacked key material.
...
FossilOrigin-Name: 89d958abbac45f2ca5954080cd9e74ec9a07ebb2
2016-11-09 00:10:33 +00:00
dan
3b908d41a0
Avoid superfluous cursor seeks in "INSERT OR REPLACE" statements.
...
FossilOrigin-Name: bec5b6d4d083556d111a89186b4f7b35b5e7cebf
2016-11-08 19:22:32 +00:00
drh
9d06ff2cb7
Avoid generating OP_TableLock unnecessary instructions on btrees that
...
are not sharable.
FossilOrigin-Name: 8cb8516d2009d52d35a22263e4c892f162b34b81
2016-11-08 17:19:22 +00:00
drh
0a22c865e4
Fix the speedtest1.c test program so that it gives closing "%" wildcards
...
on LIKE searches.
FossilOrigin-Name: c2f84f637f994c3b4522b48161185a4a2c5bca23
2016-11-08 16:27:59 +00:00
drh
662389b265
Tweaks to speedtest1.c to better reflect mobile usage based on findings in
...
the "Pocket Data" paper by Kennedy, Ajay, Challen, and Ziarek.
FossilOrigin-Name: b5733cae3c519482cf6bc642bd63814afb113d35
2016-11-08 00:30:11 +00:00
drh
6850a63393
Fix OOM error reporting in the json1_group_object() SQL function. Remove
...
an unreachable branch from the JSON1 logic.
FossilOrigin-Name: b54098491531cd26ed461275ef4aae3d3ec9065e
2016-11-07 18:18:08 +00:00
drh
27b2d1b88b
Replace some unreachable branches from the JSON1 extension with assert().
...
FossilOrigin-Name: 145cd13e3c5a42a717807bcc13c0f7212f38bff8
2016-11-07 15:15:42 +00:00
drh
ad875e7416
Fix the JSON1 extension so that the JSON validator correctly rejects malformed
...
backslash escapes within string literals.
FossilOrigin-Name: 7a63539169a384960e30a63e0c8e9b0f07fa431e
2016-11-07 13:37:28 +00:00
dan
a2bfa046ea
Avoid a crash that can occur after an obscure OOM in the built-in INSTR()
...
function.
FossilOrigin-Name: b86b79c442a58d10aa005ba4f34095375a88d242
2016-11-04 12:05:29 +00:00
drh
b1c9633493
Mark the ICU extension functions as deterministic.
...
FossilOrigin-Name: afbbb6c66a85ff3f4c8dce677e0892a2a51d2b8e
2016-11-04 12:03:26 +00:00
drh
54fc5cc2ae
Add an assert() to silence a coverity false-positive.
...
FossilOrigin-Name: 97354093bceff28714a605068851cfa026c8272a
2016-11-04 11:23:30 +00:00
dan
792557ac67
Fix a test case in vacuum5.test so that it works with the in-memory journal
...
permutation.
FossilOrigin-Name: 81c86401463df6be4ac21987b3b1703e38ab933b
2016-11-04 07:25:43 +00:00
mistachkin
a622d90040
Replace a couple more references to Tcl 8.5 in the Windows build tools.
...
FossilOrigin-Name: 1d0e43c549c36d0919a18d61285e94cad29e7a07
2016-11-03 21:35:10 +00:00
dan
af58068550
Fix a test case in vacuum5.test sot aht it works with
...
-DSQLITE_ENABLE_ATOMIC_WRITE.
FossilOrigin-Name: 3ca80010397676eca57c8a4c9b3a9c2c40629663
2016-11-03 19:24:14 +00:00
dan
7df9b8e6e4
Fix a test case in vacuum5.test so that it works with -DSQLITE_TEMP_STORE=2.
...
FossilOrigin-Name: f5dd95e25c703a825ad7af9a4b3886bd3ef8c2e8
2016-11-03 19:01:20 +00:00
drh
59ce2c434c
In the command-line shell, fix the .imposter command so that it works
...
with indexes on expressions. Fix the ".mode quote" mode so that it works
with ".headers ON".
FossilOrigin-Name: ba9873da94d21873ff76f16a5332fc0092d83f70
2016-11-03 13:12:28 +00:00
drh
16eb59484f
Add the ".imposter" command to the command-line shell.
...
FossilOrigin-Name: be3ec8fdcf1541017ca9375df07645db2a9a3f5a
2016-11-03 13:01:38 +00:00
drh
6027561178
Fix an possible NULL pointer deference in the command-line shell that can
...
occur when using imposter mode.
FossilOrigin-Name: ad08753a8bbf073ec4af9c3a5783ed664244d954
2016-11-03 02:25:30 +00:00
drh
506a1400a3
Adjust the MSVC makefile to use Tcl8.6 by default.
...
FossilOrigin-Name: def8f598b8e33b5bab3a024cc57f4c5e300cd8cd
2016-11-02 19:49:22 +00:00
dan
75ba676790
Fix an issue that was causing the new database image to be assembled entirely
...
in heap memory when VACUUMing a database, even if it should use a temp file.
This could cause SQLITE_NOMEM errors when vacuuming very large databases on
32-bit systems.
FossilOrigin-Name: 3028845329c9b7acdec2ec8b01d00d782347454c
2016-11-02 14:50:19 +00:00
drh
e77caa191b
Fix a requirement mark. No changes to code.
...
FossilOrigin-Name: d18f61b78c8fafef742efbc890382537e8584180
2016-11-02 13:18:46 +00:00
drh
1ad93a003d
Use NOT NULL partial indexes when the query is constrained by a single
...
LIKE or GLOB.
FossilOrigin-Name: 9b3a3b41b59a7ce7d3dd82c7402d6fdc6a5ca43c
2016-11-02 02:17:52 +00:00
dan
d7265378fd
Add the SQLITE_DBCONFIG_NO_CKPT_ON_CLOSE sqlite3_dbconfig() option - for
...
disabling SQLite's default checkpoint-on-close behaviour.
FossilOrigin-Name: 6d142025c74f66f2d48155354b556cd5b2682cb2
2016-10-31 16:49:18 +00:00
dan
298af02308
Add the SQLITE_DBCONFIG_NO_CKPT_ON_CLOSE sqlite3_dbconfig() option - for
...
disabling SQLite's default checkpoint-on-close behaviour.
FossilOrigin-Name: 093d2fc2288b75c15ccf877bfa0e622d3918a562
2016-10-31 16:16:49 +00:00
dan
dadafa881f
Remove the mutex from test_multiplex.c.
...
FossilOrigin-Name: 6374978e8f1ac091394a9f5a1896be92af658bcd
2016-10-27 14:51:02 +00:00
drh
c52496f57f
Make sure left-join markings are transferred to the virtual scalar
...
subexpressions when decomposing a vector comparison in the ON clause of
a LEFT JOIN.
Fix for ticket [fef4bb4bd9185ec8f].
FossilOrigin-Name: 619f5cc71774a37648e185c8502d7af14eb09b7f
2016-10-27 01:02:20 +00:00
drh
9904298bb3
Small size reduction and performance enhancement in whereScanInit().
...
FossilOrigin-Name: c23f5ef337533c1ec6e3ba78a2910352181cc9ee
2016-10-26 18:41:43 +00:00
drh
392ddeb12d
Small size reduction and performance improvement in whereScanNext().
...
FossilOrigin-Name: d861ee17eb900a607de6ec3f4a5d5c24cfb834a0
2016-10-26 17:57:40 +00:00
dan
d15f430111
If all branches of an OR optimize scan that is the rhs of a LEFT JOIN use the
...
same index, set the index cursor to return NULL values if there are no matches
for a row on the lhs.
FossilOrigin-Name: ec9dab8054c71d112c68f58a45821b38c2a45677
2016-10-26 16:05:10 +00:00
dan
b40897ab5e
If all branches of an OR optimize scan that is the rhs of a LEFT JOIN use the
...
same index, set the index cursor to return NULL values if there are no matches
for a row on the lhs.
FossilOrigin-Name: e7b9bc678ecb75c594d9d3ade12a99a8d551cdc9
2016-10-26 15:46:09 +00:00
drh
d240f091c6
Merge the SQLITE_ENABLE_URI_00_ERROR compile-time option.
...
FossilOrigin-Name: 86675ae0abc78960a2faec55d115804acfc3be6d
2016-10-26 13:58:47 +00:00
dan
635f83c062
Add extra tests to check the result of including a %00 escape in a URI
...
when ENABLE_URI_00_ERROR is defined.
FossilOrigin-Name: 1aaa06e37f44309c62335d8eda59ca6890d4be9d
2016-10-26 13:44:07 +00:00
dan
5c35e90377
Add compile time option SQLITE_ENABLE_URI_00_ERROR. If defined, any "%00"
...
escape found in a URI is treated as an error.
FossilOrigin-Name: e8a9bfece27e2af178a206ad6bce3f24d64e7ee4
2016-10-26 12:15:41 +00:00
dan
01e697b4ec
Add test case to demonstrate a "BEGIN EXCLUSIVE" command returning
...
SQLITE_BUSY_SNAPSHOT.
FossilOrigin-Name: b115856408b6aa5538be67beb619d7aff0630bea
2016-10-25 15:06:11 +00:00
drh
7ad3eb63cf
Performance optimization in moveToRoot(). Avoid repeated validity checking of
...
the root page on each call. Once is enough.
FossilOrigin-Name: 98795c2dd9a6d8fa8d49a9f5c36cdf824cae7246
2016-10-24 01:01:09 +00:00
drh
2df45e02f4
In the sessions module, avoid recording a change if an UPDATE statement
...
overwrites a column with REAL affinity containing an integer value with
the same value.
FossilOrigin-Name: 5f3e602831ba2ecaf8ba5411efb387afcde05a33
2016-10-22 01:22:30 +00:00
dan
e43635aaa7
In the sessions module, avoid recording a change if an UPDATE statement
...
overwrites a column with REAL affinity containing an integer value with the same value.
FossilOrigin-Name: b861328ab9ceec6926d97658c3606e6ae9ad39bf
2016-10-21 21:21:45 +00:00
drh
41f5f6ec2c
Add ".mode quote" to the command-line shell.
...
FossilOrigin-Name: c4f5fa78cd8207ce1e46e32e632b8f6ee86047e1
2016-10-21 17:39:30 +00:00
dan
e24452edef
Avoid using the "direct overflow read" optimization to read large blobs if the
...
pager layer has a wal file open - even if the database header indicates that
the db is not a wal database.
FossilOrigin-Name: b54c15f11796a75683eec4b502a22ccb87d621c6
2016-10-21 10:49:39 +00:00
dan
ceb97c1107
If SQLITE_DIRECT_OVERFLOW_READ is defined at compile time, add "DIRECT_OVERFLOW_READ" to the list of symbols returned by "PRAGMA compile_options".
...
FossilOrigin-Name: b7d9727bff2e840af4b090872c991693e78e6076
2016-10-21 10:09:22 +00:00
dan
86873baa58
Add test case to incrblob4.test. No changes to code.
...
FossilOrigin-Name: fd9c6ff05f2052810549a1a6a384f4b40f4ba4ac
2016-10-20 11:48:48 +00:00
drh
c3191d236a
Minor simplification of the comparison opcodes.
...
FossilOrigin-Name: 56474ebca3fdddb8f3c5156f06dc42dc0a65256c
2016-10-18 16:36:15 +00:00
drh
ba69061ebc
Fix harmless uninitialized variable warnings in speedtest1.c.
...
FossilOrigin-Name: 2aa7a03b8632dbfd9741018b5b19c372dcfd3647
2016-10-18 15:29:57 +00:00
drh
f8a89ca5dd
Add the --repeat option to speedtest1.c and speed-check.sh.
...
FossilOrigin-Name: 6ca0e06b21b0d5f7ae5bcb7839a11a45da0d2cea
2016-10-18 14:35:55 +00:00
mistachkin
47d00872fc
Escape non-ASCII character from an ICU extension comment.
...
FossilOrigin-Name: 5ec02ecf3d20ce7e3f5249e9a3684f9b67a7d703
2016-10-17 18:44:11 +00:00
mistachkin
5f0b8a0e30
Corrections to a couple recently added 'filectrl.test' results.
...
FossilOrigin-Name: 3d89dc4544bc51f8c9fa63a6ecf0458f6d10fc9f
2016-10-17 18:33:36 +00:00
dan
1480095ff5
Changes to support interrupting a checkpoint using sqlite3_interrupt().
...
FossilOrigin-Name: c88d36e251abec24aa7e37cf550e148904b9fd2d
2016-10-17 15:28:39 +00:00
drh
cee11adaaa
Small size reduction and performance increase in the string duplicator.
...
FossilOrigin-Name: cda998f080cb00779d8c0d1c83d8fe2b74462cd4
2016-10-17 00:48:06 +00:00
drh
f013e20c66
Add documentation for the OP_SorterInsert opcode, formerly omitted by mistake.
...
No changes to code.
FossilOrigin-Name: 16d88a907730e3773a1320dbaf1f82c2bc71d71f
2016-10-15 18:37:05 +00:00
dan
1cb3c7c415
Add test case to hook.test. No changes to non-test code.
...
FossilOrigin-Name: 2674d779f5453ea6b709a39618d4b8017ab2e3fb
2016-10-15 08:56:18 +00:00
mistachkin
8705f868e0
Add the SQLITE_FCNTL_WIN32_GET_HANDLE file control.
...
FossilOrigin-Name: 16039be3739b8d3b34a1e6093eaebb09e07f984b
2016-10-14 21:27:50 +00:00
drh
9e31fe02ba
Bump the version number in anticipation of the next development cycle.
...
FossilOrigin-Name: aa6de9c40ba2d906772b9032fd5d798661f6d4cc
2016-10-14 21:16:27 +00:00
drh
813646c182
Version 3.15.0
...
FossilOrigin-Name: 707875582fcba352b4906a595ad89198d84711d8
2016-10-14 10:20:30 +00:00
drh
989412a1cf
Take care to avoid integer overflow when doing the initial page cache
...
allocation with an excessively large cache_size setting.
FossilOrigin-Name: 4d66ac98deaa85218be7ff0eb254f78b96d8e8d4
2016-10-13 12:56:18 +00:00
drh
c436a03d02
Avoid reading the -1-th element of an array in the query planner. Fix to a
...
bug introduced by check-in [8e2b25f9b8a7] from earlier today. Curiously,
the problem only appeared on 32-bit systems.
FossilOrigin-Name: 443913d582bcd953d85159047541592e2f68ade3
2016-10-12 18:55:53 +00:00
drh
432697467f
Add to sqlite3_analyzer command-line options --version and --tclsh, and also
...
the undocumented --debug option.
FossilOrigin-Name: e87d02d289a2016ea3ee074e914b07a8ac22b21f
2016-10-12 18:26:26 +00:00
drh
013ae68b25
New testcase() macros to ensure coverage of the ORDER BY LIMIT optimization
...
code in where.c.
FossilOrigin-Name: 61f0526978af667781c57bcc87510e4524efd0d8
2016-10-12 15:15:30 +00:00
dan
83465a662f
Fix a problem affecting queries that match the pattern (... WHERE ipk IN (....) ORDER BY ? LIMIT ?). Fix for [96c1454c].
...
FossilOrigin-Name: 8e2b25f9b8a7ed087d3cece74239814bee19429e
2016-10-12 14:48:00 +00:00
dan
ef74652ceb
Remove a stray line from session4.test causing a memory leak. No changes to SQLite code.
...
FossilOrigin-Name: 6624c4964b63e259d5ee006eaa7ec79ddadbd6a6
2016-10-10 14:48:36 +00:00
dan
90b2fe6b1e
When handling ORDER BY expressions, do not assume all values of an indexed expressions are distinct. Fix for [4766f444].
...
FossilOrigin-Name: aebe429e52ffef026cb0803fb164339d61bd2e88
2016-10-10 14:34:00 +00:00
drh
48590fcb37
Make sure indexes on expressions skip over initial NULL values in the
...
index. Fix for ticket [4baa464912129477f3c9]
FossilOrigin-Name: 71797ba431085f9ae381ed5ea6471967926f4043
2016-10-10 13:29:15 +00:00
dan
ea5e5f0b89
Fix a case in which the rtree module was ignoring an OOM while generating an error message.
...
FossilOrigin-Name: 788f86bebe413b5a0ab41ba3d75ba8728827a964
2016-10-10 10:06:59 +00:00
dan
e5ec01c481
Update test/trace3.test to account for the fact that casting a pointer to a 64-bit signed integer might produce a negative value.
...
FossilOrigin-Name: 010ec22541a4c37f2d3b01b6a531b4b4264102b7
2016-10-08 16:10:29 +00:00
drh
dfe4e6bb33
Corrections to Lemon documentation. No SQLite changes.
...
FossilOrigin-Name: c568ae3eef31b49e846fad90e705914e2868a09c
2016-10-08 13:34:08 +00:00
dan
320d4c304d
Add missing "static" to internal function whereRangeVectorLen().
...
FossilOrigin-Name: cbed3d75cf9a24037263d126727db7dd048a4f97
2016-10-08 11:55:12 +00:00
dan
e288992e19
Updates to the tool/warnings.sh script to make it easier to use on OpenBSD.
...
FossilOrigin-Name: dbe2997f57f8d8f95e4b767bf73b8df3a5e4f783
2016-10-08 09:21:34 +00:00
dan
642f0146d7
Fix some compiler warnings in fts5.
...
FossilOrigin-Name: b066637bb75959267fe6104da323c5112ad78f82
2016-10-05 20:14:29 +00:00
drh
e3c6b61cee
Fix harmless compiler warnings.
...
FossilOrigin-Name: 2dde3375124198560c8ff15f87aadde2afd722c5
2016-10-05 20:10:32 +00:00
dan
4e59344a4c
Add a test case for the fix in [a596b7c6cc].
...
FossilOrigin-Name: b2ef39b11f7c46e69e53439680c32adbb18903bd
2016-10-05 15:04:35 +00:00
drh
da5c62400f
Do not set MEM_Blob unless the appropriate fields of the Mem object have
...
been correctly initialized.
FossilOrigin-Name: a596b7c6cc780525120604090493f3f7d962b9fa
2016-10-05 15:02:00 +00:00
drh
e0251d44fa
Fix the backup_malloc.test script so that it works on Windows.
...
FossilOrigin-Name: d080012daaaa399663a0f767c792a2fff3e1037a
2016-10-05 01:33:57 +00:00
drh
4eda15e715
Fix a problem with the lempar.c parser template.
...
FossilOrigin-Name: 3a9d802fda10585654332b314d317250dc5d894e
2016-10-04 12:20:12 +00:00
drh
44728d7e01
Do not bother to initialize unused fields in the BtreePayload object.
...
FossilOrigin-Name: b10d0f939c82c4de3faa90b86de9ec4a89992856
2016-10-04 00:47:26 +00:00
drh
a71c743aae
Allow deterministic functions in the WHERE clause of a partial index.
...
FossilOrigin-Name: c6e9b9421805c904b20900b711fa0e51773aef3e
2016-10-03 18:13:23 +00:00
drh
c9b39288ae
Size and performance optimizations on the sqlite3ExprAssignVarNumber() routine.
...
FossilOrigin-Name: 109852e51e2cc2674940ba3e5097a92e66f88bb8
2016-10-03 16:33:14 +00:00
drh
de25a88c50
Avoid unnecessary strlen() calls in sqlite3ExprAssignVarNumber() by passing in
...
the token length from the parser.
FossilOrigin-Name: d15ae2e530cffea60263f203ac5f89b6790f4bd5
2016-10-03 15:28:24 +00:00
drh
87c05f0c58
Avoid unnecessary memset() calls in the query optimizer.
...
FossilOrigin-Name: 5bb7cde0731d23411e9df02a957010f94203397b
2016-10-03 14:44:47 +00:00