Skip to content

Commit fdd7623

Browse files
author
Masiukevich Maksim
committed
incorrect exception throws
1 parent 8662634 commit fdd7623

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/Sql/AmpPosgreSQL/AmpPostgreSQLResultSet.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,15 +118,10 @@ function (): \Generator
118118
{
119119
return (string) $value;
120120
}
121-
122-
throw new \RuntimeException('Empty last insert id result');
123121
}
124122
}
125123

126-
// @codeCoverageIgnoreStart
127-
throw new \RuntimeException(
128-
\sprintf('Unexpected result set type: `%s`', \get_class($this->originalResultSet))
129-
);
124+
return null;
130125
}
131126
catch (\Throwable $throwable)
132127
{

0 commit comments

Comments
 (0)