1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Added tests to cover more server code

Author: Stewart Smith

mysql-test/r/alter_table.result:
  Testing of ALTER TABLE .. DROP DEFAULT
mysql-test/r/limit.result:
  Testing of LIMIT ... OFFSET
mysql-test/t/alter_table.test:
  Testing of ALTER TABLE .. DROP DEFAULT
mysql-test/t/limit.test:
  Testing of LIMIT ... OFFSET
This commit is contained in:
Michael Widenius
2009-06-07 13:05:19 +03:00
parent 774ceff0c0
commit 1f81aa5f5a
4 changed files with 79 additions and 0 deletions

View File

@ -113,4 +113,36 @@ ERROR HY000: Incorrect arguments to EXECUTE
End of 5.0 tests
select 1 as a limit 4294967296,10;
a
CREATE TABLE t1 (a int PRIMARY KEY auto_increment);
INSERT INTO t1 VALUES (),(),(),(),(),(),(),(),(),();
INSERT INTO t1 VALUES (),(),(),(),(),(),(),(),(),();
SELECT a FROM t1 ORDER BY a LIMIT 10 OFFSET 1;
a
2
3
4
5
6
7
8
9
10
11
SELECT a FROM t1 ORDER BY a LIMIT 10 OFFSET 10;
a
11
12
13
14
15
16
17
18
19
20
SELECT a FROM t1 ORDER BY a LIMIT 2 OFFSET 14;
a
15
16
DROP TABLE t1;
End of 5.1 tests