drh
2589787c5a
If terms of the WHERE clause require that the right table in a LEFT JOIN
...
not be a null row, then simplify the LEFT JOIN into an ordinary JOIN.
FossilOrigin-Name: 5b7abecc7ab8ccbbb8cb5e0f672e67625c2555ad03442efbf34cb395f5bb71a8
2018-03-20 21:16:15 +00:00
drh
f6e6f02308
Fix incorrect testcase labels on two cases in join5.test. No changes to code.
...
FossilOrigin-Name: 4661ac81c9589b06a07df8b7931fbd0a7f9a4e9ba1448192b70701dc85a29bd2
2018-03-20 19:02:03 +00:00
drh
cd0abc24d1
Improvements to the HAVING-to-WHERE optimization. The code uses less space
...
and less CPU, and there is now ".selecttrace" output.
FossilOrigin-Name: 5ad668d4339397fe66fe085e0527e37a1930917da88d462a8d89a465faa15e28
2018-03-20 18:08:33 +00:00
mistachkin
de8113c31e
For 'zipfile', detect attempts to cause a duplicate entry via UPDATE. Also, fix handling of 'UPDATE OR REPLACE' statements run on zipfile virtual tables. Win32 portability fixes to the 'fileio' extension. Miscellaneous test fixes.
...
FossilOrigin-Name: b36caeca91647616ac2ccdb281200c1a8bcd15d1f30dda0c1d89440d54607196
2018-03-20 16:56:12 +00:00
drh
6974cdcec7
Avoid unnecessary write to the sqlite_sequence table when an insert
...
is done into an autoincrement table with an application-specified rowid
that is less than the maximum.
FossilOrigin-Name: ec7addc87f97bcff3c3694b14a680453b52de3f8c106436f0708a1cc04b90faa
2018-03-20 13:44:10 +00:00
drh
f36e4069f3
Add the ability to disable the push-down optimization using the 0x1000 bit
...
of SQLITE_TESTCTRL_OPTIMIZATIONS. Also some documentation fixes and an
enhancement to ".eqp full" in the CLI.
FossilOrigin-Name: ae34edb7f4fa7b37a66cdf3a1d851980cb013e9abe72bdeca23e5323051e0646
2018-03-20 13:26:03 +00:00
dan
93c803e960
Fix handling of "UPDATE OR REPLACE" statements run on zipfile virtual tables.
...
FossilOrigin-Name: 9a5ef341de2bd2fc4657a510f48159f7876f58d340b457b4272a71d389f88da3
2018-03-20 13:26:01 +00:00
drh
9579947c55
Remove a debugging statement accidently left in
...
check-in [eddc35f3057e59fd]
FossilOrigin-Name: 85a31557ac0d0401c1bf2e23a502dc2ea57d9b1bc23c01de693f5d3fe22d8341
2018-03-20 13:00:33 +00:00
dan
d30830e42d
Add a test case for the fix on this branch.
...
FossilOrigin-Name: 7834cf6c28c63f6ca0e29a508c0f6e3ec9c5c48715344c2db99a9866e92ef205
2018-03-20 12:12:06 +00:00
drh
51efe098f4
In the CLI, avoid extra .selecttrace and .wheretrace output when in ".eqp full"
...
mode.
FossilOrigin-Name: 427bbf318a28e827bf03d43c2912c8ad937dd52f829feaf7fe374093692ed61b
2018-03-20 12:04:38 +00:00
drh
8b3424d4ee
Closer reading of the sqlite3_db_config() documentation show that it is
...
subtly incorrect. This check-in fixes the problem. No code changes.
FossilOrigin-Name: 44d90e7f4bc83680e8fbbf1a0423c6f5cc2cc2aed118b7af1c4c3d9e09b05dd7
2018-03-20 11:58:28 +00:00
drh
d06b5357a4
Fix a minor formatting issue on the sqlite3_db_config() documentation.
...
No changes to code.
FossilOrigin-Name: 8a439a6dda390d7486feb837f87a83e16abd283c882e81e637bd1235d2684379
2018-03-20 11:51:36 +00:00
drh
2d277bb5cb
Add the ability to disable the push-down optimization using the 0x1000 bit of
...
SQLITE_TESTCTRL_OPTIMIZATIONS.
FossilOrigin-Name: eddc35f3057e59fdc25a6911abfaa53a10cc43d8030925b65737b2f51f907421
2018-03-20 11:24:30 +00:00
drh
cfd74700da
Minor improvements to ".selecttrace". No changes to non-debug code.
...
FossilOrigin-Name: 03e541f606ead1a13e1084db88e168278c82a2ba72b18c89baafeab3141367b4
2018-03-19 22:28:34 +00:00
drh
8c1eba75a3
Enhance the command-line completion extension to return the names of
...
triggers and views along with the names of tables.
FossilOrigin-Name: 10e32204e1850354ff16fc052145726e903f87185a37f172831dddad1955184e
2018-03-19 19:05:45 +00:00
drh
9d03f63a7c
In the compile_options pragma, show the actual value of the
...
SQLITE_ENABLE_CEROD compile-time option, if it exists.
FossilOrigin-Name: 1ec339fd109b31e1d2b1e73345bd7a00c3d755f2c45c14d050a8203969163d60
2018-03-19 16:09:36 +00:00
drh
926961dc53
Improved ".selecttrace" output formatting. No changes in non-debug code.
...
FossilOrigin-Name: 30704d2a52d37717d8b34a402c99ea32453e5c1a9840037dba96591f4acc1503
2018-03-19 16:06:11 +00:00
drh
929cce8890
Do not use sqlite3_column_decltype() in the CLI if it is compiled with
...
SQLITE_OMIT_DECLTYPE.
FossilOrigin-Name: 442e816b5fed80ebeb58c7c0ab9c2ef999bf488519bf5da670e9cec477034540
2018-03-17 16:26:36 +00:00
mistachkin
2cc8f4831e
For 'zipfile', detect attempts to cause a duplicate entry via UPDATE.
...
FossilOrigin-Name: cf78a882799424610209e9ac5e76771db3f5e6704ffa181f9598eb0986d93eb8
2018-03-17 02:13:13 +00:00
mistachkin
d42d8ae337
Another Win32 portability fix for the 'zipfile' tests.
...
FossilOrigin-Name: 9f604418ca21472d84d754f4c3b7f170e5c2bff05e8cee86640e45b43bc53a49
2018-03-17 00:44:29 +00:00
drh
0d060a071e
Detect corruption in the form of the sqlite_sequence table pointing to the
...
wrong type of btree.
FossilOrigin-Name: 525deb7a67fbd64726c89d5cc36a54b090111e31239431efeeb2bda9836828e0
2018-03-16 23:59:36 +00:00
mistachkin
42a0dbfe92
Win32 portability fixes to the 'fileio' extension.
...
FossilOrigin-Name: 9d2b0f8b84aac862b0572b183e3ba53ea8c0d8742aaa3c3fbe59f6036054fd1a
2018-03-16 23:54:36 +00:00
mistachkin
b5a4a7053b
Enable more 'zipfile' tests on Win32.
...
FossilOrigin-Name: 49d2566c8e7d0df37494ee001fc6eae5f47f95e16f6a575f2d8d6777b62e6068
2018-03-16 23:54:26 +00:00
mistachkin
3c6de3266e
Make a couple tests less sensitive to timing.
...
FossilOrigin-Name: bc2af8e0aa28d8d10612ab9464c008a970348b4720bb34d0c546d341e2bc09e0
2018-03-16 23:54:12 +00:00
mistachkin
2d44d556b5
Fix a duplicate test number and cleanup a bit of Makefile whitespace.
...
FossilOrigin-Name: 56d11c250961790579a7aeee65e83fdb29462ae37f9de93da13fbd890fc0a01d
2018-03-16 23:53:47 +00:00
drh
86c369428f
Detect databases whose schema is corrupted using a CREATE TABLE AS statement
...
and issue an appropriate error message.
FossilOrigin-Name: d75e67654aa9620b9617786553a002f54e8c6dcbbcc58948a06bd98a0916d75a
2018-03-16 20:23:01 +00:00
drh
1e9c47be1e
Better error message text when the schema is corrupted by a CREATE TABLE AS
...
entry.
FossilOrigin-Name: e13993cf833423eec5f94082cee7213b2d97bcf40dddb2683cf5a8ebf50a33e3
2018-03-16 20:15:58 +00:00
mistachkin
8bbddd8049
Fix a parsing issue associated with a corrupt sqlite_master table.
...
FossilOrigin-Name: 5f779ff6b48ec97efacd49b1715b7e5272694fa839be349c90667812bbffe22b
2018-03-16 19:10:05 +00:00
drh
c8abbc11cd
Avoid writing the sqlite_sequence table when it has not actually changed.
...
FossilOrigin-Name: 3e3849a9d1a06673e6c713a42194f5da339fbf6533fa418c38f63d09bc045867
2018-03-16 18:46:30 +00:00
dan
9f2b04533e
Fix a problem in test script thread001.test causing a spurious "-1 files were
...
left open" error when run separately.
FossilOrigin-Name: 1774f1c3baf0bc3d83a53c52702696ff21814fa1de07cc38fd098832e6757b09
2018-03-16 07:48:43 +00:00
drh
b39161647e
Fix a typo in a comment used to generate documentation. No code changes.
...
FossilOrigin-Name: f1784aff4e6ff1c84d3fa0069034290154220fd2fa85c7df342c717ad54f4b91
2018-03-15 17:46:42 +00:00
drh
3571e7bf4c
Fix an issue with the fsdir() table-valued function not resetting correctly
...
after each pass of a join.
FossilOrigin-Name: 7ce4e71c1b7251be9e922b21dfeba1f9aef6a47ce6495ecb7f94fd785ab564f2
2018-03-15 15:09:45 +00:00
mistachkin
093d63bf34
Draft fix for an fsdir() issue reported via the mailing list.
...
FossilOrigin-Name: 48641010c24bf37f13d68c4d19c5c3e9b41404af12a4947705cc53a31db04178
2018-03-15 05:25:57 +00:00
drh
20a1f35928
Add the SQLITE_DBSTATUS_CACHE_SPILL option to sqlite3_db_status().
...
FossilOrigin-Name: 48a06eb02b42a021b835ff9766535805723259b9701b87fb17fa488b133cb53a
2018-03-14 15:25:43 +00:00
drh
15ca9e3e8c
Disable one of the test cases from check-in [21ecbce1378f3cc4] when
...
API_ARMOR is not enabled.
FossilOrigin-Name: 8fb23d4281915b4507e4d42a300f4b5f958ad88ad408218659c7459775d7b114
2018-03-14 15:06:42 +00:00
drh
ffc78a41ea
Add the SQLITE_DBSTATUS_CACHE_SPILL option to sqlite3_db_status()
...
FossilOrigin-Name: 3faeb851374471a6f94a6fab3a62c73d03330eae6fc72cd1a277b03ad12dcdd0
2018-03-14 14:53:50 +00:00
dan
68cf69ed8d
Improve detection of out-of-range parameters in sqlite3_stmt_status() for
...
SQLITE_ENABLE_API_ARMOR builds.
FossilOrigin-Name: 21ecbce1378f3cc4b1051628b8c1580bb807c8745a1f525bc089036af93a54af
2018-03-14 08:27:39 +00:00
dan
58db4c760f
Fix a typo causing SQLITE_LOG_CACHE_SPILL builds to fail.
...
FossilOrigin-Name: 0171d4a71ca7911a9fd409a42eeed0eda4521b6e48df5cd058364c0a736313b7
2018-03-12 21:09:16 +00:00
mistachkin
840c300f4a
Add more tests for the profile output of the Tcl trace_v2 method.
...
FossilOrigin-Name: 61eeb48f03f8a9a32330a5cae4387bb4e5618078cf669a5831910f99126900ec
2018-03-10 20:45:44 +00:00
drh
ffdab721a3
Fix the second callback argument to the "profile" response of the
...
"trace_v2" method in the TCL interface so that it shows the actual
number of nanoseconds for the command, not the address of the variable
containing the number of nanoseconds.
FossilOrigin-Name: 8f9a12518642e5be9760956ff345fe54ed5bd3cab55328e88312278d3d78bc76
2018-03-10 20:25:08 +00:00
drh
42f3c5ff25
Add support for INSERT OR REPLACE and INSERT OR IGNORE on the zipfile
...
extension.
FossilOrigin-Name: 8ad35d483e4293d5571eeacc20fd26cdc4064fbee7b63d974879d507a0ee5792
2018-03-10 14:17:01 +00:00
drh
41a6f2cb6d
Improved error messages from the zipfile extension.
...
FossilOrigin-Name: f634a7e386918b829389f20c330d312315fdd61125cd2c5f66cf17a5d74bce49
2018-03-10 13:21:41 +00:00
drh
70acb0aa6b
Avoid harmless left-shifts of negative numbers in the zipfile extension
...
when building ZIP archives of files with pre-DOS dates.
FossilOrigin-Name: 16bba8650cc24a0fd606944422bb31f2b8bdbe0a5a483678989e400b751eab4d
2018-03-10 12:53:20 +00:00
drh
ef29f73479
Fix the zipfile extension so that it is able to create symbolic link entries
...
in the ZIP file even on systems like Win32 that do not support symbolic links
on the native filesystem.
FossilOrigin-Name: 2a4493f4ad2d09c1097e98e7086623669f3f252571884d515e51a98b1c6855e1
2018-03-10 12:34:08 +00:00
drh
69d2d35523
Fix the .archive command in the CLI so that it actually compresses content.
...
FossilOrigin-Name: 3c2e3c2d3dd5d951099ad8d9f74d3c20dae11dd5615d86a6e2283b28ff5b19aa
2018-03-09 22:18:53 +00:00
drh
1bf208c701
Enhance the ".ar" command in the CLI so that it is able to update and
...
create ZIP Archives.
FossilOrigin-Name: 9404765ef7487013f01ecf24c0a1f70040cd11e7dbb6378646d15de4e5660a40
2018-03-09 21:54:01 +00:00
drh
393344f928
Setting ".stats 2" in the CLI causes column metadata for each
...
prepared statement to be displayed.
FossilOrigin-Name: 7fea00fd96a8ab7e65734540edb907b6224659ae95d7e0504755f2610c545587
2018-03-09 16:37:05 +00:00
drh
a10b999d14
Simplification to the shell_exec() mechanism in the CLI.
...
FossilOrigin-Name: 72e8f529ac8a268611f16456b13d55cc6c62df7f1a0aaa78a169338a0d95b960
2018-03-09 15:24:33 +00:00
dan
2d066bbfd8
Fix a problem in test file nockpt.test causing errors with
...
SQLITE_DEFAULT_AUTOVACUUM builds.
FossilOrigin-Name: e547c83f3eb71175574d4b49a0981b048bf525f57d36a2410d955cf1832bec22
2018-03-09 14:11:36 +00:00
drh
6131adc074
Fix a test case in zipfilefault.test so that it only runs if JSON1 is
...
available.
FossilOrigin-Name: 072b244790893a699dc49d7a2cead85bed016f8e28d18ae7662fbeb3298cb235
2018-03-09 14:06:11 +00:00