Can anyone point out this behaviour and hw to stop this ?
I know about casting or adding double quotes.
I was wondering if there is any other way
Heres table definition
CREATE TABLE `countries` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`country_name` varchar(100) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1
The record with id 1 is correct but id 2 doesn't satisfy the where condition but is returned.
