Add LATERAL query support

This commit is contained in:
go-jet 2021-05-03 19:31:04 +02:00
parent 4ef0113f6b
commit 0f773b26d6
6 changed files with 224 additions and 12 deletions

View file

@ -3,7 +3,12 @@ package postgres
import "testing"
func TestLATERAL(t *testing.T) {
assertSerialize(t, LATERAL(SELECT(Int(1)), "lat1"), `LATERAL (
assertSerialize(t,
LATERAL(
SELECT(Int(1)),
).AS("lat1"),
`LATERAL (
SELECT $1
) AS lat1`)
}