Skip to content

Timestamp print format based on input #640

Description

@AugustoFKL

TIMESTAMP WITH TIME ZONE and TIMESTAMPTZ theoretically are the same on Postgresql (1), but they are not for other dialects like Oracle(2) (that doesn't support TIMESTAMPTZ). Therefore, we should parse EXACTLY the same timestamp info as input and output, instead of losing its conversion.

The standard only supports TIMESTAMP WITH TIMEZONE(3)

This applies to TIME as well.

[1] : https://www.postgresql.org/docs/current/datatype-datetime.html
[2] : https://docs.oracle.com/en/database/oracle/oracle-database/12.2/nlspg/datetime-data-types-and-time-zone-support.html#GUID-3F1C388E-C651-43D5-ADBC-1A49E5C2CA05
[3] : https://jakewheat.github.io/sql-overview/sql-2016-foundation-grammar.html#datetime-type
Fixes: #589

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions