diff options
author | unknown <hf@deer.mysql.r18.ru> | 2003-01-22 20:08:12 +0400 |
---|---|---|
committer | unknown <hf@deer.mysql.r18.ru> | 2003-01-22 20:08:12 +0400 |
commit | c73e02756f3f08e1c1decd903aa7a1052ba231a3 (patch) | |
tree | e6c817b6f680cd04d4a4d3cbea3962d434941db7 /mysql-test/t/replace.test | |
parent | 96b86dcc9a1e87f01f73186308e8c35f6f900452 (diff) | |
download | mariadb-git-c73e02756f3f08e1c1decd903aa7a1052ba231a3.tar.gz |
SCRUM
DEFAULT in SELECT & UPDATE corrections
mysql-test/r/replace.result:
test slightly extended
mysql-test/t/replace.test:
test slightly extended with replace(default)
sql/item.cc:
DEFAULT_ITEM replaced
sql/item.h:
some modifications after talking with Sergey
Diffstat (limited to 'mysql-test/t/replace.test')
-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; |