1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-04-21 19:45:56 +03:00

34 lines
777 B
Plaintext

# -------------------------------------------------------------- #
# Test case migrated from regression test suite: bug5712.sql
#
# Author: Daniel Lee, daniel.lee@mariadb.com
# -------------------------------------------------------------- #
#
--source ../include/have_columnstore.inc
#
USE tpch1;
#
--disable_warnings
DROP TABLE IF EXISTS bug5712;
--enable_warnings
CREATE TABLE bug5712 (`time_tk` INT(11) UNSIGNED NOT NULL) ENGINE=Columnstore DEFAULT CHARSET=latin1;
INSERT INTO bug5712 VALUES
(2013113023),
(1900010100),
(2199123100),
(2199123100),
(2147483646),
(2147483647),
(2147483648);
SELECT LEFT(time_tk,6) AS time_tk_left FROM bug5712;
SELECT RIGHT(time_tk,6) AS time_tk_right FROM bug5712;
--disable_warnings
DROP TABLE IF EXISTS bug5712;
--enable_warnings
#