Add regression test

This commit is contained in:
Edouard Schweisguth
2025-06-25 11:27:06 +02:00
parent e9d31b7960
commit a0cb9722f3
+4
View File
@@ -417,3 +417,7 @@ func ExampleSelectBuilder_LateralAs() {
// Output:
// SELECT salesperson.name, max_sale.amount, max_sale.customer_name FROM salesperson, LATERAL (SELECT amount, customer_name FROM all_sales WHERE all_sales.salesperson_id = salesperson.id ORDER BY amount DESC LIMIT ?) AS max_sale
}
func TestNilPointerWhere(t *testing.T) {
NewSelectBuilder().SQL("$0").Build()
}