~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysql-test/t/limit.test

  • Committer: Brian Aker
  • Date: 2008-07-07 16:07:49 UTC
  • mfrom: (80.1.1 food)
  • Revision ID: brian@tangent.org-20080707160749-qj89fnnwufz4xgop
Clean up install, we no longer have system tables.

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
DROP TABLE t1;
52
52
 
53
53
#
 
54
# Bug#8023 - limit on UNION with from DUAL, causes syntax error
 
55
#
 
56
create table t1 (a integer);
 
57
insert into t1 values (1);
 
58
# both queries must return one row
 
59
select 1 as a from t1 union all select 1 from dual limit 1;
 
60
(select 1 as a from t1) union all (select 1 from dual) limit 1;
 
61
drop table t1;
 
62
 
 
63
#
54
64
# Bug #21787: COUNT(*) + ORDER BY + LIMIT returns wrong result
55
65
#
56
66
create table t1 (a int);
62
72
drop table t1;
63
73
# End of 4.1 tests
64
74
 
 
75
#
 
76
# Bug #28464: a string argument to 'limit ?' PS
 
77
#
 
78
 
 
79
prepare s from "select 1 limit ?";
 
80
set @a='qwe';
 
81
execute s using @a;
 
82
set @a=-1;
 
83
--error ER_WRONG_ARGUMENTS
 
84
execute s using @a;
 
85
prepare s from "select 1 limit 1, ?";
 
86
--error ER_WRONG_ARGUMENTS
 
87
execute s using @a;
 
88
prepare s from "select 1 limit ?, ?";
 
89
--error ER_WRONG_ARGUMENTS
 
90
execute s using @a, @a;
 
91
set @a=14632475938453979136;
 
92
execute s using @a, @a;
 
93
set @a=-14632475938453979136;
 
94
--error ER_WRONG_ARGUMENTS
 
95
execute s using @a, @a;
 
96
 
65
97
--echo End of 5.0 tests