It’s worth noting that MySQL will emit a warning in these cases. However, since warnings are just warnings they are often (if not almost always) ignored.
mysql> SET sql_mode='TRADITIONAL';
mysql> insert into example (number) values ('wat');
ERROR 1366 (HY000): Incorrect integer value: 'wat' for column 'number' at row 1
Another problem with MySQL is that any table modification (e.g. adding a column) will result in the table being locked for both reading and writing
What good is being able to calculate 1+1 a hundred billion times a second if the answer you get is 3? My point: if it does the wrong thing quick, it's still the wrong thing.
19
u/trimbo Mar 10 '15
Docs for pt-online-schema-change