picodb: include error code in SQLException error message
This commit is contained in:
committed by
Frédéric Guillot
parent
64f589f759
commit
427abb9961
@@ -350,6 +350,6 @@ class StatementHandler
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new SQLException('SQL Error: '.$e->getMessage());
|
throw new SQLException('SQL Error['.$e->getCode().']: '.$e->getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user