avoid incompatible query when not using MySQL (fixes #3637, BP from #1984)
Merge pull request #151 from isaosano/T-3637

avoid incompatible query when not using MySQL (fixes #3637, BP from #1984)