QL0072 Too Few Function Arguments
The function call supplies fewer arguments than the active signature requires.
When It Appears
- Dialect mode is active and the function name is recognized
- The validator can compare the supplied argument count to the known minimum
Example
QueryLens.Dialect = DialectProfile.SqlServer2019;
var query = new SqlQuery("SELECT DATEFROMPARTS(2026, 4)");
Assert.Contains(query.Errors, issue => issue.Code == "QL0072");
Next Steps
- Review the target database documentation for the function signature
- Add the missing required arguments