Skip to content

Instantly share code, notes, and snippets.

@aereal
Created March 3, 2016 01:43
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 aereal/c29f48f52493cc18b647 to your computer and use it in GitHub Desktop.
Save aereal/c29f48f52493cc18b647 to your computer and use it in GitHub Desktop.
root@localhost[(none)]> create database strict_test;
Query OK, 1 row affected (0.00 sec)
root@localhost[(none)]> use strict_test;
Database changed
root@localhost[strict_test]> SET NAMES utf8mb4;
Query OK, 0 rows affected (0.00 sec)
root@localhost[strict_test]> SET @@SESSION.sql_mode = 'TRADITIONAL,NO_AUTO_VALUE_ON_ZERO,ONLY_FULL_GROUP_BY';
Query OK, 0 rows affected (0.00 sec)
root@localhost[strict_test]> create table users ( `id` bigint unsigned not null, `is_private` tinyint(1) default '1', primary key (`id`)) engine=InnoDB, default charset=utf8;
Query OK, 0 rows affected (0.01 sec)
root@localhost[strict_test]> insert into users set id = uuid_short();
Query OK, 1 row affected (0.00 sec)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment