mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-05 15:21:43 +00:00
0627ba0e36
It should be marked with always const, otherwise it will bail: Code: 44, e.displayText() = DB::Exception: Illegal column String of time zone argument of function, must be constant string: While processing toDateTime(-1, 1, 'GMT'), Stack trace (when copying this message, always include the lines below):
10 lines
266 B
Plaintext
10 lines
266 B
Plaintext
-- { echo }
|
|
select toDateTime64(toDateTime(1), 2);
|
|
1970-01-01 03:00:01.00
|
|
select toDateTime64(toDate(1), 2);
|
|
1970-01-02 00:00:00.00
|
|
select toDateTime64(toDateTime(1), 2, 'GMT');
|
|
1970-01-01 00:00:01.00
|
|
select toDateTime64(toDate(1), 2, 'GMT');
|
|
1970-01-02 00:00:00.00
|