From dc81255b0be9cf35724b18ba090919d6a0cc1897 Mon Sep 17 00:00:00 2001 From: Georgi Hristov Date: Fri, 30 Oct 2020 16:00:54 +0100 Subject: [PATCH] [update] to latest dsql --- src-schema/PhpunitTestCase.php | 2 +- src/Persistence/Sql/Query.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src-schema/PhpunitTestCase.php b/src-schema/PhpunitTestCase.php index 2edc29e16..4139c11f7 100644 --- a/src-schema/PhpunitTestCase.php +++ b/src-schema/PhpunitTestCase.php @@ -171,7 +171,7 @@ public function getDb(array $tableNames = null, bool $noId = false): array $data2 = []; $s = $this->db->dsql(); - $data = $s->table($table)->get(); + $data = $s->table($table)->getRows(); foreach ($data as &$row) { foreach ($row as &$val) { diff --git a/src/Persistence/Sql/Query.php b/src/Persistence/Sql/Query.php index fe43bada8..297762be7 100644 --- a/src/Persistence/Sql/Query.php +++ b/src/Persistence/Sql/Query.php @@ -213,7 +213,7 @@ protected function doExecute() protected function doGet(): array { - return $this->dsql->get(); + return $this->dsql->getRows(); } protected function doGetRow(): ?array