.
This commit is contained in:
@@ -22,6 +22,12 @@ class SQL {
|
|||||||
if ($this->h->connect_errno) {
|
if ($this->h->connect_errno) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
// Keep prepared statement parameters and text columns on the same UTF-8
|
||||||
|
// encoding. Without this, valid UTF-8 input can be rejected by utf8mb4
|
||||||
|
// columns depending on the server's connection default.
|
||||||
|
if (! $this->h->set_charset ( 'utf8mb4' )) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
public function get(string $que, string $t = '', mixed $p = array ()): array|false {
|
public function get(string $que, string $t = '', mixed $p = array ()): array|false {
|
||||||
|
|||||||
Reference in New Issue
Block a user