Fixed issue #9274: Uppercase database name leads to errors