mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-23 08:35:35 +08:00
@@ -84,6 +84,7 @@ class DB
|
|||||||
* @throws DbException
|
* @throws DbException
|
||||||
*/
|
*/
|
||||||
public static function rawQuery(string $line, $params = [], $fetch_mode = ZM_DEFAULT_FETCH_MODE) {
|
public static function rawQuery(string $line, $params = [], $fetch_mode = ZM_DEFAULT_FETCH_MODE) {
|
||||||
|
if (!is_array($params)) $params = [$params];
|
||||||
Console::debug("MySQL: " . $line . " | " . implode(", ", $params));
|
Console::debug("MySQL: " . $line . " | " . implode(", ", $params));
|
||||||
try {
|
try {
|
||||||
$conn = SqlPoolStorage::$sql_pool->get();
|
$conn = SqlPoolStorage::$sql_pool->get();
|
||||||
|
|||||||
Reference in New Issue
Block a user