/ All files named "test/where2.test"
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

History for test/where2.test

2016-03-09
15:09
[478d2170] part of check-in [1ed6b06e] When optimizing expressions of the form "x IN (SELECT ...)" make sure that the subquery is not correlated. Fix for ticket [5e3c886796e5512]. (check-in: [1ed6b06e] user: drh branch: trunk, size: 23730)
2015-10-29
12:27
[bf89ae34] part of check-in [d533e23f] Apply optimizations to simplify OR clauses that contain constant terms. (check-in: [d533e23f] user: drh branch: simplify-or-clause, size: 23356)
2015-08-27
23:18
[af78c555] part of check-in [66f92a16] Fix the OR-optimization so that it always ignores subplans that do not use an index. (check-in: [66f92a16] user: drh branch: trunk, size: 23351)
2014-07-22
19:14
[23fdb5d8] part of check-in [eed754fe] The optimization of check-in [b67a6e33f2] does not work (it generates incorrect VDBE code) if an OR term is AND-ed with a constant expression. So back that optimization out and add a test case to make sure it does not get added back in. (check-in: [eed754fe] user: drh branch: trunk, size: 23169)
2014-02-26
02:26
[455a2eb2] part of check-in [dca1945a] Improved handling of constants and especially constant functions in the ORDER BY clause of a query. Do not optimize out "ORDER BY random()". Fix for ticket [65bdeb9739605cc2296]. (check-in: [dca1945a] user: drh branch: trunk, size: 22916)
2013-10-04
15:58
[ed6baa94] part of check-in [2f394de8] Fix test cases so that they work when the query planner uses index size estimates to determine whether or not to try an covering index scan. (check-in: [2f394de8] user: drh branch: index-scan-rate, size: 21724)
2013-08-21
20:04
[76d5346f] part of check-in [ef2a6a37] Minor fixes for test cases. No code changes. (check-in: [ef2a6a37] user: dan branch: trunk, size: 21621)
2013-07-16
21:31
[b1830f76] part of check-in [5e19d054] Enhance the query planner so that it looks at multiple solutions to OR expressions in the WHERE clause. (check-in: [5e19d054] user: drh branch: trunk, size: 21577)
2013-07-05
19:16
[d712de0e] part of check-in [60cf7e44] Fix two test script problems revealed by permutations.test. (check-in: [60cf7e44] user: dan branch: trunk, size: 21171)
2013-06-12
17:08
[dcf0ffaf] part of check-in [addd7f46] "make test" now passing. (check-in: [addd7f46] user: drh branch: nextgen-query-plan-exp, size: 21082)
2013-06-11
02:32
[58cc3f85] part of check-in [36373b85] Fixes to EXPLAIN QUERY PLAN output. Change weights back to something closer to what they are in legacy. More test case fixes. (check-in: [36373b85] user: drh branch: nextgen-query-plan-logcost, size: 20827)
2013-06-03
22:08
[116fb0d6] part of check-in [eb27086e] Remove more vestiges of sqlite_query_plan from the test cases. (check-in: [eb27086e] user: drh branch: nextgen-query-plan-exp, size: 20827)
2013-05-31
15:18
[f902f62d] part of check-in [707f0323] Allow tracing of whereLoopInsert() when the 0x8 bit is set on ".wheretrace". Remove the use of sqlite_query_plan from where2.test. Fix a bug in the code generator for OR clause optimizations. (check-in: [707f0323] user: drh branch: nextgen-query-plan-exp, size: 20870)
2013-02-08
18:48
[399b3178] part of check-in [f78395c8] Loop through the elements on the RHS of an IN operator in reverse order when the ORDER BY clauses specifies DESC. (check-in: [f78395c8] user: drh branch: IN-with-ORDERBY, size: 20532)
2013-02-07
21:15
[61acb16d] part of check-in [98bf668a] Allow an index to be used for sorting even if prior terms of the index are constrained by IN operators. (check-in: [98bf668a] user: drh branch: IN-with-ORDERBY, size: 20528)
2010-04-30
21:03
[43d4beca] part of check-in [946e06cd] Avoid assertion faults in queries using indices with redundant columns. Ticket [3dbdcdb14e7f41]. (check-in: [946e06cd] user: drh branch: trunk, size: 19539)
2009-02-02
01:50
[45eacc12] part of check-in [b8b546b6] Restrict the RANDOM() function to have zero arguments. Ticket #3627. (CVS 6229) (check-in: [b8b546b6] user: drh branch: trunk, size: 18803)
2008-10-07
23:46
[e446f554] part of check-in [de473efb] Add the experimental sqlite3_stmt_status() interface. (CVS 5781) (check-in: [de473efb] user: drh branch: trunk, size: 18806)
2007-12-10
05:03
[7012c0ad] part of check-in [0b34a186] Fix compilation/testing with OMIT_SUBQUERY defined. Ticket #2828. (CVS 4603) (check-in: [0b34a186] user: danielk1977 branch: trunk, size: 18846)
2007-09-12
17:01
[9bbf1cc6] part of check-in [c8405b15] Fixes for compilation/testing when the various OMIT macros are defined. (CVS 4423) (check-in: [c8405b15] user: danielk1977 branch: trunk, size: 18277)
2007-02-23
23:13
[3249d426] part of check-in [908daaa9] Disable the OR optimization if it would conflict with column affinity coercions. Ticket #2249. Additional cleanup and testing of the OR optimization. (CVS 3658) (check-in: [908daaa9] user: drh branch: trunk, size: 18103)
2006-11-06
15:10
[61d5b20d] part of check-in [9bf153b5] Fix a bug in the optimizer that was causing it to miss an OR optimization opportunity. (CVS 3502) (check-in: [9bf153b5] user: drh branch: trunk, size: 13720)
2006-05-11
13:26
[a16476a5] part of check-in [b16541ba] Correctly handle multi-column indices where multiple columns are constrained by IN operators with subqueries on the right-hand side. Ticket #1807. (CVS 3184) (check-in: [b16541ba] user: drh branch: trunk, size: 13070)
2006-01-17
09:35
[fde821b9] part of check-in [3a54a33d] Test suite fixes for builds that define OMIT symbols. (CVS 2962) (check-in: [3a54a33d] user: danielk1977 branch: trunk, size: 7998)
2006-01-16
16:24
[2a500059] part of check-in [c058f483] Test file fixes for libaries compiled with various SQLITE_OMIT_ macros. (CVS 2961) (check-in: [c058f483] user: danielk1977 branch: trunk, size: 7903)
2006-01-14
08:02
[d85bd79c] part of check-in [8e79a0c2] Fixes for OMIT_SUBQUERY builds: Disable where clause OR->IN optimization. Include EXISTS keyword (for new CREATE TABLE syntax). Test file fixes. (CVS 2943) (check-in: [8e79a0c2] user: danielk1977 branch: trunk, size: 7801)
2005-08-13
16:13
[503e2e2b] part of check-in [4f076612] Disable an overzealous optimization the omitted sorting on a join if the first table gave a unique result. The sort can only be omitted if all tables in the join are unique. Ticket #1358. (CVS 2589) (check-in: [4f076612] user: drh branch: trunk, size: 7461)
2005-07-29
19:43
[3432fc9c] part of check-in [1a4e526d] Fix problems caused by over-agressive optimization of ORDER BY in joins. Lots more testing needed. (CVS 2571) (check-in: [1a4e526d] user: drh branch: trunk, size: 6559)
15:10
[6e8c3369] part of check-in [d23c8bf8] Optimizer now converts OR-connected WHERE-clause terms into an IN operator so that they can be used with indices. There are known problems with the ORDER BY optimization in this and in several prior check-ins. This check-in is not recommended for production use. (CVS 2569) (check-in: [d23c8bf8] user: drh branch: trunk, size: 6588)
2005-07-28
23:12
[8696c35c] part of check-in [cdf8c958] The BETWEEN operator in a WHERE clause is now able to use indices. (CVS 2568) (check-in: [cdf8c958] user: drh branch: trunk, size: 5553)
20:51
Added: [64276193] part of check-in [4b02703d] Test cases and tuning of the new optimizer code. (CVS 2567) (check-in: [4b02703d] user: drh branch: trunk, size: 5554)