De: Alberto Osvaldo Gonzalez Enviado el: viernes, 28 de octubre de 2016 15:23 Para: '[email protected]' <[email protected]> Asunto: Fix on PostgreSQLDriver
Hi, this is Alberto from Argentina. I'm using empire-db and found an issue using postgresqldriver. The problem appears when using the "year" function to extract the year from a date. This is the original source code: (line 347) case SQL_FUNC_DAY: return "day(?)"; case SQL_FUNC_MONTH: return "month(?)"; case SQL_FUNC_YEAR: return "year(?)"; And this is what i modified: (line 347) case SQL_FUNC_DAY: return "extract(day from ?)"; case SQL_FUNC_MONTH: return "extract(month from ?)"; case SQL_FUNC_YEAR: return "extract(year from ?)"; I do not know if there's a way I can fix the code on a branch or sth. If there is way just tell me and i'll do it. I'm not very familiar with git but i think i can manage. Thanks in advance. Alberto
