|
|
sybperl-l Archive
Up Prev Next
From: Michael Peppler <mpeppler at peppler dot org>
Subject: Re: question MaxRows
Date: Sep 6 1999 8:15PM
BAHRI, SOFIENNE writes:
> Michael,
>
> when I run the program that you have sent me, I always get more the ten
> 10
> rows. and my MaxRows attribute is set to 10 and I get mostly all the
> result set.??????
Which version of sybperl do you have?
There were some versions in which the MaxRows attribute didn't work
correctly for the ct_sql() call.
Alternatively, add:
$dbh->ct_options(&CS_SET, &CS_OPT_ROWCOUNT, $maxrows,
&CS_INT_TYPE);
to set the rowcount.
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
|