Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions go/cmd/dolt/commands/sql.go
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,10 @@ func queryMode(
return sqlHandleVErrAndExitCode(qryist, errhand.VerboseErrorFromError(err), usage)
}

if strings.Contains(strings.ToLower(query), "dolt_checkout") {
Comment thread
superShen0916 marked this conversation as resolved.
cli.PrintErrf("warning: dolt_checkout() only affects the current session. To persist the branch change, include additional statements in the same -q invocation or use 'dolt checkout' instead.\n")
}

return 0
}

Expand Down
Loading