# -------------------------------------------------------------- # # Test case migrated from regression test suite: bug3798.sql # # Author: Daniel Lee, daniel.lee@mariadb.com # -------------------------------------------------------------- # # --source ../include/have_columnstore.inc # USE tpch1; # select cidx, CDOUBLE, CAST(CDOUBLE AS DECIMAL(9)) from datatypetestm order by cidx; --disable_warnings drop table if exists bug3798; --enable_warnings create table bug3798 (c1 float) engine=columnstore; insert into bug3798 values (1234567), (1.2345678); select c1, cast(c1 as decimal(9,2)), cast(c1 as decimal(14,12)) from bug3798; --disable_warnings drop table bug3798; --enable_warnings #