diff options
Diffstat (limited to 'mysql-test/suite/engines/funcs/t/se_rowid.test')
-rw-r--r-- | mysql-test/suite/engines/funcs/t/se_rowid.test | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/mysql-test/suite/engines/funcs/t/se_rowid.test b/mysql-test/suite/engines/funcs/t/se_rowid.test new file mode 100644 index 00000000..f6b5baf5 --- /dev/null +++ b/mysql-test/suite/engines/funcs/t/se_rowid.test @@ -0,0 +1,34 @@ +--disable_warnings +DROP TABLE IF EXISTS t1; +--enable_warnings +CREATE TABLE t1(c1 TINYINT NOT NULL, PRIMARY KEY(c1)); +INSERT INTO t1 VALUES(1),(2),(3),(5),(10),(9),(8),(7),(4),(-1),(-10); +--sorted_result +SELECT _rowid FROM t1; +DROP TABLE t1; +CREATE TABLE t1(c1 SMALLINT NOT NULL, PRIMARY KEY(c1)); +INSERT INTO t1 VALUES(1),(2),(3),(5),(10),(9),(8),(7),(4),(-1),(-10); +--sorted_result +SELECT _rowid FROM t1; +DROP TABLE t1; +CREATE TABLE t1(c1 MEDIUMINT NOT NULL, PRIMARY KEY(c1)); +INSERT INTO t1 VALUES(1),(2),(3),(5),(10),(9),(8),(7),(4),(-1),(-10); +--sorted_result +SELECT _rowid FROM t1; +DROP TABLE t1; +CREATE TABLE t1(c1 INT NOT NULL, PRIMARY KEY(c1)); +INSERT INTO t1 VALUES(1),(2),(3),(5),(10),(9),(8),(7),(4),(-1),(-10); +--sorted_result +SELECT _rowid FROM t1; +DROP TABLE t1; +CREATE TABLE t1(c1 INTEGER NOT NULL, PRIMARY KEY(c1)); +INSERT INTO t1 VALUES(1),(2),(3),(5),(10),(9),(8),(7),(4),(-1),(-10); +--sorted_result +SELECT _rowid FROM t1; +DROP TABLE t1; +CREATE TABLE t1(c1 BIGINT NOT NULL, PRIMARY KEY(c1)); +INSERT INTO t1 VALUES(1),(2),(3),(5),(10),(9),(8),(7),(4),(-1),(-10); +--sorted_result +SELECT _rowid FROM t1; +DROP TABLE t1; + |