"abc" = 0 ?
I just stumbled over this:
mysql> select "abc" = 0;
+-----------+
| "abc" = 0 |
+-----------+
| 1 |
+-----------+
1 row in set, 1 warning (0.06 sec)
mysql> show warnings;
+---------+------+-----------------------------------------+
| Level | Code | Message |
+---------+------+-----------------------------------------+
| Warning | 1292 | Truncated incorrect DOUBLE value: 'abc' |
+---------+------+-----------------------------------------+
1 row in set (0.06 sec)
What's happening here? Where are the implicit type casts documented?
smantscheff
Nearly a Posting Virtuoso
1,233 posts since Oct 2010
Reputation Points: 300
Solved Threads: 254
pritaeas
Posting Expert
5,480 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875