QL0001 Syntax Errors
Structural SQL syntax failure or syntax that is unsupported for the active dialect profile.
When It Appears
- Broken statement structure such as a missing
FROM, dangling commas, unmatched parentheses, or incomplete clauses - Dialect mode can also produce
QL0001for syntax that does not exist in the selected engine, such asTOPin SQLite
Example
var query = new SqlQuery("SELECT FROM customers");
Assert.Contains(query.Errors, issue => issue.Code == "QL0001");
Next Steps
- Reduce the query to the smallest failing statement
- Confirm the selected dialect profile if the SQL is only valid in a different engine
- Check Query Fails Validation