fix database buig
This commit is contained in:
1 parent
ab4dc6fb81
commit
bc57b358f9
1 file changed
+4
-4
@@ -33,11 +33,11 @@ engine = create_async_engine(
|
|||||||
echo=False,
|
echo=False,
|
||||||
connect_args={
|
connect_args={
|
||||||
"connect_timeout": 10,
|
"connect_timeout": 10,
|
||||||
"read_timeout": 30,
|
"read_timeout": 30, # asyncmy에는 write_timeout이 없다
|
||||||
"write_timeout": 30,
|
|
||||||
"charset": "utf8mb4",
|
"charset": "utf8mb4",
|
||||||
"sql_mode": "STRICT_TRANS_TABLES,NO_ZERO_DATE,NO_ZERO_IN_DATE",
|
# sql_mode는 asyncmy가 따옴표 없이 끼워 넣어 문법 오류가 나므로 여기서 같이 건다
|
||||||
"init_command": "SET SESSION time_zone = '+00:00'",
|
"init_command": ("SET SESSION time_zone = '+00:00', "
|
||||||
|
"sql_mode = 'STRICT_TRANS_TABLES,NO_ZERO_DATE,NO_ZERO_IN_DATE'"),
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user