Skip to content

Commit

Permalink
Exception "Unable to fetch row" optimiert (#5572)
Browse files Browse the repository at this point in the history
  • Loading branch information
gharlan committed Feb 12, 2023
1 parent 2d4749e commit d328059
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redaxo/src/core/lib/sql/sql.php
Expand Up @@ -820,7 +820,7 @@ public function getRow($fetchType = PDO::FETCH_ASSOC)
if (!$this->lastRow) {
$lastRow = $this->stmt->fetch($fetchType);
if (false === $lastRow) {
throw new rex_sql_exception('Unable to fetch row.');
throw new rex_sql_exception('Unable to fetch row for statement "'.$this->query.'"', null, $this);
}
$this->lastRow = $lastRow;
}
Expand Down

0 comments on commit d328059

Please sign in to comment.