Hi,

Simple,
Put:
RaiseError=> 0
Printerror=> 1

José Pedro Silva Pinto

-----Original Message-----
From: Lorenzo Caggioni [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 7 de Dezembro de 2005 10:50
To: beginners@perl.org
Subject: DBI:ORACLE

HI!!!
i'm tring to use DBI module

Here is the code

#!/geneva/geneva/dev1/perl5/bin/perl
#

use strict;
use DBI;
use warnings;

my $dbh = DBI->connect( 'dbi:Oracle:MYSEED,
                        'donald',
                        'duck',
                        {
                          RaiseError => 1,
                          AutoCommit => 0
                        }
                      ) or print "Database connection not made: $DBI::errstr
\n";

print " \n THE END \n \n";

If the username and password is correct it works fine, but if they are
incorrect the program doesn't print the error message and it die...

What's wrong?

Thanks

Lorenzo

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to