(t *testing.T)
| 145 | } |
| 146 | |
| 147 | func TestAddSetClause_CaseInsensitiveColumn(t *testing.T) { |
| 148 | stmt := mustParse(t, "UPDATE users SET Name = 'old'") |
| 149 | |
| 150 | err := Apply(stmt, AddSetClause("name", "'new'")) |
| 151 | if err != nil { |
| 152 | t.Fatalf("AddSetClause: %v", err) |
| 153 | } |
| 154 | |
| 155 | out := format(stmt) |
| 156 | assertContains(t, out, "new") |
| 157 | assertNotContains(t, out, "old") |
| 158 | } |
| 159 | |
| 160 | func TestAddSetClause_WithNumericValue(t *testing.T) { |
| 161 | stmt := mustParse(t, "UPDATE counters SET total = 0") |
nothing calls this directly
no test coverage detected