Closed stapelberg closed 12 years ago
Ah, good catch, thank you!
Oddly, having added a test for this which I'd expect to fail until I merge your change, it works correctly - looking in to how now, but I will merge this anyway as it's clearly right.
Ah - if the WHERE clause used placeholders, all worked as expected, the problem only showed up if the WHERE clause ended with an "IS NULL" etc.
Test added in 3a5cb1f which fails because of this behaviour; now merging this fix and confirming that the test then passes.
I've just released 1.81 incorporating this fix - thanks again!
...
Example:
…would result in a MySQL error complaining about NULLORDER (due to missing space between the NULL of the WHERE clause and the ORDER keyword).