1
--source include/have_falcon.inc
4
# Bug #37343 Crash in Falcon with limit where there are no
5
# values in the limited range
7
--echo *** Bug #37343***
9
# ----------------------------------------------------- #
10
# --- Initialisation --- #
11
# ----------------------------------------------------- #
12
let $engine = 'Falcon';
13
eval SET @@storage_engine = $engine;
16
DROP TABLE IF EXISTS t1;
19
# ----------------------------------------------------- #
21
# ----------------------------------------------------- #
24
pk INTEGER AUTO_INCREMENT,
30
SELECT * FROM t1 WHERE int_key < 5 ORDER BY int_key LIMIT 1;
32
# ----------------------------------------------------- #
34
# ----------------------------------------------------- #
35
SELECT count(*) FROM t1;
37
# ----------------------------------------------------- #
38
# --- Final cleanup --- #
39
# ----------------------------------------------------- #