in MySQL, given the following query:
select column1
, column2
, my_function1(column3) as f1
, my_function2(column4) as f2
, my_function3 (my_function1(column3), my_function2(column4)) as f3
where some condition on column 1
having f1 > some value
does my_function1(column3) will be called 3 times? Or there's some optimization/cache that re-use the calculated value?
thank you