Closed germanotm closed 4 years ago
Don't know what breaks pg environment, i did not test pg it on my machine. Will check the error tomorrow.
I have fixed the tests on postgres database.
Looks good. I will probably go back later and some some misc cleanup on some parts before I think about a new release, but I consider the core work for this done. Not sure when I'll get to it, so it may be worth pulling the gem from master until that happens.
Thanks
I found a solution to group by date dimension hierarchies on mysql database. To achieve this i changed the
ReportingDimension# degenerate_select_fragment
to use [Mysql Date and Time Functions] (https://dev.mysql.com/doc/refman/8.0/en/date-and-time-functions.html ) to create a select fragment with same postgressdate_trunc
behavior.The options on mysql are not exactly the same of postgress, so i decide to support all, and only, postgress
date_trunc
values. It probably will be enough for mysql users and that way i keep the ActiveReport API consistent.Please let me know what you thing, and any feedback about the code will be apreciate.