thirtybees / statsmodule

Academic Free License v3.0
0 stars 6 forks source link

Statsforcast doesn't work for IN language #17

Closed getdatakick closed 2 years ago

getdatakick commented 4 years ago

Statsforcast uses iso code as alias for sql expressions:

https://github.com/thirtybees/statsmodule/blob/d07099cf5b494d04d7580552ff0bf4d3b4b1857a/stats/statsforecast.php#L622-L624

Some iso codes are, however, reserved keywords. For example in

The fix is to properly escape aliases using backticks