Emulation for the mysqli behaviour when executing insert, update, ...

This commit is contained in:
Michael 2017-03-05 23:59:53 +00:00
parent 07516c318c
commit 2ea50d9c47
1 changed files with 3 additions and 0 deletions

View File

@ -334,6 +334,9 @@ class dba {
if (file_exists('dbfail.out')) {
file_put_contents('dbfail.out', datetime_convert() . "\n" . printable($sql) . ' returned false' . "\n" . $this->error . "\n", FILE_APPEND);
}
} elseif (($this->driver == 'pdo') AND (strtolower(substr($orig_sql, 0, 6)) != "select")) {
// mysqli separates the return value between "select" and "update" - pdo doesn't
$result = true;
}
if (($result === true) || ($result === false)) {