dialect/sql/sqlgraph: fix incorrect arg-list handling in entql

Fixed #1376
This commit is contained in:
Ariel Mashraki
2021-03-22 20:20:17 +02:00
committed by Ariel Mashraki
parent a3c536402a
commit 56a0cf1e8b
2 changed files with 3 additions and 1 deletions

View File

@@ -282,7 +282,7 @@ func args(b *sql.Builder, v *entql.Value) {
b.Arg(v.V)
return
}
b.Args(vs...)
b.WriteByte('(').Args(vs...).WriteByte(')')
}
// expect panics if the condition is false.