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

« back to all changes in this revision

Viewing changes to tests/r/alter_column_drop_default.result

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2010-03-18 12:12:31 UTC
  • Revision ID: james.westby@ubuntu.com-20100318121231-k6g1xe6cshbwa0f8
Tags: upstream-2010.03.1347
ImportĀ upstreamĀ versionĀ 2010.03.1347

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
CREATE TABLE t1 (a int NOT NULL default 42);
 
2
INSERT INTO t1 values ();
 
3
SELECT * FROM t1;
 
4
a
 
5
42
 
6
ALTER TABLE t1 ALTER COLUMN a DROP DEFAULT;
 
7
INSERT INTO t1 values ();
 
8
ERROR HY000: Field 'a' doesn't have a default value
 
9
INSERT INTO t1 (a) VALUES (11);
 
10
SELECT * FROM t1 ORDER BY a;
 
11
a
 
12
11
 
13
42
 
14
DROP TABLE t1;