Page 1 of 1

WHERE section gets messed up

Posted: Wed 09 Sep 2020 11:08
by eried
I have the following WHERE:

Code: Select all

    WHERE YEAR(entries.timestamp) = YEAR(CURRENT_DATE()) AND MONTH(entries.timestamp) = MONTH(CURRENT_DATE())
If I do anything on the query builder, this gets rewritten to:

Code: Select all

WHERE YEAR(CURRENT_DATE(), MONTH(entries.timestamp) = MONTH(CURRENT_DATE()))
Which is not right. Why?

Re: WHERE section gets messed up

Posted: Wed 09 Sep 2020 20:23
by alexa
We will fix it in one of the next product builds.