Click here to get back home

DBD::SQLite and big integers

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
DBD::SQLite and big integers web 12-13-2004
Get Chitika Premium
Posted by web on December 13, 2004, 1:02 am
Please log in for more thread options
I would appreciate some guidance on an issue I'm experiencing...

I'm using DBD::SQLite in an application with large integer values (> 32
bits). The values are handled fine in sqlite itself. Just FYI, the
sqlite documentation specifically says the following regarding the
INTEGER data type:

"The value is a signed integer, stored in 1, 2, 3, 4, 6, or 8 bytes
depending on the magnitude of the value."

However, by the time the values gets to Perl, they're corrupt; even
though the version of Perl that I'm using (5.8.5) has support for
64-bit integers. Here's some partial output from "perl -V".

Characteristics of this binary (from libperl):
Compile-time options: USE_64_BIT_INT USE_LARGE_FILES
Built under linux

Apparently there's a problem in passing the larger integer values
through the DBD::SQLite interface. The version of DBD::SQLite is 1.07.

I've done some investigation into the issue, but I haven't found any
satisfactory answers. Any help would be appreciated.

Thanks!



Posted by web on December 14, 2004, 5:32 pm
Please log in for more thread options
I found that there's a bug filed against DBD::SQLite on the problem.
The initial entry suggested a fix. That fix had some problems, but it
pointed me in the right direction... I added an entry with a new fix.
Please see:

http://rt.cpan.org/NoAuth/Bug.html?id=7673



Posted by web on December 14, 2004, 5:35 pm
Please log in for more thread options
I found that there's a bug filed against DBD::SQLite on the problem.
The initial entry suggested a fix. That fix had some problems, but it
pointed me in the right direction... I added an entry with a new fix.
Please see:

http://rt.cpan.org/NoAuth/Bug.html?id=7673



Similar ThreadsPosted
Will XML::Simple work with keys, strings, integers, and dates? March 21, 2005, 10:43 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap