Skip to content

Instantly share code, notes, and snippets.

@Fluxx
Created May 18, 2010 19:23
Show Gist options
  • Save Fluxx/405417 to your computer and use it in GitHub Desktop.
Save Fluxx/405417 to your computer and use it in GitHub Desktop.
mysql> SET SESSION sql_mode = 'ANSI,NO_BACKSLASH_ESCAPES,NO_DIR_IN_CREATE,NO_ENGINE_SUBSTITUTION,NO_UNSIGNED_SUBTRACTION,TRADITIONAL';
Query OK, 0 rows affected (0.00 sec)
mysql> ALTER TABLE `urls` ADD COLUMN `cached_at` DATETIME;
ERROR 1292 (22007): Incorrect datetime value: '0000-00-00 00:00:00' for column 'updated_at' at row 18
mysql>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment