- Bugfixes done linked to SearchRequest and Searchable features.
- Fixed a bug introduced into PdoObject exception on latest commit. - Corrected the open() close() enclosure of query condition.
This commit is contained in:
1 parent
f98cb2ded0
commit
84da4dbb7b
9 files changed
+111
-20
No files matched your search
@@ -16,7 +16,13 @@ class PdoObject extends PDO {
|
||||
return $statement;
|
||||
}
|
||||
} catch (\PDOException $e) {
|
||||
throw $e;
|
||||
switch ( $e->getCode() ) {
|
||||
case 42000:
|
||||
throw new \PdoException($e->getMessage() . " `$sql` with data:" . json_encode($parameters));
|
||||
|
||||
default:
|
||||
throw $e;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +32,14 @@ class PdoObject extends PDO {
|
||||
return $this->execute($statement, $parameters, true);
|
||||
}
|
||||
} catch (\PDOException $e) {
|
||||
throw $e;
|
||||
switch ( $e->getCode() ) {
|
||||
case 42000:
|
||||
throw new \PdoException($e->getMessage() . " `$sql` with data:" . json_encode($parameters));
|
||||
|
||||
default:
|
||||
throw $e;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return null;
|
||||
|
||||
Reference in new issue
Block a user