Function
test_invalid_syntax
(executor, exception_formatter)
Source from the content-addressed store, hash-verified
| 214 | |
| 215 | @dbtest |
| 216 | def test_invalid_syntax(executor, exception_formatter): |
| 217 | result = run( |
| 218 | executor, |
| 219 | "invalid syntax!", |
| 220 | exception_formatter=lambda x: main_exception_formatter(x, verbose_errors=False), |
| 221 | ) |
| 222 | assert 'syntax error at or near "invalid"' in result[0] |
| 223 | assert "SQLSTATE" not in result[0] |
| 224 | |
| 225 | |
| 226 | @dbtest |
Callers
nothing calls this directly
Tested by
no test coverage detected