[eluser]mrtavo[/eluser]
Well yes, that was a typing error; i'm sorry about it.
I'm sorry for giving you no examples on generated code too. Here is one.
Don't worry about field names or join names, they are not relevant on this case.
Just look after the
strong text in both querys. I don't know why it's doing that...
SELECT `A`.*, `B`.`city` AS B_city, `B`.`country` AS B_country, `B`.`t` AS B_t, FUNCTION_1(`A`.`arrival_date`, FUNCTION_2(`B`.`t`,
`'4'`, `'0'`, `':')`, `'+00:00')` AS arrival_GMT_0 FROM (`trip_step`) LEFT OUTER JOIN `B` as B ON `B`.`id` = `A`.`B_id`
It should be...
SELECT `A`.*, `B`.`city` AS B_city, `B`.`country` AS B_country, `B`.`t` AS B_t,
FUNCTION_1(`A`.`a_d`, FUNCTION_2(`B`.`t`,
'4', '0', ':'), '+00:00') AS arrival_GMT_0 FROM (`A`) LEFT OUTER JOIN `B` as B ON `B`.`id` = `A`.`B_id`
an that one works.
It seems to work fine with 1 parameter, after the first one it start to do something with ' and `.
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near
' `'+00:00')` AS arrival_GMT_0 FROM (`A`) LEFT OUTER JOIN `B` as Bi' at line 1
It's doing something extrange with function closure.
Thanks again!