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) |