dan
3c9a073723
Fix an fts4 problem to do with the handling of phrases that contain zero tokens.
...
FossilOrigin-Name: caba5be0b2bdaf4eb4af9af267c0c22dfbd3dba5
2015-04-21 12:06:53 +00:00
drh
b6b676ea7c
Fix some identifier name de-quoting issues in the foreign key and trigger logic.
...
FossilOrigin-Name: 59e92bd9521f1e8315a9a7e7fd3d63b0c75eaf0e
2015-04-21 03:13:47 +00:00
drh
60f4e0918d
Test case for the previous check-in.
...
FossilOrigin-Name: a526f58bc96c0fdead51b6bd9aafea7b48bf398e
2015-04-21 02:17:30 +00:00
dan
4eed05347c
Fix a memory leak caused by duplicate entries in the sqlite_stat1 table.
...
FossilOrigin-Name: 2f58c8c9722fffc486610f9e6b08178d53a56b64
2015-04-20 15:13:08 +00:00
drh
cef2584335
Fix an obscure memory leak in sqlite3Stat4ProbeFree()
...
FossilOrigin-Name: c72abbe2c1735f3d563c6672616b2918b6209922
2015-04-20 13:59:18 +00:00
drh
992590be1c
Fix a broken assert() and comparison for INSERT INTO ... SELECT when the
...
SELECT uses an unknown collating sequence.
FossilOrigin-Name: e73ac0cbac257d2d2b28e51423e30d7449b6c7b5
2015-04-19 22:41:22 +00:00
drh
7520996965
Silently ignore parser stack overflow when parsing a malformed schema in
...
PRAGMA writable_schema mode.
FossilOrigin-Name: 2cb37b959c66b5ae3535ab81ba14a4ebf9732df7
2015-04-19 22:31:45 +00:00
drh
5f1d2fa4d2
Fix another assert() that is not true if the database schema is corrupt.
...
FossilOrigin-Name: bc97cec6338b16a4e9b1a9457d01bb7fe462934d
2015-04-19 21:59:19 +00:00
drh
33c59ecafb
Fix a faulty assert in the schema parsing logic.
...
FossilOrigin-Name: b1ed949584a2526c04952b98c3aa283427f45e10
2015-04-19 20:39:17 +00:00
drh
d0c7305313
Fix a potential NULL pointer deference on a corrupt database schema.
...
FossilOrigin-Name: dc61b292d8eaf422ca8a2b18f1caccef1a5389fd
2015-04-19 19:21:19 +00:00
drh
a21f78b93f
Bring comments on the INSERT code generator up-to-date. Fix the INSERT code
...
generator so that it correctly handles inserts from a SELECT into a virtual
table with non-terminal hidden columns.
FossilOrigin-Name: 4ac81fac6c6302c042be3df493a41630b733fff0
2015-04-19 18:32:43 +00:00
drh
7088d50109
Fix an incorrect assert() statement in the CREATE INDEX code generator.
...
FossilOrigin-Name: 2eed41fda068f2cbac55e63d7c1875ddaa331508
2015-04-18 17:43:29 +00:00
dan
ea8562edce
Ensure that if a "ROLLBACK TO" statement is used to rollback (but not close) theoutermost transaction, the xRollbackTo() method of any virtual tables involved in the transaction is invoked.
...
FossilOrigin-Name: e98d481d84ef31b6ed154f14deae9b261f722616
2015-04-18 16:25:54 +00:00
dan
1586699cfc
Fix a problem affecting some fts3 UPDATE and DELETE statements on order=DESC tables.
...
FossilOrigin-Name: 284c1623f81704ef80edb9324954525cb2b72172
2015-04-17 20:51:55 +00:00
drh
7693c42f1a
In the expression-tree comparison routine, do not compiler Expr.iColumn
...
and Expr.iTable for TK_STRING expressions.
FossilOrigin-Name: b67bb16c72c3e015ea82665ada9b5d3289ef6fb2
2015-04-17 19:41:37 +00:00
drh
7b4da150da
Always resolve symbols in all ORDER BY clauses of a compound-SELECT, even
...
illegal ORDER BY clauses.
FossilOrigin-Name: 6c39ef73d5899eabdb46db50c2b00c2d8381a41a
2015-04-17 18:52:37 +00:00
drh
97ab32bcd3
Remove unnecessary parser error count increments. Let the sqlite3ErrorMsg()
...
take care of doing that.
FossilOrigin-Name: 3f3b0f683af2fbee83811536f6bef770ff919385
2015-04-17 18:22:53 +00:00
drh
d99d28361e
Ensure that semantic SQL errors are always reported back up to the syntax
...
parser. Also: Improve the defense against invalid PRAGMA synchronous settings.
FossilOrigin-Name: 7aeade9a07f29bf26e50394042ea18d0121fe7a3
2015-04-17 15:58:33 +00:00
drh
b8289a8b00
Fix a faulty assert() in sqlite3SelectNew().
...
FossilOrigin-Name: 620d19c3b462f5c4763ebd26513321431f21dd72
2015-04-17 15:16:58 +00:00
dan
ec16d98489
Have OTA always specify SQLITE_CONFIG_URI when opening databases. Fix a test issue causing otacrash.test to fail.
...
FossilOrigin-Name: 0d0e5ec064eaecb200b9b601b7a54a1700cd176e
2015-04-17 08:36:05 +00:00
drh
ab4e7f3337
Make sure all cursors are closed when returning from a VDBE subprogram that
...
implements a foreign-key construct.
FossilOrigin-Name: d04d354d8e423961c3091b6ebcfbbbf10d3ecb04
2015-04-16 18:11:50 +00:00
drh
a276e3fd4d
Fix a faulty assert() in the compound-SELECT code generator.
...
FossilOrigin-Name: 10715b05f2201a63dca317f99ce39d3ce182e182
2015-04-16 16:22:27 +00:00
drh
59ac655d02
Silently ignore requests to change the PRAGMA synchronous setting to an
...
illegal integer value, rather than raising an assertion.
FossilOrigin-Name: e0a88176fcfbed7b554a036948261a332c920053
2015-04-16 16:04:39 +00:00
drh
e06874eaa1
Make sure errors in coding triggers are propagated back up to the parser.
...
FossilOrigin-Name: 928f973ca9adc7933015b2fb6b6fcb8e3154cb9c
2015-04-16 15:47:06 +00:00
drh
772460fd4c
Improvements to the way VALUES clauses are parsed.
...
FossilOrigin-Name: ec5a493ad27593ca78899b3001630c1898b940ff
2015-04-16 14:13:12 +00:00
drh
b073771cdf
Fix the corruptC.test module due to a change in error message text.
...
FossilOrigin-Name: 7c0deed25762a954c78d98412d8f4a265a437d06
2015-04-16 12:12:07 +00:00
dan
0d2e2f2b10
Fix a problem in test file e_reindex.test.
...
FossilOrigin-Name: 5b3de9390f2ffc4c530fd47c71c70e87972cf74b
2015-04-16 08:54:01 +00:00
dan
5b1c07e7fb
Ensure the sqlite3Select() routine always returns non-zero if an error has occurred.
...
FossilOrigin-Name: b51028ed2f57f4245a7ebd9bdb99d1bcfaf1a01b
2015-04-16 07:19:23 +00:00
mistachkin
3693a094b2
Merge updates from trunk.
...
FossilOrigin-Name: 22827542a5c7aeac4385ba647f45bd500e787fe6
2015-04-16 04:20:10 +00:00
drh
22ecef5c20
When parsing the schema, ignore any SQL that does not begin with "CREATE".
...
FossilOrigin-Name: d3c00d61581c8ba6dce5618391432d3af8d324d4
2015-04-16 00:26:03 +00:00
drh
a9de561b21
Add the --msvc command-line option to the releasetest.tcl script. This is
...
only a partial merge from the winTest branch as the OS_TRACE changes are
omitted.
FossilOrigin-Name: b8768f124ef7d79e500b60a3ede288d46a0f529d
2015-04-15 14:52:05 +00:00
drh
fdb031891c
Merge all recent trunk enhancements and fixes into the ota-update branch.
...
FossilOrigin-Name: 9bd3e4453d4ad416f7e3f08f0bd283d34f1c319c
2015-04-15 14:26:04 +00:00
dan
0d01ec8de8
Remove an incorrect assert() statement from sqlite3Fts3Dequote().
...
FossilOrigin-Name: bd06eeb8d06237dc2d54d8a03e8bf525cb811c9e
2015-04-15 09:16:39 +00:00
dan
2deb12be2b
Fix a problem causing an assert() to fail if a snippet containing 0 tokens was requested from fts3.
...
FossilOrigin-Name: eafd0a1e3f25f38d551603f177ff4634cf79de77
2015-04-15 08:20:50 +00:00
drh
29031837c1
Remove an incorrect ALWAYS() from the automatic index generator.
...
FossilOrigin-Name: eeb4bd06bf69e411736cc6077d1d64af6bd8fb09
2015-04-15 07:34:25 +00:00
drh
1b6789697d
Remove an incorrect ALWAYS() from the table_info pragma.
...
FossilOrigin-Name: 0e087c0183bc7a758cf2a1d39158bc24fde833a2
2015-04-15 07:19:27 +00:00
drh
3dc4cc66b3
Change the multiSelectOrderBy() routine to return non-zero if there has
...
been any prior error.
FossilOrigin-Name: 14784c317bff05dd0a74e2596432dfd12c139391
2015-04-15 07:10:25 +00:00
drh
a43f02efc6
Fix a faulty assert() statement in the name resolver associated with the
...
optimization that converts compound selects with ORDER BY COLLATE into
subqueries.
FossilOrigin-Name: c72324ef9243946550ae3d974826502b1cc5eb10
2015-04-15 06:45:13 +00:00
drh
6456b7710c
Correctly handle COLLATE operators applied to COLLATE operators in an
...
ORDER BY clause.
FossilOrigin-Name: 9e1f837b08facbc7a2b6196770599a58233e725c
2015-04-15 05:57:50 +00:00
drh
3457338ced
Fix a faulty assert() in the sqlite3StrAccumAppend() routine.
...
FossilOrigin-Name: 998cfdb8dcda2cac94b83326751e16dcef8b267f
2015-04-15 05:38:35 +00:00
drh
65df68e8c5
Correctly deal with an unknown collating sequence on an indexed DISTINCT query.
...
FossilOrigin-Name: a0b6e2fed3e95cf78ed0515c6e4da7510af4e86a
2015-04-15 05:31:02 +00:00
drh
1978d171cb
When adding the implied "LIMIT 1" to the end of a scalar subquery, make sure
...
that subquery is not a VALUES-only query as such queries cannot deal with
LIMIT clauses.
FossilOrigin-Name: 7c27310bdf6b4af44a0811a2787ed64966d720d2
2015-04-15 05:20:44 +00:00
drh
0ec68f845c
When doing the (dubious) conversion of double-quoted identifier into string
...
literal for MySQL compatibility, be sure to also clear the iTable value from
the Expr entry to avoid an assert.
FossilOrigin-Name: d7211b68107ea669de39e0aa81a1be40901e1487
2015-04-15 04:51:28 +00:00
drh
311efc70a7
Add a test case for what was formerly thought to be an unreachable condition:
...
when the LHS of an OR operator contains an error and the RHS contains an IN
operator.
FossilOrigin-Name: 3872742591add4e94033484c2844e7d7ab69674b
2015-04-15 04:20:58 +00:00
drh
126a6e260c
An oversize hex literal can cause a parsing error while generating code for
...
constants that are factored out of the main body of the VDBE program. So
allow for that case.
FossilOrigin-Name: a084690b4fcabba20d9770ebf3a014dda84e2954
2015-04-15 04:10:50 +00:00
dan
481ecd95d0
Test that if the definition of a collation sequence is changed and VACUUM run, the new database contains records sorted in the (new) correct order.
...
FossilOrigin-Name: ce6eaac10a190b26b87bfe75918e2ef58fd7a3f9
2015-04-13 14:08:27 +00:00
drh
f932f7145e
Fix a problem with a stale Select.pWith pointer when a CTE is used together
...
with a compound query and an ORDER BY clause.
FossilOrigin-Name: 9a453f52a2b30595891604ede7d4acf61c2736a1
2015-04-12 17:35:27 +00:00
drh
11b0481778
Avoid problems when a query has a GROUP BY and an ORDER BY but no FROM clause.
...
FossilOrigin-Name: e527d96a1e098ade4e9d124b630a8c2ea2ac9b36
2015-04-12 01:22:04 +00:00
dan
96974bd393
Fix a problem with sorting large amounts of partially ordered data.
...
FossilOrigin-Name: acca97efda86a0c020854d2dd9da16f5879986b1
2015-04-11 20:20:29 +00:00
dan
8aad8c482c
Update tests in whereD.test to account for the change in the previous commit.
...
FossilOrigin-Name: da49700ca148d91e1b8863c2eb6ee79144e83ac9
2015-04-11 11:53:39 +00:00
dan
2813bde028
Do not assume an index contains unique entries unless it is declared UNIQUE and NOT NULL is specified for all columns. Fix for [7b4fee9f6c].
...
FossilOrigin-Name: e3b1f625518edc0e925116668dca5d25c3232b59
2015-04-11 11:44:27 +00:00
drh
4a33507f60
Detect and report oversized records constructed from multiple zeroblobs.
...
FossilOrigin-Name: 9e139afd92116ebc593114ed63b57c8f469653f6
2015-04-11 02:08:48 +00:00
drh
e918aaba98
Fix foreign key CASCADE for cases where the parent key is an INTEGER PRIMARY
...
KEY and the parent table contains other columns named "rowid", "_rowid_",
and "oid".
FossilOrigin-Name: ed3cbaab6ad49b0cb5b17e44def26c866919387a
2015-04-10 12:04:57 +00:00
dan
75395ccd17
Do not allow virtual table constructors to be called recursively.
...
FossilOrigin-Name: 0a72726da21581ab16cb3e964bd825b8f2e931e4
2015-04-10 07:55:07 +00:00
drh
57d0d9f33c
Merge all changes for version 3.8.9 into the ota-update branch.
...
FossilOrigin-Name: ec9d907a57fcea72c8a64e521e8a1b5777d67568
2015-04-08 14:01:07 +00:00
mistachkin
d4411941e2
Merge updates from trunk.
...
FossilOrigin-Name: c458db41bbb6bd13d47531685e25a09f512c7f5f
2015-04-07 21:18:17 +00:00
mistachkin
cc445402c9
Correct typo in new test numbering.
...
FossilOrigin-Name: d176c9fa4c65ff2f3952dd3dee46da149dfa442f
2015-04-07 21:17:53 +00:00
mistachkin
151c75ad89
Enhance the shell export to support emitting column names in 'insert' mode when headers are enabled.
...
FossilOrigin-Name: 6e504cd00b148b5acca73f039a20b8acc85dc2f0
2015-04-07 21:16:40 +00:00
drh
b6f47deb0c
Avoid signed integer overflow when converting oversized in-line integer
...
widths and precisions in printf().
FossilOrigin-Name: 8e4ac2ce24415926247961b00a62425ae85d6ffb
2015-04-07 15:39:29 +00:00
dan
8c069147ce
Another change to avoid a problem caused by integer overflow in the printf() code.
...
FossilOrigin-Name: 95625ef3adc3c408d67e70f877f390445fbb8292
2015-04-07 14:38:57 +00:00
drh
a30d22a7a6
Further changes to guard against integer overflow in the width and precision
...
of printf() arguments.
FossilOrigin-Name: 5ce4e7d7651e5c72a59f03f7aeb366291e62ab57
2015-04-07 13:28:41 +00:00
drh
74b42275ec
Guard against excessive width and precision in floating-point conversions
...
in the printf routines.
FossilOrigin-Name: c494171f77dc2e5e04cb6d865e688448f04e5920
2015-04-07 12:41:17 +00:00
dan
e3cdbad274
Fix a problem with fts3 prefix terms within phrase queries on "order=DESC" tables with a mix of negative and positive rowids.
...
FossilOrigin-Name: 3ad829e50faca538db3abb2afb898b5521550c5c
2015-04-06 11:04:51 +00:00
dan
4b0000c9a8
Fix a problem with fts3 prefix terms within phrase queries on "order=DESC" tables with a mix of negative and positive rowids.
...
FossilOrigin-Name: 0cdf502885ea7e5805d7ba3719f055f5d48fc78d
2015-04-06 09:05:29 +00:00
dan
b33c50f215
Fix a problem with resolving ORDER BY clauses that feature COLLATE clauses attached to compound SELECT statements.
...
FossilOrigin-Name: 427b50fba7362e5b447e79d39050f25ed2ef10af
2015-04-04 16:43:16 +00:00
mistachkin
00eb70d89c
Enhance the 'releasetest.tcl' tool to support MSVC.
...
FossilOrigin-Name: f664bfdc82597a4530d4f4938bb96557b43b171b
2015-04-04 00:02:07 +00:00
drh
62ca61ee61
Disable the SQLITE_FCNTL_WAL_BLOCK feature for now. It needs more work and
...
is not yet ready for release.
FossilOrigin-Name: 4ae9a3acc4eeeb7998769eb856c97c2233476f72
2015-04-03 20:33:33 +00:00
dan
5f1731f670
Disable e_walauto.test on OpenBSD, as it requires a coherent cache.
...
FossilOrigin-Name: 90701227085b8b8eb10a8eebe8d55f38b4778574
2015-04-02 15:24:53 +00:00
drh
6b5f0ebe97
Handle very large URI pathnames for in-memory shared-cache databases.
...
FossilOrigin-Name: 586a94e85bc13700a2093734711c1367fa814b8c
2015-03-31 16:33:08 +00:00
drh
96e285692a
Fix the corruptJ.test case so that it works with and without
...
SQLITE_SECURE_DELETE.
FossilOrigin-Name: 0c0ecfd68573957553b966229a67bfcd10ce4b99
2015-03-31 14:31:41 +00:00
drh
116f0be024
Prevent a possible infinite loop when trying to DROP a table from
...
a corrupt database.
FossilOrigin-Name: 395bb3e677a6551b06ba96fc58c393132b93d1e8
2015-03-30 23:43:56 +00:00
mistachkin
56d89cbee3
Revise Win32 locking test to account for recent log message changes.
...
FossilOrigin-Name: 1bc76339e8542770bff7829a3dd346680950c0a5
2015-03-26 18:24:26 +00:00
drh
d2f83139f3
Fix the saveCursorPosition() routine in btree.c so that it works
...
correctly for a eState=CURSOR_SKIPNEXT cursor.
FossilOrigin-Name: 37866b4d483296ab9b7fcb9f5486695d4c2b8ddd
2015-03-25 17:35:01 +00:00
dan
32c9068adb
Extend [52e73eec] so that the IS optimization may be used on primary keys with more than 3 columns.
...
FossilOrigin-Name: 4e8796af7d40d6ca423e07c68877035e4aa2485c
2015-03-25 15:23:00 +00:00
dan
6da7a0a93d
Merge the latest trunk changes into this branch.
...
FossilOrigin-Name: 9d9b6c883b4f7d69c615cedfb59a2385aac47b74
2015-03-24 18:21:41 +00:00
dan
428630cfcf
Add tests to check that attempting to DROP a virtual table while it is use does not cause problems.
...
FossilOrigin-Name: 5ee625b1980f9fab6294d308349dfd9ba960b60b
2015-03-24 14:57:21 +00:00
drh
74893a4cdb
Fix a potential NULL pointer dereference following a syntax error.
...
FossilOrigin-Name: 8d27e3e16a9be79fe227e833f4770ebe09a9d90b
2015-03-22 10:23:17 +00:00
dan
e10d87f65a
Avoid a segfault if NULL is passed as the first argument to SQL scalar function fts3_tokenizer().
...
FossilOrigin-Name: 6d0989695b486275824c14d5f88357267c1e8104
2015-03-21 19:35:09 +00:00
dan
d2f99333cf
Change walblock.test to block an external process for 10 seconds, not 5. 5 seconds is not long enough to tell the difference between a blocking lock and a series of retries.
...
FossilOrigin-Name: 717335fcdb15430ed977cbc98d30345b71728b66
2015-03-21 16:40:24 +00:00
dan
71138b0f0f
Merge trunk changes with this branch.
...
FossilOrigin-Name: 142743918fd5a6d79fa10c44398360c3684a255a
2015-03-21 15:45:24 +00:00
dan
998aaa03ea
Avoid an integer overflow in fts3 causing gcc 4.7.1 with -O2 to behave counter-intuitively (perhaps because the behaviour is undefined). Add an "ifcapable trace" to a test in shell4.test.
...
FossilOrigin-Name: e3e234649616f20610abce9ae9da1c572d3a4377
2015-03-21 12:22:51 +00:00
dan
e56f53ef7c
Add a missing "ifcapable fts3" to a test case in vtab2.test.
...
FossilOrigin-Name: d845b0f69093178517d66e1fc5060e8f62c681c7
2015-03-21 10:53:01 +00:00
drh
8f9d0b2b25
Correctly detect the error of having a "*" wildcard on a SELECT without
...
a FROM clause on the left-hand side of a recursive CTE.
FossilOrigin-Name: b11d1793a06a44931edcbf12a615b49794d53a62
2015-03-21 03:18:22 +00:00
drh
f063685079
If a column is both UNIQUE and a PRIMARY KEY, make sure the PRIMARY KEY
...
designation takes precedence.
FossilOrigin-Name: d871a7921722bb0fef6d51e1110a9703ddff78c8
2015-03-21 02:58:20 +00:00
mistachkin
48cc29a9ac
Merge updates from trunk.
...
FossilOrigin-Name: 441a00e70d8c0a3d09b7f283a65a2918791ad1bb
2015-03-21 02:34:17 +00:00
dan
80103fc614
Fix a problem causing collation sequence names to be dequoted multiple times under some circumstances.
...
FossilOrigin-Name: eddc05e7bb31fae74daa86e0504a3478b99fa0f2
2015-03-20 08:43:59 +00:00
dan
7377945a7b
Fix a problem with creating virtual table with names specified using malformed utf-8 within utf-16 databases.
...
FossilOrigin-Name: 9969cff2d0553c9bfa88a437e1bb0cc4200d49d7
2015-03-19 18:56:17 +00:00
dan
b7134d0863
Fix an FTS3/4 problem with handling empty tokenizer declarations (e.g. "CREATE VIRTUAL TABLE t(tokenize=);").
...
FossilOrigin-Name: 26d2def8a53094356008861636d66f9ae8f2448a
2015-03-19 16:25:42 +00:00
dan
e0417626ea
Silently ignore any attempt to add a prefix index for prefixes zero bytes in size to an fts3/4 table. Or any prefix index size so large that it overflows a 32-bit signed integer.
...
FossilOrigin-Name: ad4b19d2ac0889a23fe3b0fd844286efc10cdd82
2015-03-19 15:52:07 +00:00
mistachkin
398f109dfb
Merge updates from trunk.
...
FossilOrigin-Name: 3e363f405655e2e39588029d797496a952cca11d
2015-03-19 14:46:52 +00:00
drh
657b4a87e5
Fix a bug in error handling in the ".trace" command of the command-line shell.
...
FossilOrigin-Name: 6a48b5d794e891fdd167547c76835d677eb5e31d
2015-03-19 13:30:41 +00:00
dan
c3b328da6e
Allow whereShortCut() to use the PRIMARY KEY index of a WITHOUT ROWID table to optimize a vector of "IS" operators in a WHERE clause.
...
FossilOrigin-Name: 52e73eeca063bb30092ce600068bf487641399a0
2015-03-18 20:03:27 +00:00
drh
5572f7e42e
Also merge the WAL blocking lock tests that were somehow missed on the
...
previous check-in.
FossilOrigin-Name: 7214dab7443d35c105904dd69635c1f8b45b2fc8
2015-03-17 17:08:35 +00:00
dan
363fc9e724
Add a test for the change on this branch.
...
FossilOrigin-Name: e22dde187eb0b389d6d93e2e39a26fd0f4e6196e
2015-03-17 16:01:29 +00:00
mistachkin
05b6048dbd
Fix typo of test prefix in the new WHERE test file.
...
FossilOrigin-Name: 34779c528f1817d6ec34216b58fb4277956b5167
2015-03-16 18:08:56 +00:00
drh
29894b6d2b
When the WHERE clause contains two OR-connected terms with identical
...
operands but different operators, try to combine them into a single term.
Example: (X=A OR X>A) becomes (X>=A).
FossilOrigin-Name: 8bdda827a3d268009297a0216e3d94bf0eceeb2e
2015-03-16 17:48:12 +00:00
drh
07b38959a4
Modify the fts3query.test script so that it works even when testfixture is
...
built using a version of TCL that is unable to sort the
integer -9223372036854775808
FossilOrigin-Name: f61fd24b4d3b686911ea578f77612309099f0cc6
2015-03-16 17:07:09 +00:00
drh
8426636cdc
When a WHERE clause contains disjuncts with the same operands, try to
...
combine them into a single operator. Example: (x=A OR x>A) becomes
(x>=A).
FossilOrigin-Name: 7a3097689d17625fb0dfc4372712f375f3bdb9a1
2015-03-16 12:13:31 +00:00
dan
a0d56aef18
Another test case for the planner change on this branch.
...
FossilOrigin-Name: f2207a0691ed361061719f4dacf021a677a9d892
2015-03-16 09:21:30 +00:00
dan
a3d0c13654
When estimating the number of rows visited by a range scan for which the keys consist of more than one field, consider prefixes of stat4 samples as well as the full samples.
...
FossilOrigin-Name: e1caf93c9ad0ee15d42030af95619f212d3fcf9d
2015-03-14 18:59:58 +00:00
dan
dfac7016a7
Add tests to ensure "PRAGMA incremental_vacuum" and "PRAGMA auto_vacuum = incremental" handle corrupt databases correctly.
...
FossilOrigin-Name: 1c2166cb2a387a0856f41b399c3648bf8c5fce73
2015-03-13 15:44:36 +00:00
dan
3df3059252
Extra tests for commit [0f250957].
...
FossilOrigin-Name: 5aa522dcb9bfa18d49683f7cc889516984e2bcd2
2015-03-13 08:31:54 +00:00
drh
e9b9f7599a
Remove debugging logic accidently included in the previous check-in.
...
FossilOrigin-Name: 2887fb38ffc28712c34028cd38db2b7993d864eb
2015-03-13 00:11:09 +00:00
drh
3df79a9a1f
Fix the "now" option for date-time functions for cases when STAT4 is disabled.
...
FossilOrigin-Name: 3ac1f6a3cf1a8fd3ab1ca96b2564c13c4b8d2234
2015-03-12 23:48:27 +00:00
drh
3795f3cee3
When STAT4 is enabled, allow probes of the STAT4 table using the value
...
of constant functions computed at compile-time.
FossilOrigin-Name: 0f250957cd82be63e44eb99be6cc10760f4fdfc4
2015-03-12 21:22:08 +00:00
dan
63c088e783
Disable multiplexing of master-journal files in the test_multiplex.c module.
...
FossilOrigin-Name: b8684df395b5585a9428417c2bfd076515560f19
2015-03-12 19:12:30 +00:00
dan
18bf807689
Allow the query planner to evaluate deterministic scalar SQL functions used in WHERE constraints if all arguments are SQL literals in order to compare the results with sqlite_stat4 sample data.
...
FossilOrigin-Name: b7f1fc26d24012e1e7c7f6b3cc0b84ad2b02b8ad
2015-03-11 20:06:40 +00:00
drh
94929646f1
Fix an incrblob2 test case so that it works on 32-bit systems.
...
FossilOrigin-Name: 8d0b11c96e15556dd65ced05708a832aef134e69
2015-03-10 15:34:47 +00:00
drh
9b5d76bf57
Revise test cases in malloc5.test to accommodate varying allocation
...
sizes returned by some system malloc() implementations.
FossilOrigin-Name: fbae6bafd74d8da9c72be5f562a62f80b01cc846
2015-03-10 13:50:18 +00:00
drh
a9106ca83d
Merge recent trunk enhancements into the ota-update branch.
...
FossilOrigin-Name: 5489cb68921f62f10d832adbc4d19ea8c6c5da50
2015-03-09 13:24:46 +00:00
drh
560b7c72be
New test cases for LIKE and GLOB with BLOB left-hand side values.
...
FossilOrigin-Name: 50fa3c5fae90bd3b2f4121e99ab52d79963a6fda
2015-03-07 12:58:52 +00:00
drh
b7c60ba668
Fix problems with reverse order sorting and indexes in the LIKE optimization.
...
FossilOrigin-Name: 564b8fe79475d7584a21078e6098840b8ce6a6e1
2015-03-07 02:51:59 +00:00
drh
16897072b5
Refactor some jump opcodes in the VDBE. Add JumpZeroIncr and DecrJumpZero.
...
Fix the LIKE optimization to work with DESC sort order.
FossilOrigin-Name: 26cb5145bf52f8c3fffa8c69b6c24aee4d974883
2015-03-07 00:57:37 +00:00
drh
a9c18a9067
Test cases added. Comments fixed. Proposed solution for
...
ticket [05f43be8fdda9fbd9].
FossilOrigin-Name: 6b993bd54035b67f4d84941e3f444ca79b7feee1
2015-03-06 20:49:52 +00:00
drh
8dd7a6a925
Clearification of some documentation text. Added requirements marks.
...
FossilOrigin-Name: 8c1e85aab9e0d90726057e25e2ea0663341c070f
2015-03-06 04:37:26 +00:00
dan
54fc21438e
Fix some problems with OTA and empty target databases, or target databases with the wrong set of tables. Also add SQLITE_FCNTL_VFSNAME support to the OTA VFS.
...
FossilOrigin-Name: 46119e8d8e391d8dea844352521b58415f7365b1
2015-03-05 16:21:20 +00:00
drh
7be0fd9c58
New test cases and requirements marks for PRAGMA index_info, index_xinfo,
...
and index_list.
FossilOrigin-Name: e5b13634d9794e4c75378cea89b64c5ecc5aa3e5
2015-03-05 15:34:15 +00:00
drh
5e7028c210
Revert "PRAGMA index_info" to output only three columns, for complete
...
compatibility with prior versions. The new "PRAGMA index_xinfo" can be
used to get the extra information in 4th, 5th, and 6th columns.
FossilOrigin-Name: fc543c2c5ced30a7dc3a05b0c1ad80fdc838df8e
2015-03-05 14:29:02 +00:00
drh
2af878ec5e
New requirements marks on compound SELECT statements.
...
FossilOrigin-Name: e7991bc510f63f3594603a91f6f3b32e94d90e72
2015-03-05 01:29:51 +00:00
drh
682a6ef6bd
New requirements marks on INSERT and INDEXED BY and on some sqlite3_config()
...
options.
FossilOrigin-Name: c298ea0bd90d63673435bf8ceafbaeba3db6187d
2015-03-04 23:14:14 +00:00
drh
51a74d4cbd
More test cases and requirements marks for pragmas.
...
FossilOrigin-Name: fc51037cd97063069620213a62efdeff5d898706
2015-02-28 01:04:27 +00:00
drh
9d356fbe6e
New requirements marks and a few new test cases to go with them. No changes
...
to code.
FossilOrigin-Name: 8c2b29d9acb92d47f4deec21a7c2dca52db63345
2015-02-27 20:28:08 +00:00
mistachkin
0404e74caa
Merge updates from trunk.
...
FossilOrigin-Name: acf7684323da4dc3aaf9746bd13b0f56054a17dd
2015-02-27 19:40:08 +00:00
drh
22ec13466c
Add a couple of requirements marks.
...
FossilOrigin-Name: d70b0fd4c94f2b70cf31c2ab9ef7a2fb2e71c182
2015-02-27 00:33:15 +00:00
drh
531b55ead0
Update a requirements mark to reflect a change of wording in the documentation.
...
No changes to code.
FossilOrigin-Name: 3038d0169bfc3f63d64c7fef20ab2323d032655f
2015-02-26 16:40:41 +00:00
dan
2a45cb5c0e
Prevent partial indexes on the table on the left hand side of a LEFT JOIN from being incorrectly qualified by a constraint in the ON clause of the join. This relaxes the rule introduced by the previous commit (as the partial indexes on the table on the rhs of the LEFT JOIN may now be qualified by terms within the ON clause).
...
FossilOrigin-Name: 1d6fb43a576d335d2717e94d28385178c23c81a1
2015-02-24 20:10:49 +00:00
drh
e006a86643
More test cases to help ensure that partial indexes do not get used if their
...
qualifing constraint is inside the ON clause of a LEFT JOIN.
FossilOrigin-Name: c6399958a17e8b7c1798a9240fb06bffc774b332
2015-02-24 18:39:00 +00:00
drh
077f06edfa
This additional fix prevents a partial index from being qualified for use
...
if the constraint that qualifies the partial index is part of the ON clause of
a LEFT JOIN.
FossilOrigin-Name: 1a1516e4da26dcee35e6fbb6604ce252faf3d116
2015-02-24 16:48:59 +00:00
drh
36f65bafe5
Make sure partial automatic indexes are not based on terms in the ON clause
...
of a LEFT JOIN. Fix for ticket [2326c258d02ead3].
FossilOrigin-Name: c0f4e308a508183b72ceda447dc3ac778cb85b9f
2015-02-24 16:05:54 +00:00
dan
bbd0c46e0e
Merge latest trunk changes with this branch.
...
FossilOrigin-Name: e5ca79d2d3c066252b0baa4f76ddbe0ee3b14cb6
2015-02-23 16:17:46 +00:00
dan
71405b27c9
Merge latest trunk changes with this branch.
...
FossilOrigin-Name: 6f5888a5e430feb5d9a50009a2eb103d9945bd22
2015-02-19 14:41:24 +00:00
drh
883ad04985
First small steps toward brining trunk and apple-osx closer together.
...
FossilOrigin-Name: 28284ccc0d7301503f6d2d7bee9093738d52e331
2015-02-19 00:29:11 +00:00
mistachkin
a0efb1ae11
For the shell '.import' command, make sure the last column value present is considered before NULL filling any missing ones.
...
FossilOrigin-Name: 9c5bcad1f7d04c16f3ec7fc483280059ae93961b
2015-02-12 22:45:25 +00:00
dan
a3cf4f7ccb
Merge latest trunk changes with this branch.
...
FossilOrigin-Name: 0b63e8dcbaec5043e353734e684c2a46552a3409
2015-02-11 16:54:48 +00:00
drh
2c5e9b5672
Add test cases for the query flattener fix for
...
ticket [2f7170d73bf9abf8].
FossilOrigin-Name: dd8f7f7511639a1baa41a6ff2e359dc6f1e66943
2015-02-09 16:34:33 +00:00
drh
2308ed3854
Propagate the COLLATE operator upward through function calls.
...
Initial fix for ticket [ca0d20b6cdddec5e8].
FossilOrigin-Name: c053448a55f9d030e8ffe88cf4fc14ada7f6ec19
2015-02-09 16:09:34 +00:00
drh
d10d18da5f
Fix potential 32-bit integer overflow problems on the offset and length
...
parameters to sqlite3_blob_read() and sqlite3_blob_write(). For
sqlite3_blob_open(), make sure the *ppBlob return parameter is zeroed if
the interface fails with SQLITE_MISUSE.
FossilOrigin-Name: 5df02f50f8348dfde4fc15126abc7b7ef7803e69
2015-02-07 15:16:35 +00:00
drh
00dbc89824
Merge the command-line shell enhancements from trunk.
...
FossilOrigin-Name: c3931db560ab4a2601c7f7318fb02c8d5e6862b1
2015-02-06 15:03:45 +00:00
drh
0e55db1cd8
Change the name of ".info" to ".dbinfo" and add an optional second argument
...
which is the ATTACH-ed DB about which information is provided. Provide
".indexes" as an alternative name to the legacy ".indices" command.
FossilOrigin-Name: 0f65a7e2e09f801b66897479d501607caeae4abf
2015-02-06 14:51:13 +00:00
drh
fe9752d934
Merge all changes from index_xinfo, including the move of the pragma table
...
into the separate pragma.h file.
FossilOrigin-Name: 21e95d28a51e56b45a9d4166475972535e53f954
2015-02-04 23:51:59 +00:00
drh
4bb8cb0927
Merge all recent trunk changes, including the movement of the pragma
...
table into the separate pragma.h header file.
FossilOrigin-Name: 3af19f84446ba5fc1ed754d0d73f6a6d7fb2f365
2015-02-04 23:13:48 +00:00
drh
1dae26bdab
Fix a typo in the --help output for speedtest1. Fix a dependency error
...
in the Makefile.in for speedtest1.
FossilOrigin-Name: f30a057aeeac2b863493b6325325b075a76b9d21
2015-02-03 19:20:03 +00:00
dan
32348f7bd2
Merge latest trunk changes with this branch.
...
FossilOrigin-Name: 76212f2c9a3c3ff0e238d6dad776938c6af674e6
2015-02-02 09:40:36 +00:00
drh
161a6845f9
Merge in support for the index_xinfo pragma.
...
FossilOrigin-Name: f9b6dc77021ee421bffd5697d5d337d3bbd07eb9
2015-01-31 02:34:23 +00:00
drh
c228be5b1f
Add the "index_xinfo" pragma. Add new columns to the "index_info" and
...
"index_list" pragmas.
FossilOrigin-Name: 30f51d7b3b292191e8351223242e708bb7f3dfa6
2015-01-31 02:00:01 +00:00
drh
0a3105c25f
Merge the SQLITE_TESTCTRL_IMPOSTER changes from trunk.
...
FossilOrigin-Name: 3ed6eb2fab5d95709ef392170339e6dd5ba13971
2015-01-30 21:00:10 +00:00
drh
1ffede8c86
Change SQLITE_TESTCTRL_INITMODE to SQLITE_TESTCTRL_IMPOSTER. Revise the order
...
of parameters. Give it the ability to reset the schema parse table so that
imposter tables can be erased.
FossilOrigin-Name: 42d5601739c90434e5adfda8fa99ef7b903877db
2015-01-30 20:59:27 +00:00
drh
3102aa01fd
Merge all recent trunk changes, and especially the SQLITE_TESTCTRL_INITMODE
...
enhancement.
FossilOrigin-Name: 36436dde74ce2536a9a430b4458216499ad113bf
2015-01-30 16:36:17 +00:00
drh
0699f29a14
Added SQLITE_TESTCTRL_INITMODE for improved testability.
...
FossilOrigin-Name: 98e029134dc1300d3ecb48b41b5107ec69ba85db
2015-01-30 15:52:26 +00:00
drh
917682a4f4
Add a few simple test cases for SQLITE_TESTCTRL_INITMODE - cases which
...
also test PRAGMA integrity_check.
FossilOrigin-Name: 3a6e2afe408d2b0c8166d00def2048568169d87a
2015-01-30 15:40:15 +00:00
mistachkin
fdc2e6d344
Fix some duplicated test names.
...
FossilOrigin-Name: 1797158db2a818134c5cba1578f69ed85948b980
2015-01-29 19:27:31 +00:00
dan
976b003344
Ensure that "PRAGMA wal_checkpoint = TRUNCATE|FULL|RESTART" block on other connections and truncate the database file as required even if the entire wal file has already been checkpointed.
...
FossilOrigin-Name: 53429689d4fcf472edbc89cc50b5e69ba3270634
2015-01-29 19:12:12 +00:00
dan
88392bf3ce
Optimize range constraints on the rowid column of fts3/4 tables even if there is no MATCH clause in the query.
...
FossilOrigin-Name: 85dc12625d300fe48f3c096f54ebcb8b6ef4e30a
2015-01-29 11:52:22 +00:00
drh
120b3a4f61
Merge in all changes from trunk.
...
FossilOrigin-Name: 17c69be80542c5f84e21d60df3edc49422b087d9
2015-01-28 12:00:40 +00:00
dan
6f0138e89e
Fix a bug in the fts3 snippet() function causing it to omit leading separator characters from snippets that begin with the first token in a column.
...
FossilOrigin-Name: adc9283dd9bc3a6463f8c4fe23dd58a3712c349d
2015-01-27 19:01:26 +00:00
drh
a58d4a9612
Fix a (almost always harmless) read past the end of a memory allocation
...
that comes about because the Expr.pTab field is checked on an
EXPR_REDUCEDSIZE Expr object before checking the Expr.op field to
know that the Expr.pTab field is meaningless.
FossilOrigin-Name: e098de691002a78270540430b0df1e120582b53f
2015-01-27 13:17:05 +00:00
drh
2b8c5a0039
Make sure errors in the FROM clause of a SELECT cause analysis to abort
...
and unwind the stack before those errors have a chance to mischief
in the "*" column-name wildcard expander. Fix for ticket [32b63d542433ca67].
FossilOrigin-Name: 9e6eae660a02303fd140dac5fbff82364f4120cd
2015-01-22 12:00:17 +00:00
dan
2ca51820ca
Merge trunk changes with this branch.
...
FossilOrigin-Name: f8699a1a3b0f3bb612aff87a2729f912d709c534
2015-01-21 17:20:21 +00:00
dan
ce8f53d447
Fix an assert() that may fail following an OOM error.
...
FossilOrigin-Name: 5f592359d6d41708da3b3ac9d987a1631bfa3d88
2015-01-21 17:00:57 +00:00
dan
997d798d92
Merge latest trunk changes with this branch.
...
FossilOrigin-Name: b3348b1e07e168b156636a29fc8c6d6afb3129c2
2015-01-21 06:36:07 +00:00
mistachkin
bfefa4c27b
Improve precision of the new test case by removing a superfluous carriage-return from the shell command input.
...
FossilOrigin-Name: 913c41b2cdb7c1ec9eba2c8889715b18f693a2bf
2015-01-19 21:27:46 +00:00
mistachkin
0acee5139b
Add comments and improve the new test case.
...
FossilOrigin-Name: 4ec2aeadf949028956e20b72999e2e9cad451922
2015-01-19 21:11:31 +00:00
drh
59b1b58b66
There are asserts in place now that will prevent a recurrence of
...
ticket [f97c4637102a3ae7]. Nevertheless, it is good to add some
test cases as well.
FossilOrigin-Name: e02959b9a0e1bacdd3939548d4434c042aacc2e6
2015-01-19 21:10:53 +00:00
mistachkin
46a6b99492
Modify the new shell test case to work on non-Windows platforms as well.
...
FossilOrigin-Name: f362c5d9d17a04404a0407a556202d101fde84ee
2015-01-18 09:02:57 +00:00
mistachkin
f21979df76
Some experimental command line shell input/output enhancements.
...
FossilOrigin-Name: 25e99f3fe5e4c90e92554b8ac6cd6a83a8d01a6a
2015-01-18 05:35:01 +00:00
drh
e0e43029ef
Fix the e_walauto.test test module so that it works on both little-endian and
...
big-ending machines.
FossilOrigin-Name: 5682db7b871689b9ee764afe070736f378e8ae1b
2015-01-13 01:12:43 +00:00
drh
8567d40609
Add detection of the isnan() library function to the configure script. Make
...
the code responsive to the HAVE_ISNAN configuration option.
FossilOrigin-Name: 46f3aba2692d74c29ab5c1f24a6daac600fd6af8
2015-01-10 18:22:06 +00:00
drh
0ede9ebec7
Improvements to compile-time-option hygiene. Use "#if OPTION" instead of
...
"#ifdef OPTION" in cases where that makes sense, so that -DOPTION=0 will work.
Add the "Have-Not" configuration in releasetest.tcl which disables all of
the "HAVE_component" compile-time options.
FossilOrigin-Name: 9e92a5ed5aaba20461ed4ce8359d6e34e7773d68
2015-01-10 16:49:23 +00:00
drh
6aed1c4ff0
Add the ability to put comments in the Config and Platform setup sections of
...
the releasetest.tcl script.
FossilOrigin-Name: d6f8c899d8f1bf66a2234e0eb91b259dd64eed31
2015-01-10 15:21:26 +00:00
drh
db6bafaeb8
Change the testfixture binary so that it explicitly enabled core files
...
on a crash (on unix). Add a test case to verify that this works.
FossilOrigin-Name: 90f422ed81311d7ab2a90a381d36cba9c20227fc
2015-01-09 21:54:58 +00:00
drh
1a803843ce
Add SQLITE_ENABLE_STMT_SCANSTATUS to the Update-Delete-Limit configuration
...
in the releasetest.tcl script.
FossilOrigin-Name: c70d5edaf6327cb18df5285c3fc21b610f3d3294
2015-01-09 20:00:21 +00:00
drh
655814d2bd
Fix three crash problems discovered by afl-fuzz.
...
Ticket [a59ae93ee990a55].
FossilOrigin-Name: fe5788633131281a0f27c5b75993ce2ff958bfeb
2015-01-09 01:27:29 +00:00
drh
fa5ed0283c
Add the "ascii" mode to the command-line shell.
...
FossilOrigin-Name: e1518a9478e1ce1ebd98894335e64c953064367f
2015-01-09 00:38:06 +00:00
drh
64134662c0
Omit modules from the "valgrind" permutation that fork off separate processes.
...
Also omit selectG.test because it is timing sensitive and valgrind is too slow
to get the right answer.
FossilOrigin-Name: 662932a69a0f69b7227cc05b75a9f1637a3862f4
2015-01-08 22:08:57 +00:00
drh
32e1f27960
Try to fix up the "valgrindtest" target in Makefile.in so that it avoids
...
misuse testing that can trigger false errors.
FossilOrigin-Name: 50b5a8af843fff93452cd1c8f82152124a1d864a
2015-01-08 16:47:51 +00:00
drh
edb31cd191
In releasetest.tcl:
...
(1) Add the Failure-Detection platform.
(2) Re-add the --disable-shared argument on Default that was mistakenly
removed by the previous commit.
(3) Remove the -ftrapv tests, as we read that -ftrapv does not work in GCC.
FossilOrigin-Name: 1f2fb77781a93427a2348f821b66dba7310c49b8
2015-01-08 02:15:11 +00:00
drh
5bfff9d2f6
In releasetest.tcl: add options --veryquick and pass-through compiler
...
optimization settings (ex: -O0). Collect the SQLite version number from
the main.test output and show it during the summary report at the end.
FossilOrigin-Name: e7e7bc1d9a5c19571e7d87ad345b98c27a826fbd
2015-01-08 01:05:42 +00:00
drh
46350078eb
In releasetest.tcl, always use --disable-shared together with
...
--disable-amalgamation because mingw generates a binary that crashes and
cannot be debugged using gdb if you don't.
FossilOrigin-Name: 19982439418fbd36c91853cf9e09a66606f293fc
2015-01-07 19:38:49 +00:00
drh
f167a40284
In releasetest.tcl, copy certain command-line arguments (-g, -D..., etc)
...
down into each test run.
FossilOrigin-Name: 889864b58af1e51fb148af2d6a5cef4950f373f4
2015-01-07 18:44:59 +00:00
drh
8f45555ddc
In releasetest.tcl, change the --dryrun option to work as it does in
...
multitest.tcl of TH3. Add the new --trace option that work like the --dryrun
option used to work. Add the ability to specify additional configure-script
options in the Config array, and create configurations that use
--disable-shared and --disable-amalgamation for testing.
FossilOrigin-Name: be17ef03f1d74187f7d3b5d72a12fc00db513c8e
2015-01-07 14:41:18 +00:00
drh
8a2a0f560e
Add a valgrind test to the Linux-x86_64 platform in releasetest.tcl.
...
FossilOrigin-Name: 4b6df035561add4e304fb56dd70ae4d413d6bd5d
2015-01-07 14:09:41 +00:00
dan
aacf3d1a3b
Remove the iPos parameter from the tokenizer callback. Fix the "tokenchars" and "separators" options on the simple tokenizer.
...
FossilOrigin-Name: 65f0262fb82dbfd9f80233ac7c3108e2f2716c0a
2015-01-06 19:08:26 +00:00
drh
6fab3d469a
Improved and more rigorous test of large VALUES clauses.
...
FossilOrigin-Name: 6917d9f437224229fa103c847c2df87ade64e1e9
2015-01-06 16:53:49 +00:00
drh
a0c01768f0
Towards getting INSERT statements to except many VALUE terms (more than
...
the limit imposed by SQLITE_LIMIT_COMPOUND_SELECT). This check-in segfaults
on a stack overflow. And it is slow.
FossilOrigin-Name: c9d65f739ad56f016c676e79aa39080be3fe868a
2015-01-05 16:27:43 +00:00
drh
a780d8d767
In releasetest.tcl, omit the CC=clang text from the label on Sanitize tests,
...
so that the label fits on an 80-character line.
FossilOrigin-Name: 23d4c07eb81db5a5c6beb56b5820f0b6501f1fb6
2015-01-03 18:59:17 +00:00
mistachkin
6da0a6d0d4
Merge updates from trunk.
...
FossilOrigin-Name: ea99f4b29afb98dd474d96889c934763f5636891
2015-01-02 20:06:27 +00:00
drh
3bd1791dfb
Add the SQLITE_CONFIG_PMASZ start-time option.
...
FossilOrigin-Name: acb0d1e8324f19da3d4d577d58748848de1bcef7
2015-01-02 15:55:29 +00:00
drh
4081d5da3b
Add logic to releasetest.tcl that detects -fsanitize=undefined errors.
...
Fix a few false-positivies that come up when running the sanitize=undefined
test.
FossilOrigin-Name: 2835e79a0afec6e4d449ac9340afec068c2d4c11
2015-01-01 23:02:01 +00:00
drh
149735d946
Add the ability to specify an alternative compiler (clang instead of gcc)
...
on the default Makefile. Use this in releasetest.tcl to implement an
-fsanitize=undefined test.
FossilOrigin-Name: c55c05fe22b9ddb61de55d473a411a11090d3d68
2015-01-01 19:53:10 +00:00
drh
7203aed919
Fix an error in the computation of the number of hours of runtime for
...
individual test runs in the releasetest.tcl script.
FossilOrigin-Name: e2b0ebe21cd8a63927decb645efd2db80bf88379
2015-01-01 18:54:23 +00:00
dan
37db72f1f7
Merge latest trunk changes with this branch.
...
FossilOrigin-Name: 4b3651677e7132c4c45605bc1f216fc08ef31198
2015-01-01 18:03:49 +00:00
drh
a0de826c9f
Fix two test cases in memsubsys1 so that they work with the mmap permutation.
...
FossilOrigin-Name: 66269d0d8e49eb3dc7f508714753584f648bb022
2015-01-01 14:13:45 +00:00
drh
fddfacc371
Fix the fkey-7.1 test so that it sorts its answer and hence always gives the
...
same answer.
FossilOrigin-Name: 5830c557f7ed048056e2faeb82a8705ee7ecfdd7
2015-01-01 14:06:24 +00:00
drh
af700b3971
Fix to releasetest.tcl: When doing the secondary _debug runs, convert
...
"fulltest" to just "test".
FossilOrigin-Name: ec264bdee5ab8047fda9a36af27c8a2c8d964112
2014-12-31 20:35:11 +00:00
drh
0265eb666b
Adjust the memsubsys1-5.5 test case to avoid occasional false positives.
...
FossilOrigin-Name: 432413187f41061a08ecff2697ce85c935fa6fa8
2014-12-31 20:25:33 +00:00
drh
9854248609
Fix a floating-point round-off error problem in the percentile.test module.
...
FossilOrigin-Name: 456948ea64c6980dab79dac30a538b5a6ab8773d
2014-12-31 20:19:20 +00:00
drh
2e5021d5ea
Disable the bigsort.test module on machine with less than 8GB of available
...
RAM or machine, to avoid thrashing.
FossilOrigin-Name: 9d4fe11641043af4e663085e979f637676599da0
2014-12-31 19:58:32 +00:00
drh
bcbac6843e
Change threadtest3.c so that SQLITE_SCHEMA returns result in warnings
...
not hard errors. Add the Darwin-x86_64 platform to releasetest.tcl.
FossilOrigin-Name: b09a139c9e2e1a45a3d53395ac1376e952d459e5
2014-12-31 18:55:09 +00:00
drh
169c464403
Update the command-line parsing for threadtest3 so that tests are run in the
...
order they are specified on the command-line.
FossilOrigin-Name: f489bc31165f043dc10570e6c1250a292673660e
2014-12-31 18:28:59 +00:00
dan
b8a9d8db87
Add a missing sqlite3_close() call to threadtest3.c.
...
FossilOrigin-Name: a65a44f3ff851b71c9a79e96b9575c6a7006d2dd
2014-12-31 18:25:21 +00:00
drh
fb212d02c5
Only run walthread5 once when running all tests in threadtest3.
...
FossilOrigin-Name: ca2e4a5b22e1dc9ea79f77853e328d401138f747
2014-12-31 18:10:07 +00:00
dan
23f8a7cd2f
Do run pragma3.test as part of the mmap permutation. As it works as of [cf48eb608a].
...
FossilOrigin-Name: 11057e2645d92876fd0fb6d702757408077b7354
2014-12-31 18:08:46 +00:00
drh
c67d650264
Change the width of output lines in releasetest.tcl from 70 to 79 characters.
...
FossilOrigin-Name: a468d96700c05d1a01a745930d13ce89c09ce4fa
2014-12-31 15:14:29 +00:00
drh
542d55865c
Make sure PRAGMA data_version is updated even if the cache is empty when
...
another connection changes the database.
FossilOrigin-Name: cf48eb608af9102a8def2a5b7f5f7b348548116f
2014-12-31 14:18:48 +00:00
dan
e895b87389
Do not run pragma3.test as part of the mmap permutation.
...
FossilOrigin-Name: 94101011966243d599519a69c99c202ea31b928d
2014-12-31 09:52:15 +00:00
drh
bd41d56629
Add the "mptester" tests to releasetest.tcl.
...
FossilOrigin-Name: 93094a68d3a6178779878cbbe0e5e09ef31a323f
2014-12-30 20:40:32 +00:00
drh
9486c1b020
Update the threadtest3 test program so that its output summary is
...
compatible with releasetest.tcl. In threadtest3, do not record errors
that contain the string "no such table" as being fatal errors, since they
happen sometimes in a race condition in stress1.
FossilOrigin-Name: 98cb56e2401ae7e113b071df8997ba62265821d3
2014-12-30 19:26:07 +00:00
dan
55e115f060
Fix problems with the "inmemory_journal" permutation.
...
FossilOrigin-Name: 79693f0412ffb0486b974ee6c63b4231cfff5a77
2014-12-30 18:07:34 +00:00
dan
8ab4b9e964
Change notify2.test to check that sqlite3_blocking_step() uses CPU more efficiently than sqlite3_step(), not that it results in greater overall throughput for any specific number of threads.
...
FossilOrigin-Name: d904d29354a5ed85d33bafe4a7143f3c5ecee790
2014-12-30 12:03:35 +00:00
drh
cb281a9a2c
Fix the --dryrun option in releasetest.tcl.
...
FossilOrigin-Name: 0f9e549643ab94b0465e6891384dd20506708a8f
2014-12-29 19:54:10 +00:00
dan
e716aca24b
Move all fts5 test files to new directory "ext/fts5/test".
...
FossilOrigin-Name: 7f148edb30103c5f4fee20cd08e38537f9615bf2
2014-12-29 15:59:36 +00:00
dan
620315840c
Fix some recently added tests so that they work with SQLITE_DEFAULT_AUTOVACUUM=1.
...
FossilOrigin-Name: ef0626ab20f753f01090ca8e8a94e8b516eea55e
2014-12-29 12:02:31 +00:00
drh
277b4e446c
Fix the "checksymbols" target in Makefile.in so that it actually works.
...
Enhance the releasetest.tcl script to count the total number of tests
run over all configurations.
FossilOrigin-Name: 4eda1c746043acbdb7ef3e1f95bf8b01ee976479
2014-12-29 02:55:58 +00:00
drh
e385d8876e
Fix WITHOUT ROWID tables so that they correctly deal with PRIMARY KEYs that
...
contain redundant columns.
FossilOrigin-Name: 0dfef6757056ef0bdea8f049f7469ccf6960e2cb
2014-12-28 22:10:51 +00:00
drh
97876ee666
Fix the error counter in releasetest.tcl. And report the total time in
...
HH:MM:SS instead of just seconds.
FossilOrigin-Name: 6396f8046242286298fecd1748a6e8e786e6794e
2014-12-24 23:35:36 +00:00
mistachkin
29f98f3077
Remove 'threadtest' as a target on Windows, due to lack of pthreads. Also, change 'fulltest' to 'fulltestonly'.
...
FossilOrigin-Name: a010c404b5140104b68087dcbb0698b7a85eef65
2014-12-23 21:10:38 +00:00
drh
e43ff920ce
In the releasetest.tcl script, show the test target for each configuration
...
that is run. And show the time in HH:MM:SS.
FossilOrigin-Name: 2295e9e0a22220ccb1b9cc2b031c1d8e702a1888
2014-12-23 20:41:13 +00:00
drh
069b8f2cb3
Add the threadtest target to Makefile.in. Add --enable-load-extension to
...
the configure issued by releasetest.tcl.
FossilOrigin-Name: cb128067faabf0503dff1298ed29934f484f71bb
2014-12-23 20:31:43 +00:00
mistachkin
7284056ad6
Draft of changes necessary to make releasetest work on Windows via MinGW.
...
FossilOrigin-Name: af166c5c64216d845269410d1ac2493310694b86
2014-12-23 20:22:57 +00:00
drh
d477eee312
Rework the test/releasetest.tcl script so that it uses the autoconf makefile
...
instead of the test/releasetest.mk makefile. Also add options like --dryrun
and --buildonly. Omit the --makefile option and replace it with --srcdir
with the default computed relative to the releasetest.tcl script itself.
FossilOrigin-Name: 7c85e831153f9aef2afaf981d53db38a28091be5
2014-12-23 19:40:51 +00:00
drh
4a86d00162
Fix a typo in an evidence mark on a test script. No changes to code.
...
FossilOrigin-Name: a08b0c7512287ce5ae3fffe02c092d0eb25b3a25
2014-12-22 22:02:20 +00:00
dan
005e10e39a
Fixes and simplifications for the snippet() and highlight() functions.
...
FossilOrigin-Name: ca5d44042aa7461dcc8b700b0763df4df9d4a891
2014-12-22 21:01:52 +00:00
drh
3da9c04712
Redefine the way PRAGMA data_version works: It continues to change when
...
any other connection commits, including shared-cache connections, but does not
change if the local connection commits.
FossilOrigin-Name: 7a97826f33460f3b4f3890c9cf97116c3355eeda
2014-12-22 18:41:21 +00:00
drh
59871fe748
Add the "PRAGMA data_version" command for checking to see if a database has
...
been modified.
FossilOrigin-Name: de50f25ce3226fa4929b8236c72c88b739859d5f
2014-12-20 14:50:28 +00:00
drh
d7107b3852
Update the PRAGMA data_version command so that it reponse to changes made
...
by a shared-cache database connection, and also to changes made by the same
database connection. Add test cases to verify the new behavior.
FossilOrigin-Name: 44ee538374940c50198949f2cbb9213ba2375b6a
2014-12-20 14:34:02 +00:00
mistachkin
129a752bad
Merge updates from trunk.
...
FossilOrigin-Name: 555fb71f6c479936446c2ce75b1b120a9a121f49
2014-12-19 22:20:27 +00:00
dan
1616d55153
Remove the fts5_test() aux function. Test aux functions using the tcl interface instead.
...
FossilOrigin-Name: 67e3ffd950c5347d219a06b33ad51949cffa7d90
2014-12-19 20:53:51 +00:00
drh
0d339e44a0
Adding test cases for the "PRAGMA data_version" command.
...
FossilOrigin-Name: c5fb7d6a106d46f10e71abe3a6d4243b21ed02a5
2014-12-19 20:27:02 +00:00
dan
2ae0f4c931
Fix a problem with prefix queries and the AND operator.
...
FossilOrigin-Name: 38b3c65e3ee95eb7afadb76e0110570fbbc41e1b
2014-12-18 20:01:15 +00:00
dan
e4bec37900
Fix various problems in fts5 revealed by fault-injection tests.
...
FossilOrigin-Name: e358c3de5c916f2c851ab9324ceaae4e4e7a0fbd
2014-12-18 18:25:48 +00:00
dan
1ac5fed3a7
Experimental opimizations to speed up FK constraint CASCADE and SET NULL action processing.
...
FossilOrigin-Name: 8c5dd6cc259e0cdaaddaa52ccfa96fee6b166906
2014-12-17 15:03:50 +00:00
dan
d457271130
Fix some comments in fkey.c. Add tests to fkey8.test.
...
FossilOrigin-Name: 210cb2a6aaf780365064a26c0c99926bd6346e19
2014-12-17 14:38:45 +00:00
dan
0466883300
Experimental opimizations to speed up FK constraint CASCADE and SET NULL action processing.
...
FossilOrigin-Name: 35a20a5f22245c70faa51965951e8cc011defa93
2014-12-16 20:13:30 +00:00
drh
e8d1777a2d
Fix the e_walauto.test script so that it works on windows.
...
FossilOrigin-Name: 7d092ebb6724c3c0fdc05dc94ca767d158933fb5
2014-12-16 12:46:38 +00:00
drh
58cca03ce5
Enhanced "stress2" testing in the threadtest3.c test program.
...
FossilOrigin-Name: ae43539e62e76676a3daf561b629a1b9b4e2d2c9
2014-12-16 00:20:07 +00:00
drh
7efa426ee9
Make sure the sqlite3BtreeCount() routine does not leave index cursors in an
...
inconsistent state, as doing so might result in an assertion fault inside
of sqlite3BtreeKey() called from saveAllCursors() if content is deleted out
from under the statement that issued the sqlite3BtreeCount() call.
FossilOrigin-Name: 5b1b697040116048e464b3ebab8395fe088e389a
2014-12-16 00:08:31 +00:00
dan
1ee46c01b4
Changes to threadtest3 so that "stress2" is more similar to the SDS stress test.
...
FossilOrigin-Name: 5648af96d8e2521c5b0cca19f1358374d032394d
2014-12-15 20:49:26 +00:00
dan
9af10620ec
Add new test file e_walauto.test.
...
FossilOrigin-Name: 62ef45140cdbff5eeb8bef506db8b78ced3ace94
2014-12-15 16:27:12 +00:00
dan
d44b786ff6
Fix errors in threadtest3 tests caused by earlier tests neglecting to close database handles.
...
FossilOrigin-Name: 1d44f1b1a9fefeb2449892775c59765c46784eb1
2014-12-15 08:46:17 +00:00
dan
053542d72a
Further enhancements to threadtest3 stress tests.
...
FossilOrigin-Name: ba772cff602ca7c3c0c91451e701f52a872e7a14
2014-12-13 17:41:48 +00:00
drh
9bd3cc4681
Add extra tests to threadtest4.c. Fix a benign data race accessing the
...
text encoding using ENC(db).
FossilOrigin-Name: d7bb7ea4ab97ad26f4c84c9b8dc2827010093803
2014-12-12 23:17:54 +00:00
dan
0420954606
Add extra tests to threadtest3.
...
FossilOrigin-Name: f6bf86f907cbff31bed3cbfc922c10c973575498
2014-12-12 16:39:38 +00:00
drh
ef15c6e9e6
Add new tests to the threadtest4.c program. Fix a long-standing data race
...
in WAL mode for shared-cache.
FossilOrigin-Name: d8d3e6d04cbb9e3033ad8613e3dbd4ad0b01765a
2014-12-12 01:27:17 +00:00
drh
5f5c1a0186
Merge the cell overflow page number cache thread race fix from trunk.
...
FossilOrigin-Name: cefad47ec2ad58d7ecd58bab9a261e4d5816cd69
2014-12-12 00:26:59 +00:00
drh
18b67f3f0d
Fix a bug in the threadtest4.c program. Remove the keyinfo cache as it provides
...
minimal performance improvements, and then only at SQL preparation time, not
at runtime, and it has problems with data races in shared-cache mode. We might
later add the keyinfo cache back but only enable it when shared-cache mode
is off.
FossilOrigin-Name: b7489f9451628c68f1dfc1d457fc161a0921c631
2014-12-12 00:20:37 +00:00
drh
1e57430e63
Add the threadtest4.c test program. Not yet working.
...
FossilOrigin-Name: ec3a74469ca2f0f3fb7d82a05fdac7500354e78f
2014-12-11 19:29:42 +00:00
dan
857536623a
Fix a race condition to do with very large index keys in shared-cache mode.
...
FossilOrigin-Name: fc157dd7f18c94b7ae5f155e1b4a5d7714b7da8c
2014-12-11 16:38:18 +00:00
mistachkin
e0d6885f17
Simplify and cleanup the implementation of the new ASCII mode for the shell.
...
FossilOrigin-Name: 66a28f7abaeaf1ebe6e43d856af88ac64b1ff230
2014-12-11 03:12:33 +00:00
mistachkin
31868243e2
Merge updates from trunk.
...
FossilOrigin-Name: 5b5d3e4d0d158594c0db05ddbf4d926b65825042
2014-12-11 02:28:42 +00:00
dan
1f03b86523
Fix a typo causing a test error in e_walhook.test.
...
FossilOrigin-Name: d9f916ba09f1a61684b4d59548ab6cf71cdb6a37
2014-12-10 20:57:20 +00:00
dan
6e45e0c8d7
Add new test file e_walhook.test.
...
FossilOrigin-Name: 2eb6d3e4fbe388ef28e4b7b846e9e8a4361517a4
2014-12-10 20:29:49 +00:00
drh
45d1b20639
Fix the sqlite3_table_column_metadata() routine so that it gives the correct
...
answer for the "rowid" column in a WITHOUT ROWID table. Enhance it so that
it can be used to check for the existence of a table by setting the column
name parameter to NULL. The routine is now included in the build by
default, even without the SQLITE_ENABLE_COLUMN_METADATA compile-time option.
FossilOrigin-Name: cf9be419a16156a9814e1378bb49b780de977343
2014-12-09 22:24:42 +00:00
dan
9778bd7292
Add extra tests to e_walckpt.test.
...
FossilOrigin-Name: 84f9581019961efa31297f8be48427b17bcca857
2014-12-09 20:13:40 +00:00
drh
8c3026ecf3
Make the sqlite3_table_column_metadata() interface available by default and
...
without requiring the SQLITE_ENABLE_COLUMN_METADATA compile-time option.
Other sqlite3_column_* interfaces that have a run-time penalty even if they
are unused still require the SQLITE_ENABLE_COLUMN_METADATA option at
compile-time.
FossilOrigin-Name: 4f7549ff924b8ed8f90fc447cd4be11421453984
2014-12-09 19:07:29 +00:00
dan
785a38f066
Add extra tests to e_walckpt.test.
...
FossilOrigin-Name: d6832aa24c8d93b4532a651b86605bd0a0d0aa78
2014-12-08 20:29:23 +00:00
dan
0235a0331f
Add missing mutex calls around a call to sqlite3SchemaGet() within sqlite3_open().
...
FossilOrigin-Name: 45415899545767888d36dcc0bafaf0ef415d94c2
2014-12-08 20:20:16 +00:00
dan
0a99e9fb01
Update this branch with latest trunk changes.
...
FossilOrigin-Name: 69a312ad3fe5b39bc394b9ce958cb63d734518c7
2014-12-08 07:50:31 +00:00
dan
2928d32791
Add new test file e_walckpt.test. Still some tests to come.
...
FossilOrigin-Name: e4db3db3a65ecfd4069a40d436aa7a5512d61a30
2014-12-05 20:46:19 +00:00
drh
351064b452
Improved comment on the sharedB.test test script.
...
FossilOrigin-Name: 71f589e3f82a07513425e212072f32748c0732d4
2014-12-05 14:34:30 +00:00
drh
a895a4d22c
Test case demonstrating the problem described by
...
ticket [e4a18565a36884b00edf].
FossilOrigin-Name: ffea3e905adc108d2dc37f5d6da2024f0389f176
2014-12-05 14:07:53 +00:00
drh
dea7d70d1b
Make sure that a DISTINCT query with an ORDER BY works correctly even if
...
it uses a descending index. Fix for ticket [c5ea805691bfc4204b1cb9e].
FossilOrigin-Name: 0d3aef97ebddf422b8bdcbc5878970c6129e3f54
2014-12-04 21:54:58 +00:00
drh
1d32488037
Performance enhancement for single-table queries with many OR-connected
...
WHERE clause terms and multiple indexes with the same left-most columns.
FossilOrigin-Name: 1461d543ac8a3e4a54405067893146c74576bb4e
2014-12-04 20:24:50 +00:00
drh
72673a24e2
If a table is the right operand of a LEFT JOIN, then any column of that
...
table can be NULL even if that column as a NOT NULL constraint.
Fix for ticket [6f2222d550f5b0ee7ed].
FossilOrigin-Name: 6f6fcbe4736b9468a495c684d5eebc8bfe5c566a
2014-12-04 16:27:17 +00:00
dan
845d0ab323
Begin testing fts5 OOM and IO error handling.
...
FossilOrigin-Name: 2037dba62fdd995ad15b642abe499a790f5ffe5c
2014-12-03 17:27:35 +00:00
dan
615a9ae5db
Add a configuration option to remap the "rank" column to an auxiliary fts5 function.
...
FossilOrigin-Name: b5f5971283b9b2f60c16f9675099855af95012cd
2014-12-02 20:18:11 +00:00
dan
f26a1549ac
Add the SQLITE_CHECKPOINT_TRUNCATE option.
...
FossilOrigin-Name: 8e20a43419e46b6b9d1f60ec7ea420bbfb3ef358
2014-12-02 19:04:54 +00:00
dan
89a89560d6
Add code to parse a rank() function specification. And a tcl interface to add auxiliary functions to fts5.
...
FossilOrigin-Name: 9c1697a2aa1f601e6eb11704abe63a73c8105447
2014-12-01 20:05:00 +00:00
dan
ca7fad3d2c
Add a cookie mechanism to ensure that the %_config table is re-read as required.
...
FossilOrigin-Name: bb4a37b53de60da9ec8b9317eec14afa99690828
2014-11-28 20:01:13 +00:00
drh
ac5649a985
Remove the ill-designed "-end" option from the command-line shell. Instead,
...
allow multiple SQL or dot-commands as command-line arguments. Any -cmd
commands are processed first, followed by other command-line arguments, for
backwards compatibility.
FossilOrigin-Name: 24fa2e9832daaa5d68ee28a00c56c55f97a4da9e
2014-11-28 13:35:03 +00:00
dan
cb11e73fc2
Add a %_config table to fts5.
...
FossilOrigin-Name: 83491c56661ca78f96020ba68184bb3fb19e674f
2014-11-27 20:03:45 +00:00
dan
d89b834f54
Fix a buffer overread during compilation of CREATE VIRTUAL TABLE statements that featured an explicit database name but no virtual table arguments. For example, "CREATE VIRTUAL TABLE main.ft USING fts4".
...
FossilOrigin-Name: f095cde579e7417306e11b5c1d2dd90b6bb547d5
2014-11-27 11:36:36 +00:00
drh
3f2d22e1a3
More test cases for the balancer.
...
FossilOrigin-Name: 358ea818f7ea5aa55bafaf4057e9fc7a5fd77c11
2014-11-27 04:23:19 +00:00
drh
5ab63775dd
Fix a problem in the new b-tree balancer that was causing corruption of
...
the fragmentation count.
FossilOrigin-Name: f242394e079dd185aad90f2aee902a5edf27e150
2014-11-27 03:46:04 +00:00
dan
0a79238b39
Fix an integer overflow bug in vdbesort.c.
...
FossilOrigin-Name: 623827192532f08b68bc0eb9ed1449e173361f0c
2014-11-25 18:59:55 +00:00
dan
cb62aae034
Add the auxiliary highlight() function to fts5.
...
FossilOrigin-Name: 059092379f981eb919b500ce447006f9e645fc5a
2014-11-24 16:24:33 +00:00
drh
7a1bca7e74
Deploy heuristics (well-commented) to better estimate how much unindexed terms
...
in the WHERE clause filter the number of output rows from a single table.
FossilOrigin-Name: 221659945c3f78d3b6789bfe8fdeb8d3ee1fa038
2014-11-22 18:50:44 +00:00
drh
a3898250d4
Remove a redundant test case (probably a copy/paste error). Add an assert()
...
to where.c to ensure that automatic indexes do not have there output row
counts adjusted downward by supplementary constraints.
FossilOrigin-Name: eea47933493c85a85247ad383bd148b06f627d04
2014-11-22 12:22:13 +00:00
dan
7bf9ec1c26
Add SQLITE_ENABLE_OTA pre-processor directives so that this branch may be compiled with or without OTA.
...
FossilOrigin-Name: 600cefdd4d29c1de4d107fa7ddeb76a18edce4f5
2014-11-22 09:09:50 +00:00
dan
841ed2b0f2
Merge latest trunk changes with this branch.
...
FossilOrigin-Name: 7ef44c5b5bd30bcc4ef59ed172b9ce9ac6a843f6
2014-11-21 14:37:24 +00:00
drh
2d8233157d
Fix a benign test error on PRAGMA collation_list
...
introduced by a recent checkin.
FossilOrigin-Name: 332cc9591d05508ac9cb56fde2b82e20e0342d1f
2014-11-20 23:11:30 +00:00
drh
fead4ed8f3
Adding the "noskipscan" token to an sqlite_stat1.stat field prevents
...
an index for being used with the skip-scan algorithm.
FossilOrigin-Name: 4461bf045d8eecf98478035efcdba3f41c709bc5
2014-11-18 21:54:31 +00:00
drh
36ff0bf684
Allow an automatic index to be used if the only uses of declared indexes for
...
the same loop use the skip-scan algorithm.
FossilOrigin-Name: c52f7971e90cac1058d6b66c9e334cbc8607def3
2014-11-18 21:45:35 +00:00
drh
64b600ff13
Merge in all the other ROLLBACK fixes from the branch-3.8.7 branch.
...
I don't know why I was doing them one-by-one.
FossilOrigin-Name: 296b0c7397790ceadbdb330959e962f6491abc3e
2014-11-18 20:49:30 +00:00
drh
58f95c43ad
Update a couple of test cases to account for the fact that ROLLBACK does not always abort all running SELECT statements.
...
FossilOrigin-Name: abccda769a3f6b755c3bf70b5fb31a5e16718ef3
2014-11-18 20:16:27 +00:00
dan
2b8669a9da
Avoid calling sqlite3BtreeKeysize() on a b-tree cursor in SKIPNEXT or SKIPPREV state.
...
FossilOrigin-Name: 54e7d3fcb1ab21c03ffef1af93ae029a2901098a
2014-11-17 19:42:48 +00:00
drh
77b1deec40
When a SELECT statement is terminated by a ROLLBACK TO operation, make the
...
error message be "abort due to ROLLBACK" rather than
"callback requested query abort".
FossilOrigin-Name: 34fc4a082c192830e48f643549c04a4f91912b8b
2014-11-17 17:13:06 +00:00
dan
302f583aa4
Update a couple of test cases to account for the fact that ROLLBACK does not always abort all running SELECT statements.
...
FossilOrigin-Name: eba171e980fa4491dfee9d7e4df50c87a0ebbf87
2014-11-17 15:22:08 +00:00
dan
48d7014067
Fix the customization interfaces so that they match the documentation.
...
FossilOrigin-Name: fba0b5fc7eead07a4853e78e02d788e7c714f6cd
2014-11-15 20:07:31 +00:00
drh
f9df2fbdcd
Adding the "noskipscan" token to an sqlite_stat1.stat field prevents an
...
index for being used with the skip-scan algorithm.
FossilOrigin-Name: 00fe09505792cd0d104b2da9d040f023e30fa871
2014-11-15 19:08:13 +00:00
dan
70273d0bab
Consider using an automatic-index for a scan even if there exists a possible skip-scan that uses one or more "=" operators.
...
FossilOrigin-Name: 93642a65ef3d53ece322ffd85233b68fc9a86c9d
2014-11-14 19:34:20 +00:00
drh
0a9d9d566e
Do not automatically remove the DISTINCT keyword from "a IN (SELECT DISTINCT ...)" expressions. Fix for [db87229497].
...
FossilOrigin-Name: 98457a57d642b35917eb9ad8f70065e273aad206
2014-11-14 15:42:23 +00:00
dan
dd715f7c57
Do not automatically remove the DISTINCT keyword from "a IN (SELECT DISTINCT ...)" expressions. Fix for [db87229497].
...
FossilOrigin-Name: 55e453aadbb676dda07f0fa537d39ce184ef636c
2014-11-14 15:28:33 +00:00
dan
fad01993b7
Have calls to sqlite3_backup_init() fail if there is already a read or read-write transaction open on the destination database.
...
FossilOrigin-Name: 169b5505498c0a7ee2b5dbb2ba13c41dfaa7c62f
2014-11-13 14:18:25 +00:00
drh
6f9c5669e2
When a transaction or savepoint rollback occurs, save the positions of all open read-cursors so that they can be restored following the rollback operation. Cherry-pick of check-in [dd03a2802f3f27]
...
FossilOrigin-Name: 402780a9c8df9e7ea898bdca49c1191042fe387a
2014-11-13 13:42:39 +00:00
dan
d7b06909ad
Add further tests for rollback operations in the presence of ongoing selects.
...
FossilOrigin-Name: eaf3aae014f59c8d37aa20aa31d54cf13f9e86fc
2014-11-12 17:45:37 +00:00
dan
8023104252
When a transaction or savepoint rollback occurs, save the positions of all open read-cursors so that they can be restored following the rollback operation.
...
FossilOrigin-Name: dd03a2802f3f276525f3cef9a93f825dd8606626
2014-11-12 14:56:02 +00:00
drh
5a2c8c885c
Fix the %c format character in sqlite3VXPrintf() so that it correctly handles precisions larger than 70.
...
FossilOrigin-Name: 839a6df9f98b90fb593534a62145d9c913540bae
2014-11-12 14:12:28 +00:00
drh
51a205410c
Make sure that NULL results from OP_Column are fully and completely NULL and do not have the MEM_Ephem bit set. Fix for ticket [094d39a4c95ee4].
...
FossilOrigin-Name: e1017745e183f5d7429ce787ec2feef946a24f0f
2014-11-12 14:07:28 +00:00
drh
85fabf1444
This is a cherry-pick of version [b5df5ac052].
...
FossilOrigin-Name: d4b2d5d066891e06f2bf4337902b44b000fa9fd2
2014-11-11 22:55:26 +00:00
mistachkin
bfa395d085
Remove some calls to the 'breakpoint' test command.
...
FossilOrigin-Name: 1412fcc480799ecbd68d44dd18d5bad40e20ccf1
2014-11-11 19:07:56 +00:00