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

Function TestColumns_UnsupportedStatement

pkg/transform/columns_test.go:89–95  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

87}
88
89func TestColumns_UnsupportedStatement(t *testing.T) {
90 stmt := mustParse(t, "UPDATE users SET name = 'bob'")
91 err := Apply(stmt, AddColumn(&ast.Identifier{Name: "x"}))
92 if err == nil {
93 t.Fatal("expected error for UPDATE")
94 }
95}

Callers

nothing calls this directly

Calls 3

mustParseFunction · 0.85
ApplyFunction · 0.85
AddColumnFunction · 0.85

Tested by

no test coverage detected