dolthub / go-mysql-server

A MySQL-compatible relational database with a storage agnostic query engine. Implemented in pure Go.
Apache License 2.0
2.32k stars 199 forks source link

Adding user name and host length validation to CREATE USER #2595

Closed fulghum closed 1 month ago

fulghum commented 1 month ago

This change matches MySQL's behavior of limiting user names to 32 chars and host names to 255 chars. Attempting to create a user with a name or host longer than that limit now returns a validation error.

Customer issue: https://github.com/dolthub/dolt/issues/8120