X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FStorage%2FDBI%2FOracle%2FGeneric.pm;h=e6bf5ae1fe85862eb959935aa3f02c6b9918ab1e;hb=3895349e454e6b3fd36188b27e565acfa7da601e;hp=37ddf7a799794052c0386e961f9d4f4e74b1cbf9;hpb=24e4bacb969c8b6f31708363d776ca27f8cf7b4a;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/Storage/DBI/Oracle/Generic.pm b/lib/DBIx/Class/Storage/DBI/Oracle/Generic.pm index 37ddf7a..e6bf5ae 100644 --- a/lib/DBIx/Class/Storage/DBI/Oracle/Generic.pm +++ b/lib/DBIx/Class/Storage/DBI/Oracle/Generic.pm @@ -157,9 +157,10 @@ sub _ping { my $dbh = $self->_dbh or return 0; local $dbh->{RaiseError} = 1; + local $dbh->{PrintError} = 0; eval { - $dbh->do("select 1 from dual"); + $dbh->do('select 1 from dual'); }; return $@ ? 0 : 1; @@ -239,10 +240,10 @@ Used as: on_connect_call => 'datetime_setup' -In L to set the session nls date, and -timestamp values for use with L and the -necessary environment variables for L, which is used -by it. +In L to set the session nls +date, and timestamp values for use with L +and the necessary environment variables for L, which +is used by it. Maximum allowable precision is used, unless the environment variables have already been set.