Skip to content

Commit

Permalink
Merge pull request #12 from chocofamilyme/aidyn.lazy_collection_support
Browse files Browse the repository at this point in the history
cursot result to lowercase
  • Loading branch information
AidynMakhataev authored Feb 5, 2020
2 parents f03982a + c3d56a2 commit a677588
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 a677588

Please sign in to comment.