add getMysqlColumnInfo()

This commit is contained in:
xiaomlove
2021-06-06 13:41:05 +08:00
parent 38869ea196
commit eca64ec4c0
5 changed files with 42 additions and 16 deletions
+5 -1
View File
@@ -12,6 +12,10 @@ class DBMysqli implements DBInterface
if (mysqli_connect_errno()) {
throw new DatabaseException(mysqli_connect_error());
}
$mysqli->query("SET NAMES UTF8");
$mysqli->query("SET collation_connection = 'utf8_general_ci'");
$mysqli->query("SET sql_mode=''");
/* activate reporting */
$driver = new \mysqli_driver();
$driver->report_mode = MYSQLI_REPORT_ALL & ~MYSQLI_REPORT_INDEX;
@@ -82,4 +86,4 @@ class DBMysqli implements DBInterface
return $mysqliResult->free_result();
}
}
}