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: Michael Peppler <mpeppler at peppler dot org>
Subject: Re: DBD::Sybase: syb_server_version_string truncated?
Date: May 26 2007 1:33PM

Rob Verschoor wrote:
> As I understand it, syb_server_version_string should return the full 
> @@version string. However, it seems to be truncated after 15 characters:
> 
> 
> print "$dbh->{syb_server_version}\n$dbh->{syb_server_version_string}\n";
> 
> 12.5.4
> Adaptive Server
> 
> 
> Am I doing something wrong? 

Nope - that's a bug.

Here's the fix, if you want to patch:

Index: dbdimp.c
===================================================================
RCS file: /usr/local/cvsroot/DBD-Sybase/dbdimp.c,v
retrieving revision 1.96
diff -r1.96 dbdimp.c
1670c1670
<                       sizeof(imp_dbh->serverVersion));
---
 >                       sizeof(imp_dbh->serverVersionString));


Michael
-- 
Michael Peppler           -                 Peppler Consulting SaRL
mpeppler@peppler.org      -                  http://www.peppler.org
Sybase DBA/Developer      -   TeamSybase: http://www.teamsybase.com
Sybase on Linux FAQ       -   http://www.peppler.org/FAQ/linux.html