~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/user_var.test

  • Committer: mordred
  • Date: 2010-08-21 03:56:04 UTC
  • mto: (1725.1.5 build)
  • mto: This revision was merged to the branch mainline in revision 1726.
  • Revision ID: mordred@orisndriz09-20100821035604-da3nk2jsfti7o5d2
Added a valgrind suppression for the myisam keycache thing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
drop table if exists t1,t2;
4
4
--enable_warnings
5
5
 
6
 
--error ER_BAD_FIELD_ERROR
 
6
--error 1054
7
7
set @a := foo;
8
8
set @a := connection_id() + 3;
9
9
select @a - connection_id();
86
86
#
87
87
# Bug #9286  SESSION/GLOBAL should be disallowed for user variables
88
88
#
89
 
--error ER_PARSE_ERROR
 
89
--error 1064
90
90
set session @honk=99;
91
91
 
92
92
#
119
119
show create table t1;
120
120
drop table t1;
121
121
 
 
122
# This is not supported by Drizzle
 
123
--error 1064
122
124
set @first_var= cast(NULL as integer);
123
 
 
124
 
create table t1 select @first_var;
125
 
--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
126
 
show create table t1;
127
 
drop table t1;
 
125
#create table t1 select @first_var;
 
126
#--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
 
127
#show create table t1;
 
128
#drop table t1;
128
129
 
129
130
set @first_var= NULL;
130
131
create table t1 select @first_var;
154
155
# Second part, set user var from large number in table
155
156
# then select it
156
157
CREATE TABLE `bigfailure` (
157
 
  `afield` BIGINT UNSIGNED NOT NULL
 
158
  `afield` BIGINT NOT NULL
158
159
);
159
160
INSERT INTO `bigfailure` VALUES (18446744071710965857);
160
161
SELECT * FROM bigfailure;
192
193
#
193
194
# Bug#19024 - SHOW COUNT(*) WARNINGS not return Errors 
194
195
#
195
 
--error ER_PARSE_ERROR
 
196
--error 1064
196
197
insert into city 'blah';
197
198
SHOW COUNT(*) WARNINGS;
198
199
SHOW COUNT(*) ERRORS;