It shows that you are unregistered. Please register with us by clicking Here
![]() |
|
![]() |
![]() | Register - FAQ - Today's Posts - New Posts - Support - Search | ![]() |
|
|
#1 (permalink) |
|
Member
Join Date: Jul 2006
Age: 38
Posts: 30
|
Hello!
I'm accessing to an Oracle DB using perl's DBI. Like this: $sth = $dbh->prepare("update..."); $sth->execute($nw,$start,$ende,$old ); $rv = $sth->rows; If I give the table name and column names in the prepare line incorrectly (eg: I want to update a row that isn't exists) I get DBD::Oracle::st execute failed: ORA-00904: "UCRPA": invalid identifier error message. How can I define my own error message in this case, like: die (" Can't update because invalid entry was defined"); I tried using eval and HandleError, but these didn't work for me. Thanks gabriel |
|
|
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Define Spam | ebittner | All Things General | 19 | 09-30-2006 02:10 PM |
| What HTTP error is generated when there is an error in an ASP page? | agaba175 | ASP | 0 | 08-05-2006 08:25 PM |