dblayeroo: catch the exception in prepare request and manage it in DBException

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3637 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2017-05-11 08:23:25 +00:00
parent c67658f1fe
commit f932529077

View File

@@ -2165,7 +2165,16 @@ class dblayeroo
{
$text = "";
if (!$textForm)
$st = self::$instance[$this->dsn]->prepare ($sql);
{
try
{
$st = self::$instance[$this->dsn]->prepare ($sql);
}
catch (\Exception $e)
{
$this->DBException ($e->getMessage ());
}
}
foreach ($this->whereGetValues () as $hash=>$val)
{
$field = $val["field"];