Skip to content

Correct the datetime NLS mask behavior in v5.6 #469

Open

Description

@Hanabi9248

The English and Chinese v5.6 Oracle compatibility pages say that the compatibility parser ignores NLS formats when the bit for a datetime type is clear. The clear-bit path in the release parses input using the NLS format for that type. The mask defaults to 0, so the description gives readers the wrong expectation about which input strings are accepted in a default session. English description Chinese description Default mask

Setting the bit for a type selects native PostgreSQL input parsing. The same path is selected if the corresponding format is set to pg. In all other cases each input function passes the configured NLS format to ora_do_to_timestamp(). Update both pages to describe those branches. The masks are 0x01 for oradate, 0x02 for oratimestamp, 0x04 for oratimestamptz, and 0x08 for oratimestampltz. Mask definitions Date input Timestamp input Timestamp with time zone Timestamp with local time zone

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