Permalink
Browse files

Fix deletion sql error

  • Loading branch information...
1 parent 5964a72 commit b56a0e275db9e1996e861da8937e5b708305572f @cdujeu cdujeu committed Oct 4, 2016
Showing with 3 additions and 3 deletions.
  1. +3 −3 core/src/plugins/mq.sql/SqlMessageExchanger.php
@@ -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());
}
}
}

0 comments on commit b56a0e2

Please sign in to comment.