~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

Viewing changes to tests/suite/uuid_type/r/bad_conversions.result

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2010-12-21 16:39:40 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20101221163940-c1pfo1jjvx7909xq
Tags: 2010.12.06-0ubuntu1
* New upstream release.
* Added libaio-dev build depend for InnoDB.
* Removed libpcre patch - applied upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
CREATE TABLE t1 (a UUID, PRIMARY KEY(a));
 
2
show create table t1;
 
3
Table   Create Table
 
4
t1      CREATE TABLE `t1` (
 
5
  `a` UUID NOT NULL,
 
6
  PRIMARY KEY (`a`)
 
7
) ENGINE=InnoDB COLLATE = utf8_general_ci
 
8
INSERT INTO t1 VALUES ("1b4e28ba-2fa1-11d2-883f-b9a761bde3fb");
 
9
SELECT a FROM t1;
 
10
a
 
11
1b4e28ba-2fa1-11d2-883f-b9a761bde3fb
 
12
CREATE TABLE t2 (a REAL);
 
13
INSERT INTO t2 SELECT a FROM t1 LIMIT 1;
 
14
ERROR 01000: Data truncated for column 'a' at row 1
 
15
SELECT a FROM t2;
 
16
a
 
17
CREATE TABLE t3 (a REAL);
 
18
INSERT INTO t3 SELECT a FROM t1 LIMIT 1;
 
19
ERROR 01000: Data truncated for column 'a' at row 1
 
20
SELECT a FROM t3;
 
21
a
 
22
DROP TABLE t3;
 
23
DROP TABLE t2;
 
24
DROP TABLE t1;