Commit 346a350f authored by Ian Longden's avatar Ian Longden
Browse files

Sybase driver option added provided by spiridou from illumina

parent 189ab7d6
......@@ -219,18 +219,43 @@ sub connect {
'odbc_cursortype' => 2});
};
}
elsif ( $self->driver() eq "Sybase" ) {
$dsn = "DBI:" . $self->driver() .
":server=" . $self->host() .
";database=" . $self->dbname() .
";tdsLevel=CS_TDS_495";
eval{ $dbh = DBI->connect($dsn,
$self->username(),
$self->password(),
{'LongTruncOk' => 1,
'RaiseError' => 1,
'PrintError' => 0});
};
}
else{
$dsn = "DBI:" . $self->driver() .
":database=". $self->dbname() .
";host=" . $self->host() .
";port=" . $self->port();
":database=". $self->dbname() .
";host=" . $self->host() .
";port=" . $self->port();
eval{ $dbh = DBI->connect($dsn,
$self->username(),
$self->password(),
{'RaiseError' => 1});
};
}
};
}
if(!$dbh || $@ || !$dbh->ping()) {
warn("Could not connect to database " . $self->dbname() .
" as user " . $self->username() .
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment