mirror of
https://github.com/FirebirdSQL/firebird-qa.git
synced 2025-01-22 21:43:06 +01:00
Fixed a few ambiguous tests
This commit is contained in:
parent
8cd83ec67f
commit
3655598c1a
@ -54,9 +54,8 @@ CREATE ASC INDEX I_F3_ASC ON SelectionTest (F3);
|
||||
CREATE ASC INDEX I_F1_F2_ASC ON SelectionTest (F1, F2);
|
||||
CREATE ASC INDEX I_F1_F3_ASC ON SelectionTest (F1, F3);
|
||||
CREATE ASC INDEX I_F2_F1_ASC ON SelectionTest (F2, F1);
|
||||
CREATE ASC INDEX I_F2_F3_ASC ON SelectionTest (F2, F3);
|
||||
CREATE ASC INDEX I_F3_F1_ASC ON SelectionTest (F3, F1);
|
||||
CREATE ASC INDEX I_F3_F2_ASC ON SelectionTest (F3, F2);
|
||||
CREATE ASC INDEX I_F2_F3_ASC ON SelectionTest (F2, F3);
|
||||
|
||||
COMMIT;
|
||||
"""
|
||||
@ -75,7 +74,7 @@ st.F3 = 100;"""
|
||||
|
||||
act = isql_act('db', test_script)
|
||||
|
||||
expected_stdout = """PLAN (ST INDEX (I_F3_F2_ASC))
|
||||
expected_stdout = """PLAN (ST INDEX (I_F2_F3_ASC))
|
||||
|
||||
F1 F2 F3
|
||||
============ ============ ============
|
||||
|
@ -6,7 +6,7 @@ TITLE: Best match index selection (multi segment)
|
||||
DESCRIPTION:
|
||||
Check if it will select the index with the best selectivity and with the biggest segment
|
||||
match. 2 equals operators and 1 greater or equal operator and every index combination is
|
||||
made (only ASC). The best here is using 1 index (F2_F3_F1 or F3_F2_F1).
|
||||
made (only ASC). The best here is using 1 index (F2_F3_F1).
|
||||
FBTEST: functional.arno.optimizer.opt_multi_index_selection_05
|
||||
"""
|
||||
|
||||
@ -60,7 +60,6 @@ CREATE ASC INDEX I_F2_F3_F1_ASC ON SelectionTest (F2, F3, F1);
|
||||
CREATE ASC INDEX I_F3_F1_ASC ON SelectionTest (F3, F1);
|
||||
CREATE ASC INDEX I_F3_F2_ASC ON SelectionTest (F3, F2);
|
||||
CREATE ASC INDEX I_F3_F1_F2_ASC ON SelectionTest (F3, F1, F2);
|
||||
CREATE ASC INDEX I_F3_F2_F1_ASC ON SelectionTest (F3, F2, F1);
|
||||
|
||||
COMMIT;
|
||||
"""
|
||||
@ -79,7 +78,7 @@ st.F3 = 100;"""
|
||||
|
||||
act = isql_act('db', test_script)
|
||||
|
||||
expected_stdout = """PLAN (ST INDEX (I_F3_F2_F1_ASC))
|
||||
expected_stdout = """PLAN (ST INDEX (I_F2_F3_F1_ASC))
|
||||
|
||||
F1 F2 F3
|
||||
============ ============ ============
|
||||
|
@ -43,7 +43,6 @@ EXECUTE PROCEDURE PR_SelectionTest;
|
||||
COMMIT;
|
||||
|
||||
/* Create indexes */
|
||||
CREATE UNIQUE ASC INDEX I_F1_UNIQUE_ASC ON SelectionTest (F1);
|
||||
CREATE ASC INDEX I_F1_ASC ON SelectionTest (F1);
|
||||
CREATE DESC INDEX I_F1_DESC ON SelectionTest (F1);
|
||||
CREATE ASC INDEX I_F2_ASC ON SelectionTest (F2);
|
||||
|
Loading…
Reference in New Issue
Block a user