home clear 64x64
en blue 200x116 de orange 200x116 info letter User
suche 36x36
Latest versionsfixlist
14.10.xC11 FixList
12.10.xC16.X5 FixList
11.70.xC9.XB FixList
11.50.xC9.X2 FixList
11.10.xC3.W5 FixList
Have problems? - contact us.
Register for free anmeldung-x26
Contact form kontakt-x26

Informix - Problem description

Problem IT37080 Status: Closed

.NET CORE: USING IFXDATAADAPTER WITH DATE TYPE THROWS "UNABLE TOCAST
OBJECT TO TYPE 'INFORMIX.NET.CORE.IFXDATETIME...'"

product:
IBM CSDK / 5724C2381 / 450 - CSDK 4.50
Problem description:
When selecting a date type using IfxDataAdapter, the following
exception like the following will be thrown when using the
Informix .NET Core provider:

Unable to cast object of type 'Informix.Net.Core.IfxDateTime' to
type 'System.IConvertible'.Couldn't store  in
order_date Column.  Expected type is DateTime.

The same code works fine with the regular Informix .NET
provider.

The workaround is to use an IfxDataReader instead.
Problem Summary:
****************************************************************
* USERS AFFECTED:                                              *
* Users of Informix Client SDK prior to 4.50.FC7.              *
****************************************************************
* PROBLEM DESCRIPTION:                                         *
* See Error Description                                        *
****************************************************************
* RECOMMENDATION:                                              *
* Upgrade to Informix Client SDK 4.50.FC7 (when available).    *
****************************************************************
Local Fix:
Solution
Workaround
****************************************************************
* USERS AFFECTED:                                              *
* Users of Informix Client SDK prior to 4.50.FC7.              *
****************************************************************
* PROBLEM DESCRIPTION:                                         *
* See Error Description                                        *
****************************************************************
* RECOMMENDATION:                                              *
* Upgrade to Informix Client SDK 4.50.FC7 (when available).    *
****************************************************************
Comment
Fixed in Informix Client SDK 4.50.FC7.
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
01.06.2021
26.08.2021
26.08.2021
Problem solved at the following versions (IBM BugInfos)
Problem solved according to the fixlist(s) of the following version(s)