(t *testing.T)
| 205 | } |
| 206 | |
| 207 | func TestTSQL_NWithoutQuoteIsIdentifier(t *testing.T) { |
| 208 | // N not followed by quote should be a regular identifier |
| 209 | tkz := newSQLServerTokenizer(t) |
| 210 | tokens := tokenize(t, tkz, "N") |
| 211 | if len(tokens) != 1 { |
| 212 | t.Fatalf("expected 1 token, got %d", len(tokens)) |
| 213 | } |
| 214 | // N should be an identifier (not a keyword in the map) |
| 215 | if tokens[0].Token.Type != models.TokenTypeIdentifier { |
| 216 | t.Errorf("expected TokenTypeIdentifier for bare N, got %v", tokens[0].Token.Type) |
| 217 | } |
| 218 | } |
| 219 | |
| 220 | func TestTSQL_NStringNotInPostgreSQL(t *testing.T) { |
| 221 | // In PostgreSQL dialect, N'hello' should be IDENTIFIER + STRING (two tokens) |
nothing calls this directly
no test coverage detected