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
0b65502a
Commit
0b65502a
authored
18 years ago
by
Felix Kokocinski
Browse files
Options
Downloads
Patches
Plain Diff
added update_ditag() method
parent
638b55ad
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/Bio/EnsEMBL/Map/DBSQL/DitagAdaptor.pm
+26
-1
26 additions, 1 deletion
modules/Bio/EnsEMBL/Map/DBSQL/DitagAdaptor.pm
with
26 additions
and
1 deletion
modules/Bio/EnsEMBL/Map/DBSQL/DitagAdaptor.pm
+
26
−
1
View file @
0b65502a
...
...
@@ -269,7 +269,8 @@ sub store {
$sth
->
execute
(
$ditag
->
name
,
$ditag
->
type
);
if
(
$sth
->
fetchrow
()
>
0
){
warning
(
"
Ditag with name/type
"
.
$ditag
->
name
.
"
/
"
.
$ditag
->
type
.
"
is already stored in this database.
"
);
"
is already stored in this database.
\n
"
.
"
Use
$da
->update_ditag() instead.
");
next
TAG
;
}
...
...
@@ -329,6 +330,30 @@ sub print_creation {
}
=head2 update_ditag
Arg [1] : ditag to update
Description: update an existing ditag with new values
Returntype : 1 on success
=cut
sub
update_ditag
{
my
(
$self
,
$ditag
)
=
@_
;
my
$sth
=
$self
->
prepare
(
"
UPDATE ditag SET name=?, type=?, tag_count=?, sequence=? where ditag_id=?;
"
);
my
$result
=
$sth
->
execute
(
$ditag
->
name
,
$ditag
->
type
,
$ditag
->
tag_count
,
$ditag
->
sequence
,
$ditag
->
dbID
,
);
return
$result
;
}
=head2 list_dbIDs
Args : None
...
...
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