Commit f2dc5f08 authored by Zardosht Kasheff's avatar Zardosht Kasheff

[t:4630], add test

git-svn-id: file:///svn/mysql/tests/mysql-test@41220 c7de825b-a66e-492c-adef-691d508d4ae1
parent 66ed3090
SET STORAGE_ENGINE = 'tokudb';
DROP TABLE IF EXISTS foo;
set session tokudb_disable_slow_alter=ON;
create table foo (a int)engine=TokuDB;
insert into foo values (1),(2),(3);
alter table foo add column b blob;
select * from foo;
a b
1 NULL
2 NULL
3 NULL
alter table foo add column c blob NOT NULL;
select * from foo;
a b c
1 NULL
2 NULL
3 NULL
alter table foo add column d blob DEFAULT="asdf";
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '="asdf"' at line 1
select * from foo;
a b c
1 NULL
2 NULL
3 NULL
DROP TABLE foo;
--source include/have_tokudb.inc
#
# Record inconsistency.
#
#
SET STORAGE_ENGINE = 'tokudb';
--disable_warnings
DROP TABLE IF EXISTS foo;
--enable_warnings
set session tokudb_disable_slow_alter=ON;
create table foo (a int)engine=TokuDB;
insert into foo values (1),(2),(3);
alter table foo add column b blob;
select * from foo;
alter table foo add column c blob NOT NULL;
select * from foo;
--error ER_PARSE_ERROR
alter table foo add column d blob DEFAULT="asdf";
select * from foo;
# Final cleanup.
DROP TABLE foo;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment