Fixed type in sql.