ERROR: syntax error at end of input LINE 1: ...R(datum_od,'yyyymmDD') as datumz from cis_zavody where id= ^