On Mon, Jul 3, 2017 at 6:53 AM, a4g atl <a4ginatl2@xxxxxxxxx> wrote:

My practice has always been to define the fields in a data
structure for a result set as character.


​That is a bad practice....

The SQL standard includes DECIMAL and NUMERIC fixed decimal types. On the
i, those correspond to PACKED or ZONED. But that's just how they are
stored on the i, not necessarily how they are returned externally.

It doesn't really matter how those are sent on the wire, the point being
the DB and the driver support SQL fixed decimal types and that the calling
language support some sort of fix decimal type that maps to the SQL types.

​Charles​

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.