fix some sql bugs

This commit is contained in:
whale
2020-06-10 14:39:30 +08:00
parent 3287b96f30
commit af89c1b1f6
5 changed files with 9 additions and 5 deletions

View File

@@ -102,7 +102,7 @@ class WorkerStartEvent implements SwooleEvent
->withCharset('utf8mb4')
->withUsername($sql["sql_username"])
->withPassword($sql["sql_password"])
->withOptions([PDO::ATTR_STRINGIFY_FETCHES => false])
->withOptions($sql["sql_options"] ?? [PDO::ATTR_STRINGIFY_FETCHES => false])
);
DB::initTableList();
}