调整部分前端布局和后端增删改逻辑
This commit is contained in:
@@ -6,7 +6,7 @@ from types import SimpleNamespace
|
||||
from typing import get_type_hints
|
||||
from unittest.mock import AsyncMock, MagicMock, patch
|
||||
|
||||
from sqlalchemy.dialects import postgresql
|
||||
from sqlalchemy.dialects import mysql
|
||||
from sqlalchemy.exc import IntegrityError
|
||||
from sqlalchemy.ext.asyncio import AsyncSession
|
||||
|
||||
@@ -77,7 +77,7 @@ def make_batch(
|
||||
|
||||
def compile_sql(statement: object) -> str:
|
||||
return ' '.join(
|
||||
str(statement.compile(dialect=postgresql.dialect(), compile_kwargs={'literal_binds': True})).split()
|
||||
str(statement.compile(dialect=mysql.dialect(), compile_kwargs={'literal_binds': True})).split()
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user