picodb: include error code in SQLException error message

This commit is contained in:
Joe Nahmias
2022-08-25 06:20:34 -04:00
committed by Frédéric Guillot
parent 64f589f759
commit 427abb9961

View File

@@ -350,6 +350,6 @@ class StatementHandler
return false;
}
throw new SQLException('SQL Error: '.$e->getMessage());
throw new SQLException('SQL Error['.$e->getCode().']: '.$e->getMessage());
}
}