1

如果我在 sql 查询中使用任何字符串文字,我会收到原始 sql 错误。

http://localhost:3000/db/test
{
"sql": "select * from party where party_name='xxx' "
}

error:

{"length":92,"name":"error","severity":"ERROR","code":"42703","position":"40","file":"parse_expr.c","line":"768","routine":"transformColumnRef"}

but the request with integer working fine..ex:
http://localhost:3000/db/test
{
"sql": "select * from party where id=1"
}
4

0 回答 0