~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Monty Taylor
  • Date: 2008-07-01 14:33:36 UTC
  • mto: (28.1.12 backport_patch)
  • mto: This revision was merged to the branch mainline in revision 34.
  • Revision ID: monty@inaugust.com-20080701143336-8uihm7dhpu92rt0q
Somehow missed moving password.c. Duh.

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
# Test warnings for LOAD DATA INFILE
50
50
#
51
51
 
52
 
create table t1(a int, b int not null, c date, d char(5));
 
52
create table t1(a tinyint, b int not null, c date, d char(5));
53
53
load data infile '../std_data_ln/warnings_loaddata.dat' into table t1 fields terminated by ',';
54
54
# PS doesn't work good with @@warning_count
55
55
--disable_ps_protocol
61
61
# Warnings from basic INSERT, UPDATE and ALTER commands
62
62
#
63
63
 
64
 
create table t1(a int NOT NULL, b int, c char(5));
 
64
create table t1(a tinyint NOT NULL, b tinyint unsigned, c char(5));
65
65
insert into t1 values(NULL,100,'mysql'),(10,-1,'mysql ab'),(500,256,'open source'),(20,NULL,'test');
66
66
alter table t1 modify c char(4);
67
67
alter table t1 add d char(2);
69
69
update t1 set a=NULL where a=10;
70
70
update t1 set c='mysql ab' where c='test';
71
71
update t1 set d=c;
72
 
create table t2(a int NOT NULL, b char(3));
 
72
create table t2(a tinyint NOT NULL, b char(3));
73
73
insert into t2 select b,c from t1;
74
74
insert into t2(b) values('mysqlab');
75
75
set sql_warnings=1;
176
176
delimiter //;
177
177
CREATE PROCEDURE sp1()
178
178
BEGIN
179
 
declare x numeric zerofill;
 
179
declare x numeric unsigned zerofill;
180
180
SELECT f1 into x from t2 limit 1;
181
181
END//
182
182
delimiter ;//