diff options
author | hf@deer.mysql.r18.ru <> | 2003-01-22 20:08:12 +0400 |
---|---|---|
committer | hf@deer.mysql.r18.ru <> | 2003-01-22 20:08:12 +0400 |
commit | e2d991795c46bbbc66508ca450b9e33f4147e50b (patch) | |
tree | e6c817b6f680cd04d4a4d3cbea3962d434941db7 /mysql-test/t | |
parent | 87681bb85e7085e17ba137e2147e28cf9dfbae30 (diff) | |
download | mariadb-git-e2d991795c46bbbc66508ca450b9e33f4147e50b.tar.gz |
SCRUM
DEFAULT in SELECT & UPDATE corrections
Diffstat (limited to 'mysql-test/t')
-rw-r--r-- | mysql-test/t/replace.test | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mysql-test/t/replace.test b/mysql-test/t/replace.test index 7aeb2475ab5..2afce2fcc84 100644 --- a/mysql-test/t/replace.test +++ b/mysql-test/t/replace.test @@ -27,12 +27,13 @@ drop table t1; # Test when using replace on a key that has used up it's whole range # -create table t1 (a tinyint not null auto_increment primary key, b char(20)); -insert into t1 values (126,"first"),(0,"last"); +create table t1 (a tinyint not null auto_increment primary key, b char(20) default "default_value"); +insert into t1 values (126,"first"),(63, "middle"),(0,"last"); --error 1062 insert into t1 values (0,"error"); --error 1062 replace into t1 values (0,"error"); replace into t1 values (126,"first updated"); +replace into t1 values (63,default); select * from t1; drop table t1; |