Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: clickhouse uuid (#16603)

p0nya934654d2de9
diff --git a/backend/plugin/db/clickhouse/query.go b/backend/plugin/db/clickhouse/query.go
index 43522a3ee1..dadfa1a2f9 100644
--- a/backend/plugin/db/clickhouse/query.go
+++ b/backend/plugin/db/clickhouse/query.go
@@ -14,10 +14,10 @@ import (
"github.com/bytebase/bytebase/backend/common/log"
storepb "github.com/bytebase/bytebase/proto/generated-go/store"
+ "github.com/google/uuid"
"github.com/paulmach/orb"
"github.com/paulmach/orb/encoding/wkt"
"github.com/shopspring/decimal"
- "github.com/xtgo/uuid"
"google.golang.org/protobuf/types/known/durationpb"
"github.com/bytebase/bytebase/backend/plugin/db"
@@ -103,7 +103,7 @@ func getStatementWithResultLimit(statement string, limit int) string {
}
func makeValueByTypeName(typeName string, columnType *sql.ColumnType) any {
- if typeName == "UUID" || strings.HasPrefix(typeName, "TUPLE") || strings.HasPrefix(typeName, "ARRAY") || strings.HasPrefix(typeName, "MAP") {
+ if strings.HasPrefix(typeName, "TUPLE") || strings.HasPrefix(typeName, "ARRAY") || strings.HasPrefix(typeName, "MAP") {
// For TUPLE, ARRAY, MAP type in ClickHouse, we pass any and the driver will do the rest.
var it any
return &it
diff --git a/go.mod b/go.mod
index fdd1b60354..a3348a1aa1 100644
--- a/go.mod
+++ b/go.mod
@@ -362,7 +362,7 @@ require (
github.com/xdg-go/pbkdf2 v1.0.0 // indirect
github.com/xdg-go/scram v1.1.2 // indirect
github.com/xdg-go/stringprep v1.0.4 // indirect
- github.com/xtgo/uuid v0.0.0-20140804021211-a0b114877d4c
+ github.com/xtgo/uuid v0.0.0-20140804021211-a0b114877d4c // indirect
github.com/youmark/pkcs8 v0.0.0-20240726163527-a2c0da244d78
github.com/yusufpapurcu/wmi v1.2.4 // indirect
go.opencensus.io v0.24.0 // indirect