Closed matteo-l closed 6 years ago
Thanks for reporting this problem. I have pushed a fix for this. Let me know if this fixes it for you.
The last version works correctly for me. Thank you
I have a similar issue, except with postgres and materialized.
-- without optional clauses
CREATE VIEW calibration_values AS
select cal_day,
cal_times,
chemical,
type,
estimate_min_val(val, times, cal_day, site) as value
from clock_audits
where instrument='EPC';
-- with optional clauses
CREATE materialized VIEW calibration_values AS
select cal_day,
cal_times,
chemical,
type,
estimate_min_val(val, times, cal_day, site) as value
from clock_audits
where instrument='EPC';
Create view statements are not correctly indented when some optional clause is used as shown in the following example. The optional clauses are defined in the MySQL manual.