|
|
sybperl-l Archive
Up Prev Next
From: Michael Peppler <mpeppler at peppler dot org>
Subject: Re: ct-lib out of memory error
Date: Oct 29 1999 3:56PM
Sheree A. Hemphill writes:
>
> #!/usr/local/bin/perl
>
> use Sybase::CTlib;
> $dbh = new Sybase::CTlib 'username', 'pw', 'server';
> $dbh->ct_sql("use db");
>
> $dbh->ct_sql("set textsize 2147483647");
> @rows = $dbh->ct_sql("select * from SOURCESEQ where AC='U00096'");
>
> foreach $row_ref (@rows) {
> ($ac, $text) = ($$row_ref[0], $$row_ref[1]);
> print "ac=$ac\n";
> print "text=$text";
> }
>
>
> the is only one record that gets returned. when i run this, i get the
> following error:
> Out of memory during "large" request for -2147479552 bytes at
> /usr/freeware/lib/perl5/site_perl/5.005/irix-n32/Sybase/CTlib.pm line 888.
That looks suspicious - the -21474... number is 0x80001000 which is
rather a lot for a malloc() request...
Try setting the textsize to something more reasonable (say 1000000)
and see what happens (yes I know that this is less than the size of
the data item you inserted, but it might help you pinpoint the error).
Michael
--
Michael Peppler -||- Data Migrations Inc.
mpeppler@peppler.org -||- http://www.mbay.net/~mpeppler
Int. Sybase User Group -||- http://www.isug.com
Sybase on Linux mailing list: ase-linux-list@isug.com
|