mirror of
https://github.com/dg/dibi.git
synced 2025-10-23 02:36:04 +02:00
* SET CHARACTER SET -> SET NAMES
* %p bug
This commit is contained in:
@@ -59,7 +59,7 @@ class DibiMySqliDriver extends DibiDriver {
|
||||
));
|
||||
|
||||
if (!empty($config['charset']))
|
||||
mysqli_query($conn, 'SET CHARACTER SET '.$config['charset']);
|
||||
mysqli_query($conn, "SET NAMES '" . $config['charset'] . "'");
|
||||
|
||||
$obj = new self($config);
|
||||
$obj->conn = $conn;
|
||||
|
Reference in New Issue
Block a user