Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

information schema does not show default charset from CREATE DATABASE #7748

Closed
gregwebs opened this issue Sep 19, 2018 · 0 comments · Fixed by #7751
Closed

information schema does not show default charset from CREATE DATABASE #7748

gregwebs opened this issue Sep 19, 2018 · 0 comments · Fixed by #7751

Comments

@gregwebs
Copy link
Contributor

Bug Report

  1. What did you do?
mysql> CREATE DATABASE `foo` DEFAULT CHARACTER SET = 'utf8mb4';
Query OK, 0 rows affected (0.01 sec)

mysql> SELECT default_character_set_name FROM information_schema.SCHEMATA  WHERE schema_name = 'foo';
+----------------------------+
| default_character_set_name |
+----------------------------+
| utf8                       |
+----------------------------+
1 row in set (0.00 sec)
mysql> show create database foo
    -> ;
+----------+------------------------------------------------------------------+
| Database | Create Database                                                  |
+----------+------------------------------------------------------------------+
| foo      | CREATE DATABASE `foo` /* !40100 DEFAULT CHARACTER SET utf8mb4 */ |
+----------+------------------------------------------------------------------+
1 row in set (0.00 sec)
  1. What did you expect to see?
    utf8mb4

  2. What did you see instead?
    utf8

  3. What version of TiDB are you using (tidb-server -V or run select tidb_version(); on TiDB)?
    v2.1.0-rc.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant