mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 02:51:44 +01:00
11 lines
283 B
Text
11 lines
283 B
Text
|
|
||
|
--echo #
|
||
|
--echo # MDEV-23656 view: removal of parentheses results in wrong result
|
||
|
--echo #
|
||
|
create table t1 (a int, b decimal(10,2));
|
||
|
insert into t1 values (1, 10.2);
|
||
|
create view v1 as select avg(b) / (2 + a) from t1;
|
||
|
query_vertical show create view v1;
|
||
|
drop view v1;
|
||
|
drop table t1;
|