Skip complex expression parenthesis wrap for function parameters.
This commit is contained in:
parent
a506a96d6a
commit
7377e078cd
12 changed files with 102 additions and 83 deletions
12
postgres/functions_test.go
Normal file
12
postgres/functions_test.go
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
package postgres
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestROW(t *testing.T) {
|
||||
assertSerialize(t, ROW(SELECT(Int(1))), `ROW((
|
||||
SELECT $1
|
||||
))`)
|
||||
assertSerialize(t, ROW(Int(1), SELECT(Int(2)), Float(11.11)), `ROW($1, (
|
||||
SELECT $2
|
||||
), $3)`)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue