Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Data Access, Manipulation & Batch Languages > Perl and the DBI > only 255 char long data is retrived using perl5 from database as syabse 12.5

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-04-04, 11:09
pooja pooja is offline
Registered User
 
Join Date: Dec 2002
Posts: 104
only 255 char long data is retrived using perl5 from database as syabse 12.5

Hello All,

I am quite new to Perl.Problem i am facing is When i try to retrive some value from database(Sybase12.5) using perl5 it retrives me value of 255 length although i have 400 char long data in the column .
Can anyone please tell me the reason behind it.

thanx in advance
Pooja
Reply With Quote
  #2 (permalink)  
Old 06-18-04, 22:56
senza_nome senza_nome is offline
Registered User
 
Join Date: Jun 2004
Location: Nowhere Near You
Posts: 89
LongReadLen

Hi,

Look up "LongReadLen" attribute: as in

$o_dbh{PPSY2K}=DBI->connect("DBI:ODBC:database","user","password",{Au toCommit => 0, LongReadLen=> (4*1024-1)*1024}) or die "Can't connect: $DBI::errstr\n";


Hope it helps!
Reply With Quote
  #3 (permalink)  
Old 06-21-04, 00:21
pooja pooja is offline
Registered User
 
Join Date: Dec 2002
Posts: 104
Hi!,
thanx for ur response.

I am not setting anything as length, so default would be used i guess.

Moreover i have found that with Sybase 12.5 sybperl version 2.15 is needed.(in order to support increased column length).

--Pooja
Reply With Quote
  #4 (permalink)  
Old 06-21-04, 01:02
senza_nome senza_nome is offline
Registered User
 
Join Date: Jun 2004
Location: Nowhere Near You
Posts: 89
Programming the Perl DBI

See pages 141-142, 151-152 of Alligator Descartes & Tim Bunce's Programming the Perl DBI
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On