ODBC dsns need long lengths like Oracle

This commit is contained in:
Colin Kuskie 2007-03-01 23:27:24 +00:00
parent 83eb765fef
commit fcaf782f5b
2 changed files with 3 additions and 3 deletions

View file

@ -322,7 +322,7 @@ sub connect {
$session->errorHandler->fatal("Couldn't connect to database.");
}
if ( $dsn =~ /Oracle/ ) { # Set Oracle specific attributes
if ( $dsn =~ /Oracle/ || $dsn =~ /ODBC/ ) { # Set specific attributes for long Oracle and ODBC DSNs
$dbh->{LongReadLen} = 512 * 1024;
$dbh->{LongTruncOk} = 1;
}