Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ensembl
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
ensembl
Commits
d772c769
Commit
d772c769
authored
16 years ago
by
Andreas Kusalananda Kähäri
Browse files
Options
Downloads
Patches
Plain Diff
Fix errors found by unit-tests.
parent
f6587407
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/Bio/EnsEMBL/DBSQL/BaseMetaContainer.pm
+13
-13
13 additions, 13 deletions
modules/Bio/EnsEMBL/DBSQL/BaseMetaContainer.pm
modules/Bio/EnsEMBL/DBSQL/SliceAdaptor.pm
+4
-4
4 additions, 4 deletions
modules/Bio/EnsEMBL/DBSQL/SliceAdaptor.pm
with
17 additions
and
17 deletions
modules/Bio/EnsEMBL/DBSQL/BaseMetaContainer.pm
+
13
−
13
View file @
d772c769
...
...
@@ -245,7 +245,7 @@ sub delete_key {
.
'
WHERE meta_key = ?
'
.
'
AND species_id IS NULL
'
);
$sth
->
bin_param
(
1
,
$key
,
SQL_VARCHAR
);
$sth
->
bin
d
_param
(
1
,
$key
,
SQL_VARCHAR
);
$sth
->
execute
();
}
else
{
my
$sth
=
...
...
@@ -253,8 +253,8 @@ sub delete_key {
.
'
WHERE meta_key = ?
'
.
'
AND species_id = ?
'
);
$sth
->
bin_param
(
1
,
$key
,
SQL_VARCHAR
);
$sth
->
bin_param
(
2
,
$self
->
species_id
(),
SQL_INTEGER
);
$sth
->
bin
d
_param
(
1
,
$key
,
SQL_VARCHAR
);
$sth
->
bin
d
_param
(
2
,
$self
->
species_id
(),
SQL_INTEGER
);
$sth
->
execute
();
}
...
...
@@ -287,8 +287,8 @@ sub delete_key_value {
.
'
AND meta_value = ?
'
.
'
AND species_id IS NULL
'
);
$sth
->
bin_param
(
1
,
$key
,
SQL_VARCHAR
);
$sth
->
bin_param
(
2
,
$value
,
SQL_VARCHAR
);
$sth
->
bin
d
_param
(
1
,
$key
,
SQL_VARCHAR
);
$sth
->
bin
d
_param
(
2
,
$value
,
SQL_VARCHAR
);
$sth
->
execute
();
}
else
{
my
$sth
=
...
...
@@ -297,9 +297,9 @@ sub delete_key_value {
.
'
AND meta_value = ?
'
.
'
AND species_id = ?
'
);
$sth
->
bin_param
(
1
,
$key
,
SQL_VARCHAR
);
$sth
->
bin_param
(
2
,
$value
,
SQL_VARCHAR
);
$sth
->
bin_param
(
3
,
$self
->
species_id
(),
SQL_INTEGER
);
$sth
->
bin
d
_param
(
1
,
$key
,
SQL_VARCHAR
);
$sth
->
bin
d
_param
(
2
,
$value
,
SQL_VARCHAR
);
$sth
->
bin
d
_param
(
3
,
$self
->
species_id
(),
SQL_INTEGER
);
$sth
->
execute
();
}
...
...
@@ -334,8 +334,8 @@ sub key_value_exists {
.
'
AND meta_value = ?
'
.
'
AND species_id IS NULL
'
);
$sth
->
bin_param
(
1
,
$key
,
SQL_VARCHAR
);
$sth
->
bin_param
(
2
,
$value
,
SQL_VARCHAR
);
$sth
->
bin
d
_param
(
1
,
$key
,
SQL_VARCHAR
);
$sth
->
bin
d
_param
(
2
,
$value
,
SQL_VARCHAR
);
$sth
->
execute
();
}
else
{
$sth
=
...
...
@@ -345,9 +345,9 @@ sub key_value_exists {
.
'
AND meta_value = ?
'
.
'
AND species_id = ?
'
);
$sth
->
bin_param
(
1
,
$key
,
SQL_VARCHAR
);
$sth
->
bin_param
(
2
,
$value
,
SQL_VARCHAR
);
$sth
->
bin_param
(
3
,
$self
->
species_id
(),
SQL_INTEGER
);
$sth
->
bin
d
_param
(
1
,
$key
,
SQL_VARCHAR
);
$sth
->
bin
d
_param
(
2
,
$value
,
SQL_VARCHAR
);
$sth
->
bin
d
_param
(
3
,
$self
->
species_id
(),
SQL_INTEGER
);
$sth
->
execute
();
}
...
...
This diff is collapsed.
Click to expand it.
modules/Bio/EnsEMBL/DBSQL/SliceAdaptor.pm
+
4
−
4
View file @
d772c769
...
...
@@ -484,7 +484,7 @@ sub fetch_by_seq_region_id {
}
else
{
my
$sth
=
$self
->
prepare
(
"
SELECT sr.name, sr.coord_system_id, sr.length
"
.
"
FROM seq_region sr
"
.
"
FROM seq_region sr
"
.
"
WHERE sr.seq_region_id = ?
"
);
$sth
->
bind_param
(
1
,
$seq_region_id
,
SQL_INTEGER
);
...
...
@@ -665,7 +665,7 @@ sub fetch_all {
.
'
AND sr.coord_system_id = cs.coord_system_id
'
.
'
AND cs.species_id = ?
'
);
$sth
->
bind_param
(
1
,
$self
->
species_id
(),
SQL_INTEGER
);
$sth
2
->
bind_param
(
1
,
$self
->
species_id
(),
SQL_INTEGER
);
$sth2
->
execute
();
my
(
$seq_region_id
);
...
...
@@ -1556,10 +1556,10 @@ sub _build_exception_cache {
my
$sth
=
$self
->
prepare
(
'
SELECT ae.seq_region_id, ae.seq_region_start,
'
.
'
ae.seq_region_end, ae.exc_type, ae.exc_seq_region_id,
'
.
'
ae.exc_seq_region_start, ae.exc_seq_region_end
'
.
'
ae.exc_seq_region_start, ae.exc_seq_region_end
'
.
'
FROM assembly_exception ae,
'
.
'
seq_region sr, coord_system cs
'
.
'
WHERE sr.seq_region_id = a
r
.seq_region_id
'
.
'
WHERE sr.seq_region_id = a
e
.seq_region_id
'
.
'
AND sr.coord_system_id = cs.coord_system_id
'
.
'
AND cs.species_id = ?
'
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment