diff --git a/libs/picodb/lib/PicoDb/StatementHandler.php b/libs/picodb/lib/PicoDb/StatementHandler.php index f8ba53bd8..c968478cc 100644 --- a/libs/picodb/lib/PicoDb/StatementHandler.php +++ b/libs/picodb/lib/PicoDb/StatementHandler.php @@ -350,6 +350,6 @@ class StatementHandler return false; } - throw new SQLException('SQL Error: '.$e->getMessage()); + throw new SQLException('SQL Error['.$e->getCode().']: '.$e->getMessage()); } }