add possibility to disable using having for DQL functions