Fix for not quoting column names when generating union all select