~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to mysql-test/r/strict_autoinc_3heap.result

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
drop table if exists t1;
 
2
set @org_mode=@@sql_mode;
 
3
create table t1
 
4
(
 
5
`a` tinyint(4) NOT NULL auto_increment,
 
6
primary key (`a`)
 
7
) engine = 'MEMORY'  ;
 
8
set @@sql_mode='strict_all_tables';
 
9
insert into t1 values(1000);
 
10
ERROR 22003: Out of range value for column 'a' at row 1
 
11
select count(*) from t1;
 
12
count(*)
 
13
0
 
14
set auto_increment_increment=1000;
 
15
set auto_increment_offset=700;
 
16
insert into t1 values(null);
 
17
ERROR 22003: Out of range value for column 'a' at row 1
 
18
select count(*) from t1;
 
19
count(*)
 
20
0
 
21
set @@sql_mode=@org_mode;
 
22
insert into t1 values(null);
 
23
Warnings:
 
24
Warning 1264    Out of range value for column 'a' at row 1
 
25
select * from t1;
 
26
a
 
27
127
 
28
drop table t1;