fix(load_path): 验证SQL的%%改${}$占位符——sqlor裸%当格式占位符崩
This commit is contained in:
parent
51b92210db
commit
6fa1dddd11
@ -104,7 +104,8 @@ async def register():
|
||||
# Verify
|
||||
async with DBPools().sqlorContext("pipeline") as sor:
|
||||
cnt = await sor.sqlExe(
|
||||
"SELECT COUNT(*) as n FROM permission WHERE path LIKE '/pipeline%' OR path LIKE '/showcase%'", {})
|
||||
"SELECT COUNT(*) as n FROM permission WHERE path LIKE ${p1}$ OR path LIKE ${p2}$",
|
||||
{"p1": "/pipeline%", "p2": "/showcase%"})
|
||||
print(f"Total pipeline permissions: {cnt[0].n}")
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user