Skip to content

Commit

Permalink
Revert "#1: Fixed dialect for conversion from time to timestamp."
Browse files Browse the repository at this point in the history
This reverts commit 939abbf.
  • Loading branch information
chiaradiamarcelo committed Jan 27, 2021
1 parent 15afb39 commit ee86718
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/exasol_odbc/dialect.tdd
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,7 @@
<argument type='real' />
</function>
<function group='cast' name='DATETIME' return-type='datetime'>
<!-- Note that the date 1901-01-31 is a magic number in Tableau, used to signal that a date/time value acually only has a time component. -->
<formula>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</formula>
<formula>TO_TIMESTAMP(%1)</formula>
<argument type='str' />
</function>
<function group='cast' name='DATETIME' return-type='datetime'>
Expand Down

0 comments on commit ee86718

Please sign in to comment.