Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: Overflow of $DBI::rows

by DanEllison (Sexton)
on Dec 07, 2012 at 16:35 UTC ( #1007784=note: print w/ replies, xml ) Need Help??


in reply to Re: Overflow of $DBI::rows
in thread Overflow of $DBI::rows

I'm trying to avoid doing the separate SELECT COUNT(*). What we are performing is:

my $sth = $dbh->prepare("UPDATE ...;") or die DBI::errstr; $sth->execute or die DBI::errstr; printf "Rows: %s\n", $sth->rows;
and $sth->rows is returning a negative number.


Comment on Re^2: Overflow of $DBI::rows
Download Code
Re^3: Overflow of $DBI::rows
by roboticus (Canon) on Dec 07, 2012 at 16:53 UTC

    DanEllison:

    D'oh! Sorry about that. You were clear, I just had a brain glitch.

    I don't know a way to fix that, but I took a quick look at the ODBC Programmers Reference at msdn, and they're mentioning that the MDAC 2.7 ODBC libraries allow 64-bit values for the SQLLEN data type (used by SQLRowCount). If you're on a Windows platform, it might be sufficient to make sure you're using the latest ODBC libraries. (Of course, the Teradata end might still be using the 32 bit types, in which case you're probably out of luck.)

    ...roboticus

    When your only tool is a hammer, all problems look like your thumb.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1007784]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (18)
As of 2014-09-30 17:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (378 votes), past polls