My Oracle Support Banner

RDBPROD: How To Pass And Insert Timestamp Character String to SQLMOD (Doc ID 65383.1)

Last updated on APRIL 16, 2024

Applies to:

Oracle Rdb Server on OpenVMS - Version 6.0 and later
HP OpenVMS VAX
HP OpenVMS Alpha
HP OpenVMS Itanium

Goal

When using SQLMOD to insert a program passed character string that represents an Oracle Rdb TIMESTAMP(2) datatype, unexpected date results occur if the corresponding SQLMOD parameter is declared as a TIMESTAMP(2) datatype.

For example, consider the following extract of a FORTRAN variable declaration, assignment and call to the following SQLMOD procedure:

The resulting date ends up being stored as "1864-03-24 17:27:03.76" instead of the passed value of "1990-2-13 11:54:30.00". 

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.