fix(query_builder): patch Function.get_sql explicitly

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
Akhil Narang 2026-01-28 18:55:31 +05:30
parent 0c4d23f298
commit 7322fca429
No known key found for this signature in database
GPG key ID: 9DCC61E211BF645F

View file

@ -13,6 +13,7 @@ from frappe.query_builder.utils import (
)
pypika.terms.ValueWrapper = ParameterizedValueWrapper
pypika.terms.Function.get_sql = ParameterizedFunction.get_sql
pypika.terms.Function = ParameterizedFunction
# * Overrides the field() method and replaces it with the a `PseudoColumn` 'field' for consistency