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:
@@ -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"];
|
||||
|
||||
Reference in New Issue
Block a user