MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / TestLateralTableRef

Function TestLateralTableRef

pkg/sql/ast/sql_coverage_test.go:768–777  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

766}
767
768func TestLateralTableRef(t *testing.T) {
769 stmt := &SelectStatement{
770 Columns: []Expression{&Identifier{Name: "x"}},
771 From: []TableReference{{Lateral: true, Subquery: &SelectStatement{Columns: []Expression{&Identifier{Name: "a"}}}, Alias: "sub"}},
772 }
773 sql := stmt.SQL()
774 if !strings.Contains(sql, "LATERAL") {
775 t.Errorf("got: %s", sql)
776 }
777}
778
779func TestOrderByNullsLast(t *testing.T) {
780 stmt := &SelectStatement{

Callers

nothing calls this directly

Calls 2

SQLMethod · 0.95
ErrorfMethod · 0.65

Tested by

no test coverage detected