You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-11-25 20:23:16 +03:00
29 lines
967 B
Plaintext
29 lines
967 B
Plaintext
# -------------------------------------------------------------- #
|
|
# Test case migrated from regression test suite: bug3792.negative.sql
|
|
#
|
|
# Author: Daniel Lee, daniel.lee@mariadb.com
|
|
# -------------------------------------------------------------- #
|
|
#
|
|
--source ../include/have_columnstore.inc
|
|
#
|
|
USE tpch1;
|
|
#
|
|
drop table if exists bug3792;
|
|
|
|
create table bug3792 (c1 int, c2 datetime) engine=columnstore;
|
|
insert into bug3792 values (1, '9999-12-31 23:59:59');
|
|
insert into bug3792 values (2, '1000-01-01 00:00:00');
|
|
insert into bug3792 values (3, NULL);
|
|
|
|
select c1, c2, addtime(c2, '2:0:0') x from bug3792 where c1 = 1;
|
|
select c1, c2, addtime(c2, '2:0:0') x from bug3792 where c1 = 2;
|
|
select c1, c2, addtime(c2, '2:0:0') x from bug3792 where c1 = 3;
|
|
|
|
select c1, c2, subtime(c2, '2:0:0') x from bug3792 where c1 = 1;
|
|
select c1, c2, subtime(c2, '2:0:0') x from bug3792 where c1 = 2;
|
|
select c1, c2, subtime(c2, '2:0:0') x from bug3792 where c1 = 3;
|
|
|
|
drop table bug3792;
|
|
#
|
|
|