two TODO closed for exceptions
This commit is contained in:
@ -25,7 +25,7 @@ class MySQLiStatement extends DbStatement
|
||||
}
|
||||
if (count($this->map) > 0) {
|
||||
if (!is_string($param) && !is_int($param)) {
|
||||
throw new GeneralException('Placeholder must be an array or string');
|
||||
throw new GeneralException('Placeholder must be an integer or string');
|
||||
}
|
||||
if (is_object($value) && ! ($value instanceof DbExpr)) {
|
||||
throw new GeneralException('Objects excepts DbExpr not allowed.');
|
||||
|
Reference in New Issue
Block a user