Re: DBD::Oracle, Support binding of integers so they are returned as IVs

Tim Bunce <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.dbi.sybase.devel
Message-ID <[email protected]>
On Wed, Oct 28, 2009 at 04:54:06PM -0000, Greg Sabino Mullane wrote:
> 
> > I cannot say why you changed DBD::Pg for JSON::XS but I can say why I
> > want integers back from Oracle instead of strings when I ask for
> > integers and the column is an integer. I don't think it is square pegs
> > into round holes.
> 
> Well you'll never get a Perl integer (IV) to match Oracle's integer:
> NUMBER(38). But sounds like y'all have found a good enough solution.

We could always make bind_col(..., SQL_BIGINT) enable creation of
Math::BigInt objects for values that are too large for IV.

Tim.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.