Skip to content

Commit 0151377

Browse files
committed
Update PdoPgSqlQueryReflector.php
1 parent 3160612 commit 0151377

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/QueryReflection/PdoPgSqlQueryReflector.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ protected function checkInformationSchema(string $tableName): Iterator
122122
foreach ($result as $row) {
123123
$default = $row['COLUMN_DEFAULT'] ?? '';
124124
$columnName = $row['COLUMN_NAME'];
125+
if ($columnName === null) {
126+
throw new ShouldNotHappenException('Failed to get column name');
127+
}
125128
$isNullable = 'YES' === $row['IS_NULLABLE'];
126129

127130
if (! $isNullable) {

0 commit comments

Comments
 (0)