Fixed inconsistency when using tmysql4