From b5c1e81a1c60ddeb84607c9cc1e0eed85d40943b Mon Sep 17 00:00:00 2001 From: jycor Date: Thu, 26 Dec 2024 21:31:12 +0000 Subject: [PATCH] [ga-format-pr] Run ./format_repo.sh to fix formatting --- enginetest/engine_only_test.go | 2 +- server/handler.go | 2 +- sql/types/time.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/enginetest/engine_only_test.go b/enginetest/engine_only_test.go index 9b5be3612c..c65ca68d7a 100644 --- a/enginetest/engine_only_test.go +++ b/enginetest/engine_only_test.go @@ -18,7 +18,6 @@ import ( "context" sql2 "database/sql" "fmt" - "github.com/dolthub/go-mysql-server/sql/variables" "io" "net" "runtime" @@ -47,6 +46,7 @@ import ( "github.com/dolthub/go-mysql-server/sql/planbuilder" "github.com/dolthub/go-mysql-server/sql/rowexec" "github.com/dolthub/go-mysql-server/sql/types" + "github.com/dolthub/go-mysql-server/sql/variables" ) // This file is for tests of the engine that we are very sure do not rely on a particular database implementation. They diff --git a/server/handler.go b/server/handler.go index 273cd882c4..1c2d19164c 100644 --- a/server/handler.go +++ b/server/handler.go @@ -18,7 +18,6 @@ import ( "context" "encoding/base64" "fmt" - "github.com/dolthub/go-mysql-server/sql/expression" "io" "net" "regexp" @@ -41,6 +40,7 @@ import ( "github.com/dolthub/go-mysql-server/internal/sockstate" "github.com/dolthub/go-mysql-server/sql" "github.com/dolthub/go-mysql-server/sql/analyzer" + "github.com/dolthub/go-mysql-server/sql/expression" "github.com/dolthub/go-mysql-server/sql/iters" "github.com/dolthub/go-mysql-server/sql/plan" "github.com/dolthub/go-mysql-server/sql/rowexec" diff --git a/sql/types/time.go b/sql/types/time.go index 88ffdf328f..e80ff74e60 100644 --- a/sql/types/time.go +++ b/sql/types/time.go @@ -500,7 +500,7 @@ func appendDigit(v int64, extend int, buf []byte, i int) int { cmp *= 10 } - for cmp > 0 && v < cmp{ + for cmp > 0 && v < cmp { buf[i] = '0' i++