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 itf1 dot itf dot ch (Michael Peppler)
Subject: Re: problem after upgrade
Date: Mar 20 1996 7:28AM

> From: "Dave Cleary" 
> 
> We are also having a problem after upgrading from perl 5.01m to 5.02.
> 
> Using old sybperl syntax (require "sybperl.pl"), and calling &dbcmd, 
&dbsqlexec,
> &dbnextrow(), whenever a select returns sybase numeric data, the values 
are coming
> back as a string with the correct number, about 200 spaces, and a garbage 
character
> (sometimes a number, sometimes high ascii).  All scripts using numerics 
(ie, identity
> columns) are broken.

The bug is in sybperl.

Edit sybperl-2.04/DBlib/DBlib.xs:  in dbnextrow() (around line 3550) you
have a dbconvert().  Change the last parameter to -1.  Do the same things
in dbretdata() below.

Michael