mysql, prepared statements, and automatic type conversion
问题 I am getting different results performing the exact same query using regular statements and prepared statements, and I think it's a type conversion bug. mysql> show columns from server where field = "vlan"; +-------------+--------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-------------+--------+------+-----+---------+-------+ | vlan | int(5) | YES | MUL | NULL | | +-------------+--------+------+-----+---------+-------+ mysql> select hostname from server