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
e257b7de
Commit
e257b7de
authored
Mar 17, 2016
by
Matthieu Muffato
Browse files
bugfix [pgsql]: "argument of AND must be type boolean, not type integer"
parent
9d7edf37
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
modules/Bio/EnsEMBL/Hive/DBSQL/AnalysisJobAdaptor.pm
modules/Bio/EnsEMBL/Hive/DBSQL/AnalysisJobAdaptor.pm
+1
-1
No files found.
modules/Bio/EnsEMBL/Hive/DBSQL/AnalysisJobAdaptor.pm
View file @
e257b7de
...
...
@@ -541,7 +541,7 @@ sub release_and_age_job {
$self
->
dbc
->
do
(
"
UPDATE job
"
.
(
(
$self
->
dbc
->
driver
eq
'
pgsql
')
?
"
SET status = CAST(CASE WHEN
$may_retry
AND (retry_count<
$max_retry_count
) THEN 'READY' ELSE 'FAILED' END AS jw_status),
"
?
"
SET status = CAST(CASE WHEN
(
$may_retry
!= 0)
AND (retry_count<
$max_retry_count
) THEN 'READY' ELSE 'FAILED' END AS jw_status),
"
:
"
SET status = CASE WHEN
$may_retry
AND (retry_count<
$max_retry_count
) THEN 'READY' ELSE 'FAILED' END,
"
)
.
qq{
retry_count=retry_count+1,
...
...
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