Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re^2: DBI ignoring devide by zero

by emptyfull (Initiate)
on Oct 02, 2012 at 13:42 UTC ( #996858=note: print w/replies, xml ) Need Help??

in reply to Re: DBI ignoring devide by zero
in thread DBI ignoring devide by zero

its not DBMS for sure
i tried same sql code with C++ and ODBC and i get error message
i tried it with command line osql
and i get Msg 8134, Level 16, State 1, Server FIENYSQL, Line 6 Divide by zero error encountered.

Replies are listed 'Best First'.
Re^3: DBI ignoring devide by zero
by Corion (Pope) on Oct 02, 2012 at 13:44 UTC

    Do you check for errors?

    When creating the database connection, pass the { RaiseError => 1 } attribute or do manual checks for errors whenever you run an SQL statement.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://996858]
[jdporter]: "When all your nails look like trolls, all your hammers look like trolls."
erix hammers a jdporter nail randomly
[erix]: average between 1 and 20

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2018-06-21 16:28 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (118 votes). Check out past polls.