RDBPROD: Query with DATE function fails with RDB-E-CONVERT_ERROR, COSI-F-INVCLADTY (Doc ID 1327232.1)

Last updated on AUGUST 09, 2016

Applies to:

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

Symptoms

On a table with an ANSI DATE column defined the following error occurs:

select a_date from p_table where a_date = date'2011-05-26';

%RDB-E-CONVERT_ERROR, invalid or unsupported data conversion
-COSI-F-INVCLADTY, invalid class data type combination in descriptor

Yet the value in A_DATE is valid and can be displayed.

Changes

The table in question has just been re-created and new data added.
A record has been inserted that has picked up a time portion even though it is zero.  This can be shown by:

select a_date from p_table;
A_DATE
26-MAY-2011 00:00:00.00

Cause

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 hundreds of Community platforms