Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re^3: DBI on windows problem

by jZed (Prior)
on Nov 01, 2007 at 18:33 UTC ( #648529=note: print w/replies, xml ) Need Help??

in reply to Re^2: DBI on windows problem
in thread DBI on windows problem

Nothing in that jumps out at me as wrong (on the Perl side) except that you don't set RaiseError, warnings, or strict. Perhaps adding those will give you some more information.

On the off-chance that there's a bug in your version of DBD::ODBC's rows(), you could see if the results are any different with just $rcount2 = $getinfo->execute() which should also return the rows affected for non-SELECT statements.

Replies are listed 'Best First'.
Re^4: DBI on windows problem
by txtoolman (Initiate) on Nov 05, 2007 at 18:12 UTC
    I used the code you suggested - no change. Then I defined a second $dbh (identical to the first one), and used the new $dbh with the delete statement. I got the numbers I was suppose to get. I'm very curious why this is needed for the delete line, but for the updates and insert lines, there are no problems. One other thing I was thinking: would using the Win32::ODBC module be more reliable?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://648529]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2018-06-25 06:40 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (126 votes). Check out past polls.