modifyRulesSql := update public."casbin_rule_auth" set v2=:v2 where v0=:v0 and v1=:v1
_, err = db.NamedExec(testSql, roleAuthPs)
when i use update, got this error: pq: got 15 parameters but the statement requires 3
testSql := insert into public."casbin_rule_auth"(p_type, v0, v1, v2) values('p', :v0, :v1, :v2)
_, err = db.NamedExec(testSql, roleAuthPs)
if i use insert, it can work
how can i solve this problem.i want to batch update,how can i do?
modifyRulesSql :=
update public."casbin_rule_auth" set v2=:v2 where v0=:v0 and v1=:v1
_, err = db.NamedExec(testSql, roleAuthPs) when i use update, got this error: pq: got 15 parameters but the statement requires 3testSql :=
insert into public."casbin_rule_auth"(p_type, v0, v1, v2) values('p', :v0, :v1, :v2)
_, err = db.NamedExec(testSql, roleAuthPs) if i use insert, it can workhow can i solve this problem.i want to batch update,how can i do?