Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Emmanuel QUEVILLON
BIGSdb
Commits
900aec6f
Commit
900aec6f
authored
Jan 14, 2015
by
Keith Jolley
Browse files
Rafactor SQL.
parent
11d282fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/BIGSdb/CurateAddPage.pm
View file @
900aec6f
...
...
@@ -706,7 +706,7 @@ sub _next_id_profiles {
sub
id_exists
{
my
(
$self
,
$id
)
=
@_
;
my
$num
=
$self
->
{'
datastore
'}
->
run_
simple_
query
(
"
SELECT
COUNT(*)
FROM
$self
->{'system'}->{'view'} WHERE id=?
",
$id
)
->
[
0
]
;
my
$num
=
$self
->
{'
datastore
'}
->
run_query
(
"
SELECT
EXISTS(SELECT *
FROM
$self
->{'system'}->{'view'} WHERE id=?
)
",
$id
);
return
$num
;
}
...
...
Write
Preview
Supports
Markdown
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