~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/bigint.result

  • Committer: Brian Aker
  • Date: 2009-08-06 15:04:21 UTC
  • mfrom: (1093.1.52 captain)
  • Revision ID: brian@gaz-20090806150421-w8yrasl1m8exorxs
Merge Jay

Show diffs side-by-side

added added

removed removed

Lines of Context:
168
168
show create table t1;
169
169
Table   Create Table
170
170
t1      CREATE TABLE `t1` (
171
 
  `a` INT NOT NULL
172
 
) ENGINE=DEFAULT COLLATE = utf8_general_ci
 
171
  `a` int NOT NULL
 
172
) ENGINE=InnoDB
173
173
drop table t1;
174
174
create table t1 select 9223372036854775809 as 'a';
175
175
show create table t1;
176
176
Table   Create Table
177
177
t1      CREATE TABLE `t1` (
178
 
  `a` BIGINT NOT NULL
179
 
) ENGINE=DEFAULT COLLATE = utf8_general_ci
 
178
  `a` bigint NOT NULL
 
179
) ENGINE=InnoDB
180
180
select * from t1;
181
181
a
182
182
-9223372036854775807
183
183
drop table t1;
184
184
DROP DATABASE IF EXISTS `scott`;
185
185
Warnings:
186
 
Note    1008    Can't drop schema 'scott'; schema doesn't exist
 
186
Note    1008    Can't drop database 'scott'; database doesn't exist
187
187
create table t1 (a char(100), b varchar(100), c text, d blob);
188
188
insert into t1 values(
189
189
18446744073709551615,18446744073709551615,
368
368
9223372036854775808     -9223372036854775808
369
369
create table t1 select -9223372036854775808 bi;
370
370
describe t1;
371
 
Field   Type    Null    Default Default_is_NULL On_Update
372
 
bi      BIGINT  NO              NO      
 
371
Field   Type    Null    Key     Default Extra
 
372
bi      bigint  NO              NULL    
373
373
drop table t1;
374
374
create table t1 select -9223372036854775809 bi;
375
375
describe t1;
376
 
Field   Type    Null    Default Default_is_NULL On_Update
377
 
bi      DECIMAL NO              NO      
 
376
Field   Type    Null    Key     Default Extra
 
377
bi      decimal(19,0)   NO              NULL    
378
378
drop table t1;