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

sql-server host shouldn't affect default superuser #4110

Merged
merged 5 commits into from Aug 17, 2022
Merged

sql-server host shouldn't affect default superuser #4110

merged 5 commits into from Aug 17, 2022

Conversation

jycor
Copy link
Contributor

@jycor jycor commented Aug 16, 2022

fix for: #4079

@timsehn
Copy link
Sponsor Contributor

timsehn commented Aug 17, 2022

This is weird. The test you wrote failed with the old behavior.

Copy link
Member

@zachmu zachmu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments

@@ -135,7 +135,7 @@ func Serve(
DoltCfgDirPath: serverConfig.CfgDir(),
ServerUser: serverConfig.User(),
ServerPass: serverConfig.Password(),
ServerHost: serverConfig.Host(),
ServerHost: "%",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't right. We don't want to give up on the -H option entirely for network routing, which this does. We just want to ignore the host name when creating the first user.

Copy link
Member

@zachmu zachmu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jycor jycor merged commit 1cf51dd into main Aug 17, 2022
@Hydrocharged Hydrocharged deleted the james/privs branch October 13, 2022 12:47
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 this pull request may close these issues.

None yet

3 participants