mirror of
https://github.com/dolthub/dolt.git
synced 2026-05-24 11:39:18 -05:00
quick pass at commit time change
This commit is contained in:
@@ -121,6 +121,12 @@ func performCommit(ctx context.Context, commandStr string, args []string, cliCtx
|
||||
defer closeFunc()
|
||||
}
|
||||
|
||||
// cliCtx always uses the session start as its time. We want the current time,
|
||||
// which is stored in ctx.
|
||||
if c, ok := ctx.(*sql.Context); ok {
|
||||
sqlCtx.SetQueryTime(c.QueryTime())
|
||||
}
|
||||
|
||||
// dolt_commit performs this check as well. This nips the problem in the bud early, but is not required.
|
||||
err = branch_control.CheckAccess(sqlCtx, branch_control.Permissions_Write)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user