From 427abb99611925add8cc79d757ff0e5b48a31a41 Mon Sep 17 00:00:00 2001 From: Joe Nahmias Date: Thu, 25 Aug 2022 06:20:34 -0400 Subject: [PATCH] picodb: include error code in SQLException error message --- libs/picodb/lib/PicoDb/StatementHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); } }