1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2024-12-22 21:22:40 +00:00

Work around more MySQL stupidity

This commit is contained in:
J. King 2021-03-02 11:04:42 -05:00
parent 5cfa01f4d5
commit 6b7257a6c4

View file

@ -16,9 +16,9 @@ trait PDOError {
$err = $this->db->errorInfo();
}
if ($err[0] === "HY000") {
return static::buildEngineException($err[1], $err[2]);
return static::buildEngineException((string) $err[1], (string) $err[2]);
} else {
return static::buildStandardException($err[0], $err[2]);
return static::buildStandardException((string) $err[0], (string) $err[2]);
}
}
}