Skip to content

Commit

Permalink
#74: Fix dateadd tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kaklakariada committed Jan 17, 2024
1 parent 36dd6ce commit 13a9c8e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/exasol_jdbc/dialect.tdd
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,9 @@
<formula part='quarter'>ADD_MONTHS(%3, (3 * %2))</formula>
<formula part='month'>ADD_MONTHS(%3, %2)</formula>
<formula part='week'>(%3 + (7 * %2))</formula>
<formula part='hour'>(CAST(%3 AS TIMESTAMP) + %2 * INTERVAL &apos;1&apos; HOUR)</formula>
<formula part='minute'>(CAST(%3 AS TIMESTAMP) + %2 * INTERVAL &apos;1&apos; MINUTE)</formula>
<formula part='second'>(CAST(%3 AS TIMESTAMP) + %2 * INTERVAL &apos;1&apos; SECOND)</formula>
<argument type='localstr' />
<argument type='int' />
<argument type='datetime' />
Expand Down
3 changes: 3 additions & 0 deletions src/exasol_odbc/dialect.tdd
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,9 @@
<formula part='quarter'>ADD_MONTHS(%3, (3 * %2))</formula>
<formula part='month'>ADD_MONTHS(%3, %2)</formula>
<formula part='week'>(%3 + (7 * %2))</formula>
<formula part='hour'>(CAST(%3 AS TIMESTAMP) + %2 * INTERVAL &apos;1&apos; HOUR)</formula>
<formula part='minute'>(CAST(%3 AS TIMESTAMP) + %2 * INTERVAL &apos;1&apos; MINUTE)</formula>
<formula part='second'>(CAST(%3 AS TIMESTAMP) + %2 * INTERVAL &apos;1&apos; SECOND)</formula>
<argument type='localstr' />
<argument type='int' />
<argument type='datetime' />
Expand Down

0 comments on commit 13a9c8e

Please sign in to comment.