say I had a stored proc like this:
BEGIN
DECLARE user_id INT;
SET user_id = 1;
SELECT * FROM `users` WHERE `user_id` = user_id;
END
and a table like this:
users
=============================
user_id | user_displayname
-----------------------------
1 | Joe
2 | Steve
3 | Brad
Calling the stored proc above gives me:
1 | Joe
2 | Steve
3 | Brad
Is there something I can add to my.cnf that tells MySQL to be very strict about punctuation?
I’m used to being in java land and being able to do:
int userId = 1;
if(aUserObject.userId == userId)
//do something
How about: