|
@@ -138,7 +138,11 @@ function processFile($full_path, $id_company)
|
|
|
':file_hash' => $file_hash
|
|
':file_hash' => $file_hash
|
|
|
);
|
|
);
|
|
|
|
|
|
|
|
- if(!$stmt_file->execute($params))
|
|
|
|
|
|
|
+ try
|
|
|
|
|
+ {
|
|
|
|
|
+ $stmt_file->execute($params);
|
|
|
|
|
+ }
|
|
|
|
|
+ catch(Exception $e)
|
|
|
{
|
|
{
|
|
|
echo "PDO::errorInfo():" . PHP_EOL;
|
|
echo "PDO::errorInfo():" . PHP_EOL;
|
|
|
print_r($dbh->errorInfo());
|
|
print_r($dbh->errorInfo());
|