diff options
author | evgen@moonbone.local <> | 2005-07-20 06:55:51 +0400 |
---|---|---|
committer | evgen@moonbone.local <> | 2005-07-20 06:55:51 +0400 |
commit | 6b25219feab6fbbf4c03b1f44b04041da5b9b515 (patch) | |
tree | 0a6e774c5a397c41c20bbea6dc7edf46f843fe1d /mysql-test/t/view.test | |
parent | ec15dda2bfa246d71a257da2d25c3d398b4d4cc4 (diff) | |
download | mariadb-git-6b25219feab6fbbf4c03b1f44b04041da5b9b515.tar.gz |
Fix bug #11760 Typo in Item_func_add_time::print() results in NULLs returned
by subtime() in view
Item_func_add_time::print() were printing arg[0] instead of arg[1] which
results in wrongly created view. Functions addtime() and subtime were
affected by this bug.
Diffstat (limited to 'mysql-test/t/view.test')
-rw-r--r-- | mysql-test/t/view.test | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mysql-test/t/view.test b/mysql-test/t/view.test index a98ecfe232f..a61e60ef2c9 100644 --- a/mysql-test/t/view.test +++ b/mysql-test/t/view.test @@ -1853,3 +1853,13 @@ CALL p1(); DROP PROCEDURE p1; DROP VIEW v1; DROP TABLE t1; + +# +# Bug #11760 Typo in Item_func_add_time::print() results in NULLs returned +# subtime() in view +create table t1(f1 datetime); +insert into t1 values('2005.01.01 12:0:0'); +create view v1 as select f1, subtime(f1, '1:1:1') as sb from t1; +select * from v1; +drop view v1; +drop table t1; |