Hack around crappy MysqldResource code