Fix ifnull/nvl expr result wrong precision

This commit is contained in:
hezuojiao
2023-04-27 02:14:22 +00:00
committed by ob-robot
parent f59bb29409
commit bc1c4b7599
6 changed files with 70 additions and 32 deletions

View File

@ -84,3 +84,9 @@ insert into t1 values(1, now());
insert into t1 values(2, now(6));
select nvl(null,b) from t1;
drop table t1;
--echo #bug:
create table t1 as select nvl(cast(1 as decimal(10, 7)), cast(2 as decimal(12, 5))) as c from dual;
desc t1;
select * from t1;
drop table t1;