* Fix bug #3495: Endless recursion with some MySQL versions