fix execute
This commit is contained in:
parent
2502cc87e7
commit
691c61fb2d
14
Query.php
14
Query.php
|
@ -85,11 +85,21 @@ class Query extends Component implements QueryInterface
|
|||
{
|
||||
$options = [
|
||||
'query' => $aql,
|
||||
'bindValues' => $bindValues,
|
||||
'bindVars' => $bindValues,
|
||||
];
|
||||
$options = ArrayHelper::merge($params, $options);
|
||||
$statement = $this->getStatement($options);
|
||||
$statement->execute();
|
||||
$token = $this->getRawAql($statement);
|
||||
Yii::info($token, 'devgroup\arangodb\Query::query');
|
||||
try {
|
||||
Yii::beginProfile($token, 'devgroup\arangodb\Query::query');
|
||||
$cursor = $statement->execute();
|
||||
Yii::endProfile($token, 'devgroup\arangodb\Query::query');
|
||||
} catch (\Exception $ex) {
|
||||
Yii::endProfile($token, 'devgroup\arangodb\Query::query');
|
||||
throw new \Exception($ex->getMessage(), (int) $ex->getCode(), $ex);
|
||||
}
|
||||
return $this->prepareResult($cursor->getAll());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue