You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running \show abc in the dolt SQL shell causes a panic. You can replace abc with any string that isn't a commit or a flag.
This panic happens because show's Exec function (implemented in go/cmd/dolt/commands/show.go) is given a nil DoltEnv when called from the SQL shell with handleSlashCommand (implemented in go/cmd/dolt/commands/sql_slash.go). This is fine when the args only contain commits because the DoltEnv isn't used in that case, but if non-commit args are present the nil DoltEnv is dereferenced, causing a panic.
Running
\show abc
in the dolt SQL shell causes a panic. You can replaceabc
with any string that isn't a commit or a flag.This panic happens because show's Exec function (implemented in
go/cmd/dolt/commands/show.go
) is given a nil DoltEnv when called from the SQL shell with handleSlashCommand (implemented ingo/cmd/dolt/commands/sql_slash.go
). This is fine when the args only contain commits because the DoltEnv isn't used in that case, but if non-commit args are present the nil DoltEnv is dereferenced, causing a panic.Trace:
The text was updated successfully, but these errors were encountered: