fix: 🩹 fix error on empty argtypes list (no bindings needed)
This commit is contained in:
parent
6cb60a6652
commit
226d19e62c
1 changed files with 3 additions and 1 deletions
|
@ -46,7 +46,9 @@ class MySQLAdapter {
|
|||
|
||||
function _exec($qery, $argtypes, ...$args) {
|
||||
$stmt = $this->raw->prepare($qery);
|
||||
$stmt->bind_param($argtypes, ...$args);
|
||||
if($argtypes != ""){
|
||||
$stmt->bind_param($argtypes, ...$args);
|
||||
}
|
||||
$stmt->execute();
|
||||
|
||||
return $stmt->get_result();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue