sqlfluff / sqlfluff

A modular SQL linter and auto-formatter with support for multiple dialects and templated code.
https://www.sqlfluff.com
MIT License
7.35k stars 655 forks source link

MySQL: Define date part function names #5874

Closed kzosabe closed 1 month ago

kzosabe commented 1 month ago

Brief summary of the change made

fixes #5854

The above issue was caused because the function was not defined as a date part function. I added TIMESTAMPDIFF and some functions whose signatures contain a unit in official documentation.

https://dev.mysql.com/doc/refman/8.0/en/date-and-time-functions.html

Are there any other side effects of this change that we should be aware of?

None

Pull Request checklist

github-actions[bot] commented 1 month ago

Coverage Results ✅

Name    Stmts   Miss  Cover   Missing
-------------------------------------
TOTAL   17743      0   100%

225 files skipped due to complete coverage.
coveralls commented 1 month ago

Coverage Status

coverage: 99.985%. remained the same when pulling 83a0c7dd046a4608b50580d541346eafc8c6b95c on kzosabe:mysql-date-part-function-name into 1d4fd8d288e9d19aa544d3d92885b30788234470 on sqlfluff:main.