From 939abbf49bf862a77034e5d23460f57f8b3b1a7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20B=C3=A4r?= Date: Thu, 10 Dec 2020 09:15:08 +0100 Subject: [PATCH] #1: Fixed dialect for conversion from time to timestamp. --- src/exasol_odbc/dialect.tdd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/exasol_odbc/dialect.tdd b/src/exasol_odbc/dialect.tdd index 524bc38..722abfc 100644 --- a/src/exasol_odbc/dialect.tdd +++ b/src/exasol_odbc/dialect.tdd @@ -372,7 +372,8 @@ - TO_TIMESTAMP(%1) + + IF REGEXP_INSTR(%1, '^\d\d?:\d\d?:\d\d?(?:\.\d{1,6})?$') > 0 THEN TO_TIMESTAMP('1901-01-31 ' || %1) ELSE TO_TIMESTAMP(%1) ENDIF