PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: mpeppler at itf dot ch (Michael Peppler)
Subject: Re: large integers
Date: Jan 31 1996 7:12AM

From: ivan@algorithmics.com (Ivan Simon)
> I am having trouble with sybase returning large (16 or more
> digits) identity numbers to perl. I am looking for a way to
> handle the identity numbers as strings from the perl/sybperl
> side.

I guess there are two solutions: Sybperl could test the size of the
NUMERIC variable, and convert to char (using dbconvert()) if the
precision is >= 16. Alternatively, we could force the conversion of
NUMERIC data to char using a special flag (like the dbKeepNumeric
flag), and this would avoid the problems.

Comments anyone?

Michael