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

« back to all changes in this revision

Viewing changes to tests/suite/mysql_compatibility/t/unsigned.test

  • 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
# Test that we generate unsigned tables.
 
2
CREATE TABLE t1 (A INTEGER UNSIGNED);
 
3
CREATE TABLE t2 (A INTEGER UNSIGNED);
 
4
 
 
5
CREATE TABLE t3 (A BIGINT UNSIGNED);
 
6
CREATE TABLE t4 (A BIGINT UNSIGNED);
 
7
 
 
8
SHOW CREATE TABLE t1;
 
9
SHOW CREATE TABLE t2;
 
10
SHOW CREATE TABLE t3;
 
11
SHOW CREATE TABLE t4;
 
12
 
 
13
--error ER_WARN_DATA_OUT_OF_RANGE
 
14
INSERT INTO t1 VALUES (-1);
 
15
SELECT A FROM t1;
 
16
 
 
17
DROP TABLE t1;
 
18
DROP TABLE t2;
 
19
DROP TABLE t3;
 
20
DROP TABLE t4;