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-hive
Commits
076af646
Commit
076af646
authored
Mar 27, 2012
by
Leo Gordon
Browse files
a typo in comments
parent
a81c8863
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
modules/Bio/EnsEMBL/Hive/DBSQL/AnalysisJobAdaptor.pm
modules/Bio/EnsEMBL/Hive/DBSQL/AnalysisJobAdaptor.pm
+1
-1
modules/Bio/EnsEMBL/Hive/DBSQL/BaseAdaptor.pm
modules/Bio/EnsEMBL/Hive/DBSQL/BaseAdaptor.pm
+1
-1
No files found.
modules/Bio/EnsEMBL/Hive/DBSQL/AnalysisJobAdaptor.pm
View file @
076af646
...
...
@@ -126,7 +126,7 @@ sub CreateNewJob {
or
die
"
Coule not run
\n\t
$sql
\n
with data:
\n\t
(
"
.
join
('
,
',
@values
)
.
'
)
';
my
$job_id
;
if
(
$return_code
>
0
)
{
# <--- for the same reason we have to be expli
tic
ly numeric here:
if
(
$return_code
>
0
)
{
# <--- for the same reason we have to be expli
cit
ly numeric here:
$job_id
=
$dbc
->
db_handle
->
last_insert_id
(
undef
,
undef
,
'
job
',
'
job_id
');
$sth
->
finish
;
...
...
modules/Bio/EnsEMBL/Hive/DBSQL/BaseAdaptor.pm
View file @
076af646
...
...
@@ -314,7 +314,7 @@ sub store {
my
$return_code
=
$this_sth
->
execute
(
@$values_being_stored
)
# using $return_code in boolean context allows to skip the value '0E0' ('no rows affected') that Perl treats as zero but regards as true:
or
die
"
Could not store fields
\n\t
{
$column_key
}
\n
with data:
\n\t
(
"
.
join
('
,
',
@$values_being_stored
)
.
'
)
';
if
(
$return_code
>
0
)
{
# <--- for the same reason we have to be expli
tic
ly numeric here
if
(
$return_code
>
0
)
{
# <--- for the same reason we have to be expli
cit
ly numeric here
$self
->
mark_stored
(
$object
,
$self
->
dbc
->
db_handle
->
last_insert_id
(
undef
,
undef
,
$table_name
,
$autoinc_id
)
);
}
}
...
...
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