I'm using MySQL 5.5.37. If I run the following query on my database
select count(*) FROM user where user_name = 'admin';
I get back the result "3". However, when I execute the query
select count(*) FROM user where user_name = 'admin ';
, (notice the extra spaces after the word "admin", I also get back the result "3". In fact, when i look at teh records, they are the same records as the first query. However, there are no records in my databaes with the user_name field equal to "admin ". Given that I cannot upgrade my MySQL database at this time, what can I do to ensure that the second query (wiht the extra white space) returns the correct result (i.e. "0")?
Edit: The user_name field is of type varchar(50).