- 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:
mcndave committed 2020-03-31 13:24:15 -04:00
1 parent f98cb2ded0
commit 84da4dbb7b
9 files changed
+111 -20

No files matched your search

+15 -2
View File
@@ -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;