ODBC dsns need long lengths like Oracle
This commit is contained in:
parent
83eb765fef
commit
fcaf782f5b
2 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue