~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/warnings.test

  • Committer: Brian Aker
  • Date: 2008-09-21 12:42:22 UTC
  • Revision ID: brian@tangent.org-20080921124222-zhjb3i0aqoz9723u
Cleanup tiny and small int.

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 tinyint, b int not null, c date, d char(5));
 
52
create table t1(a int, 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 tinyint NOT NULL, b tinyint unsigned, c char(5));
 
64
create table t1(a int NOT NULL, b int 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 tinyint NOT NULL, b char(3));
 
72
create table t2(a int 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;