Skip to content

Instantly share code, notes, and snippets.

@GitHub30
Created August 23, 2016 03:42
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 GitHub30/beda9073ae468b78b7f46cdf69ea82b1 to your computer and use it in GitHub Desktop.
Save GitHub30/beda9073ae468b78b7f46cdf69ea82b1 to your computer and use it in GitHub Desktop.
SQL_MODES = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'.split(',')
if 'STRICT_TRANS_TABLES' in SQL_MODES:
SQL_MODES.remove('STRICT_TRANS_TABLES')
','.join(SQL_MODES)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment