On Sun, 26 Mar 2006, ArĂ Ricardo Ody wrote:
Why, instead off try to return the wrong error, you don't try to return the value of the TIMESTAMP as "string [26]" format. If you're interested I can send you a list of the DB2 tables and the format that cobol program receive them and a brief explanation of how you interpert these formats received.
First of all, you don't talk to DB2 directly. You talk to ODBC: the ODBC driver has already allocated memory for this. But this memory is not suitable: we need a timestamp in TDateTime format. We cannot control what ODBC is doing, what kind of memory it reserves for the result of your query. Secondly, it seems that ODBC has reserved some memory area for the result of your query, but the information stored in this memory is in a format which Lazarus/FPC currently does not know how to handle. This is what we are trying to resolve. Michael.
