Skip to content

Commit

Permalink
cursot result to lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
Aidyn Makhataev committed Feb 5, 2020
1 parent b1d0724 commit c3d56a2
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/Tarantool/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,16 @@ public function table($table, $as = null)
*/
public function cursor($query, $bindings = [], $useReadPdo = true)
{
/** @var SqlQueryResult $result */
$result = $this->run($query, $bindings, function () {});
/** @var SqlQueryResult $queryResult */
$queryResult = $this->run($query, $bindings, function () {});

$metaData = $queryResult->getMetadata();

array_walk_recursive($metaData, function (&$value) {
$value = strtolower($value);
});

$result = new SqlQueryResult($queryResult->getData(), $metaData);

return $result->getIterator();
}
Expand Down

0 comments on commit c3d56a2

Please sign in to comment.