Bug: Mysql sometimes returns uppercased generated_key