It will be useful to have a method to modify a query to insert database specific function call.
For example, it can be character length calculation for database fields (LENGTH or CHARACTER_LENGTH or something else for different RDBMSes). The possible use cases are length filters in Views, see this issue:
#1263238: LENGTH vs CHARACTER_LENGTH in string filters
↧
Add function name (such as character length function) abstraction to database drivers
↧