From 13a9c8e60f3197a42e0e286e59d73bbb88955c0c Mon Sep 17 00:00:00 2001 From: Christoph Pirkl Date: Wed, 17 Jan 2024 11:02:20 +0000 Subject: [PATCH] #74: Fix dateadd tests --- src/exasol_jdbc/dialect.tdd | 3 +++ src/exasol_odbc/dialect.tdd | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/exasol_jdbc/dialect.tdd b/src/exasol_jdbc/dialect.tdd index e27ec72..9f85a0e 100644 --- a/src/exasol_jdbc/dialect.tdd +++ b/src/exasol_jdbc/dialect.tdd @@ -977,6 +977,9 @@ ADD_MONTHS(%3, (3 * %2)) ADD_MONTHS(%3, %2) (%3 + (7 * %2)) + (CAST(%3 AS TIMESTAMP) + %2 * INTERVAL '1' HOUR) + (CAST(%3 AS TIMESTAMP) + %2 * INTERVAL '1' MINUTE) + (CAST(%3 AS TIMESTAMP) + %2 * INTERVAL '1' SECOND) diff --git a/src/exasol_odbc/dialect.tdd b/src/exasol_odbc/dialect.tdd index ca744d9..43965d2 100644 --- a/src/exasol_odbc/dialect.tdd +++ b/src/exasol_odbc/dialect.tdd @@ -977,6 +977,9 @@ ADD_MONTHS(%3, (3 * %2)) ADD_MONTHS(%3, %2) (%3 + (7 * %2)) + (CAST(%3 AS TIMESTAMP) + %2 * INTERVAL '1' HOUR) + (CAST(%3 AS TIMESTAMP) + %2 * INTERVAL '1' MINUTE) + (CAST(%3 AS TIMESTAMP) + %2 * INTERVAL '1' SECOND)