Closed christopherreay closed 1 month ago
Hi @christopherreay, thanks for reporting this issue and providing the repro script. 🙏
Since MySQL limits usernames to 32 characters, we'll go ahead and get this patched up so that Dolt also validates the user name length on the call to CREATE USER
. We're generally open to extending MySQL and having larger limits if customers do need them, so let us know if this limit does cause a problem, otherwise we'll get Dolt patched up to match MySQL's behavior here.
I've got this one queued up for the next release. I'm going to release it as a minor version bump, just in case anyone is relying on the old (unvalidated) behavior. We're waiting for one more change to land tomorrow, but if you need this out sooner than that, we're happy to run a separate release for you.
This fix has been released in Dolt version 1.42.0
Thanks for taking the time to report the issue so we could fix it. 🙏 Let us know if there's anything else we can do to help you build with Dolt!
Hi first issue, thanks for the great product.
so here is reproducible in
dolt sql
:the actual user works perfectly well in terms of connecting/authenticating and running queries. Personally I would prefer to be able to have usernames longer than 32 chars, but either way is fine.