(t *testing.T)
| 87 | } |
| 88 | |
| 89 | func 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 | } |