fix(load_path): 验证SQL的%%改${}$占位符——sqlor裸%当格式占位符崩

This commit is contained in:
yumoqing 2026-08-31 15:53:36 +08:00
parent 51b92210db
commit 6fa1dddd11

View File

@ -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}")