~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/suite/regression/t/728855.test

  • Committer: Lee Bieber
  • Date: 2011-03-17 23:23:47 UTC
  • mfrom: (2240.1.3 build)
  • Revision ID: kalebral@gmail.com-20110317232347-15tn59mrrfx2ubvm
Merge Stewart - 728855: BLOB column can have default '' (empty string) in CREATE TABLE but not ALTER TABLE ALTER 
Merge Stewart - 728856: CREATE TABLE t1 (a int default 'aoeu'); succeeds
Merge Stewart - 730420: ER_TOO_BIG_FIELDLENGTH can report allowed size in bytes or characters depending on codepath producing the error
Merge Stewart - dbqp source (and all its libs) should use emacs python mode, not emacs C mode

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
CREATE TABLE t1 (a blob default '');
 
2
drop table t1;
 
3
CREATE TABLE t1 (a blob);
 
4
ALTER TABLE t1 ALTER a SET DEFAULT '';
 
5
DROP TABLE t1;
 
6
 
 
7
CREATE TABLE t1 (a timestamp default CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP);
 
8
ALTER TABLE t1 ALTER a SET DEFAULT '2011-01-01 10:00:00';
 
9
SHOW CREATE TABLE t1;
 
10
DROP TABLE t1;
 
11
 
 
12
CREATE TABLE t1 (a timestamp ON UPDATE CURRENT_TIMESTAMP);
 
13
ALTER TABLE t1 ALTER a SET DEFAULT '2011-03-07 17:45:00';
 
14
SHOW CREATE TABLE t1;
 
15
DROP TABLE t1;