This issue is similar (but not exactly the same) to an issue I've reported earlier under
I'm using information_schema.SCHEMATA to make sure that a database exists before switching to it in my PHP app.
The following query unexpectedly returns an empty result set on this version (I've had no issues on previous versions, except the one in the issue I've mentioned before):
This is unexpected, because the following query returns multiple rows, while it should be more restrictive:
Upon further research I found out that removing the ORDER BY clause from the first query helps, so for now I will change the first query into the following, which does work (but will probably have decreased performance):