Commit 901496ae authored by qgarnier's avatar qgarnier
Browse files

Merge pull request #305 from Tpo76/patch-1

Fix sql request for sql matching meta_service
parents d0142cdf eba3608b
...@@ -183,7 +183,7 @@ sub getDataSourceType() { ...@@ -183,7 +183,7 @@ sub getDataSourceType() {
################################################## ##################################################
sub retrieve_by_regexp() { sub retrieve_by_regexp() {
my $row2; my $row2;
my $query2 = "SELECT s.perfdata FROM services s WHERE s.description LIKE '".$regexp."' AND s.enable = 1"; my $query2 = "SELECT s.perfdata FROM services s WHERE s.description LIKE '".$regexp."' AND s.enabled = 1";
my $DBRES2 = $db_centstorage->prepare($query2); my $DBRES2 = $db_centstorage->prepare($query2);
if (!$DBRES2->execute) { if (!$DBRES2->execute) {
die "Error:" . $DBRES2->errstr . "\n"; die "Error:" . $DBRES2->errstr . "\n";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment