Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Fix deletion sql error
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Oct 4, 2016
1 parent 5964a72 commit b56a0e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/src/plugins/mq.sql/SqlMessageExchanger.php
Expand Up @@ -138,14 +138,14 @@ public function __destruct()
$args = array_merge($args, $insertValues);
call_user_func_array(array("dibi", "query"), $args);
}catch(\DibiException $dE){
$this->logError(__CLASS__, $dE->getMessage());
$this->logError(__CLASS__, $dE->getMessage().". SQL query was: ".$dE->getMessage());
}
}
if(count($deletes)){
try{
dibi::query('DELETE FROM [ajxp_mq_queues] WHERE [channel_name] IN %s', $deletes);
dibi::query('DELETE FROM [ajxp_mq_queues] WHERE [channel_name] IN (%s)', $deletes);
}catch(\DibiException $dE){
$this->logError(__CLASS__, $dE->getMessage());
$this->logError(__CLASS__, $dE->getMessage().". SQL query was: ".$dE->getMessage());
}
}
}
Expand Down

0 comments on commit b56a0e2

Please sign in to comment.