Comparing a date with a datetime string produces the same, desired results but comparing a date to a datetime produces different results on Percona.
When filtering by birthdays in 'this calendar month', the comparison is against a 14 digit integer giving incorrect results on Percona, despite working
correctly on MariaDB.
The fix here is to convert the calculated date to a datetime before the comparison.
Observed on 10.3.29-MariaDB-0ubuntu0.20.10.1 and 5.7.31-percona-sure1-log
Percona and MariaDB handle some date/datetime comparisons differently.
Comparisons of date with an 8 digit integer or string are the same and as desired: MariaDB:
Percona:
However, comparing to a 14 digit datetime as string and integer produces different results: MariaDB:
Percona:
Comparing a date with a datetime string produces the same, desired results but comparing a date to a datetime produces different results on Percona.
When filtering by birthdays in 'this calendar month', the comparison is against a 14 digit integer giving incorrect results on Percona, despite working correctly on MariaDB.
The fix here is to convert the calculated date to a datetime before the comparison.
Observed on 10.3.29-MariaDB-0ubuntu0.20.10.1 and 5.7.31-percona-sure1-log