Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ensembl-gh-mirror
ensembl
Commits
346a350f
Commit
346a350f
authored
Jul 16, 2008
by
Ian Longden
Browse files
Sybase driver option added provided by spiridou from illumina
parent
189ab7d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
6 deletions
+31
-6
modules/Bio/EnsEMBL/DBSQL/DBConnection.pm
modules/Bio/EnsEMBL/DBSQL/DBConnection.pm
+31
-6
No files found.
modules/Bio/EnsEMBL/DBSQL/DBConnection.pm
View file @
346a350f
...
...
@@ -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
()
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment