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

« back to all changes in this revision

Viewing changes to tests/t/alter_table.test

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2010-10-02 14:17:48 UTC
  • mfrom: (1.1.1 upstream)
  • mto: (2.1.17 sid)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20101002141748-m6vbfbfjhrw1153e
Tags: 2010.09.1802-1
* New upstream release.
* Removed pid-file argument hack.
* Updated GPL-2 address to be new address.
* Directly copy in drizzledump.1 since debian doesn't have sphinx 1.0 yet.
* Link to jquery from libjs-jquery. Add it as a depend.
* Add drizzled.8 symlink to the install files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
alter table t1
18
18
add column col4_5 varchar(20) not null after col4,
19
19
add column col7 varchar(30) not null after col5,
20
 
add column col8 datetime not null, drop column to_be_deleted,
 
20
add column col8 datetime not null default '1000-01-01 00:00:00', drop column to_be_deleted,
21
21
change column col2 fourth varchar(30) not null after col3,
22
22
modify column col6 int not null first;
23
23
select * from t1;
522
522
#create table t1(f1 int);
523
523
#alter table t1 add column f2 datetime not null, add column f21 date not null;
524
524
#insert into t1 values(1,'2000-01-01','2000-01-01');
525
 
#--error 1292
 
525
#--error ER_TRUNCATED_WRONG_VALUE
526
526
#alter table t1 add column f3 datetime not null;
527
 
#--error 1292
 
527
#--error ER_TRUNCATED_WRONG_VALUE
528
528
#alter table t1 add column f3 date not null;
529
 
#--error 1292
 
529
#--error ER_TRUNCATED_WRONG_VALUE
530
530
#alter table t1 add column f4 datetime not null default '2002-02-02',
531
531
#  add column f41 date not null;
532
532
#alter table t1 add column f4 datetime not null default '2002-02-02',