Millisecond support for Timestamp property for DirectConnect for Oracle  Global variables

Chapter 3: Reference Topics for Oracle

Date and time datatype support for DirectConnect for Oracle

Sybase date and time datatypes are now supported in ECDA for Oracle previously known as DirectConnect for Oracle (DCO). The following sections describe how DCO 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.





Copyright © 2005. Sybase Inc. All rights reserved. Global variables

View this book as PDF