Skip to content

Commit e615c95

Browse files
authored
Merge pull request #132 fix error with empty rows from nastradamus39/patch-2
2 parents c0bffdd + 2913b1d commit e615c95

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
### Bugs
2+
13
* fixed case with unexisting rows in query result
24

35
## 1.13.1

src/QueryResult.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function __construct($result)
4040
$data = json_decode($set->serializeToJsonString(), true);
4141

4242
$this->fillColumns($data['columns']);
43-
$this->fillRows($data['rows']);
43+
$this->fillRows($data['rows'] ?? []);
4444
$this->truncated = $data['truncated'] ?? false;
4545
}
4646
}

0 commit comments

Comments
 (0)