1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-11-25 20:23:16 +03:00
Files
mariadb-columnstore-engine/mtr/csinternal/devregression/t/mcs7124_regression_bug3798.test
mariadb-RomanNavrotskiy 73b4147cf3 move mtr suites here
2021-01-31 01:38:31 +02:00

20 lines
619 B
Plaintext

# -------------------------------------------------------------- #
# 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;
drop table if exists bug3798;
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;
drop table bug3798;
#