Skip to content

Instantly share code, notes, and snippets.

@morgo
Created June 19, 2014 01:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save morgo/a62f98a3098beee46a95 to your computer and use it in GitHub Desktop.
Save morgo/a62f98a3098beee46a95 to your computer and use it in GitHub Desktop.
mysql [localhost] {msandbox} (test) > set sql_mode='STRICT_TRANS_TABLES';
Query OK, 0 rows affected (0.00 sec)
mysql [localhost] {msandbox} (test) > CREATE TABLE string_test (a int);
Query OK, 0 rows affected (0.12 sec)
mysql [localhost] {msandbox} (test) > insert into string_test VALUES ('hello');
ERROR 1366 (HY000): Incorrect integer value: 'hello' for column 'a' at row 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment