mirror of
https://github.com/dolthub/dolt.git
synced 2026-03-10 11:24:16 -05:00
go/cmd/dolt/commands/sqlserver: server.go: Small fix for scope of userSpecified variable in the InitSuperUser step.
This commit is contained in:
@@ -232,11 +232,9 @@ func Serve(
|
||||
controller.Register(InitSqlEngine)
|
||||
|
||||
// Add superuser if specified user exists; add root superuser if no user specified and no existing privileges
|
||||
var userSpecified bool
|
||||
|
||||
InitSuperUser := &svcs.Service{
|
||||
Init: func(context.Context) error {
|
||||
userSpecified = config.ServerUser != ""
|
||||
userSpecified := config.ServerUser != ""
|
||||
|
||||
mysqlDb := sqlEngine.GetUnderlyingEngine().Analyzer.Catalog.MySQLDb
|
||||
ed := mysqlDb.Editor()
|
||||
|
||||
Reference in New Issue
Block a user