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.user_attributes table is missing attributes column values #5203

Open
jennifersp opened this issue Jan 24, 2023 · 3 comments
Assignees
Labels
enhancement New feature or request sql Issue with SQL

Comments

@jennifersp
Copy link
Contributor

Set up:

> create user tester@localhost attribute '{"fname": "John", "lname": "R"}';

MySQL:

mysql> select * from information_schema.user_attributes where user = 'tester';
+--------+-----------+---------------------------------+
| USER   | HOST      | ATTRIBUTE                       |
+--------+-----------+---------------------------------+
| tester | localhost | {"fname": "John", "lname": "R"} |
+--------+-----------+---------------------------------+

Dolt:

dolt> select * from information_schema.user_attributes where user = 'tester';
+--------+-----------+-----------+
| USER   | HOST      | ATTRIBUTE |
+--------+-----------+-----------+
| tester | localhost | NULL      |
+--------+-----------+-----------+
@jennifersp jennifersp added the sql Issue with SQL label Jan 24, 2023
@PrathyushaModala
Copy link

I would like work on this :)

@timsehn timsehn added the enhancement New feature or request label Mar 3, 2023
@PrathyushaModala
Copy link

Hi @jennifersp Can you suggest any idea on how to solve the above issue.

@jennifersp
Copy link
Contributor Author

Hi @PrathyushaModala, this issue will require some changes on https://github.com/dolthub/go-mysql-server . I found this hint when I looked at the issue briefly. I'm not familiar with what unexpected behavior it's causing, but it's the reason we are not able to fill in the attribute data in the user table when the user is created in the first place. Then this user table is used to retrieve that value to put in the information_schema.user_attributes table.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request sql Issue with SQL
Projects
None yet
Development

No branches or pull requests

3 participants