mirror of
https://github.com/MariaDB/server.git
synced 2025-10-25 18:38:00 +03:00
11 lines
283 B
Plaintext
11 lines
283 B
Plaintext
|
|
--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;
|