Date and time datatype support for ECDA Option for Oracle

Sybase date and time datatypes are supported in ECDA Option for Oracle. The following sections describe how ECDA Option for Oracle supports the new datatypes:

Datatype mapping

Oracle currently provides two date/time datatypes, Oracle DATE and Oracle TIMESTAMP:

Incoming data

Cursor and dynamic statement parameter data for Sybase DATE and TIME datatypes are con­verted to the proper Oracle datatype. The Sybase TIME data destined for an Oracle TIMESTAMP column is converted based on the setting of the timestamp_ms_support parameter. Incoming language statements with literal string data that is destined for either an Oracle DATE or TIMESTAMP column must conform to the format defined by the date_format and timestamp_format configuration settings. This implies that column data coming from a Sybase DATE column must include a default time of 12:00:00AM, in addition to the date value. The column data coming from a Sybase TIME column must include a default date of Jan 1 1900 in addi­tion to the time value. Incoming RPC statements with Sybase DATE or TIME literal string parameters must format the literal string.

Outgoing data

Data being retrieved from both Oracle DATE and TIMESTAMP is returned to the application as a date/time datatype.