Skip to content

Instantly share code, notes, and snippets.

@berkayk
Created November 27, 2017 12:05
Show Gist options
  • Save berkayk/9865b5173ea4acfaa14d753945753494 to your computer and use it in GitHub Desktop.
Save berkayk/9865b5173ea4acfaa14d753945753494 to your computer and use it in GitHub Desktop.
This query fixes current session's invalid default value error.
SET SESSION sql_mode= 'ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment