Up Prev Next
From: glen at socrates dot berkeley dot edu
Date: Nov 6 1997 10:02PM
I apologize in advance for such a total newbie question.
Can anyone give me a clue (or a pointer to a sample program) about
how to make use of ct_res_info to get the row count? I have tried
every variation that I can think of and all it ever returns is "0".
$dbh = Sybase::CTlib->ct_connect( $user, $passwd, $srvr );
$dbh->ct_execute( $query );
$row_count = $dbh->ct_res_info( CS_ROW_COUNT );
print "Query returned $row_count rows \n";
produces: Query returned 0 rows
Does the call to ct_res_info have to come after ct_results? Of
course, I tried that with exactly the same result.
firstname.lastname@example.org `0-0' (uh-oh)
IST-Museum Informatics Project --------oOO---^---OOo-------
110 Doe Library