diff --git a/go.mod b/go.mod index 9b33f97940..6573ead136 100644 --- a/go.mod +++ b/go.mod @@ -9,7 +9,7 @@ require ( github.com/dolthub/dolt/go v0.40.5-0.20251213003033-5aae073ad198 github.com/dolthub/eventsapi_schema v0.0.0-20250915094920-eadfd39051ca github.com/dolthub/flatbuffers/v23 v23.3.3-dh.2 - github.com/dolthub/go-mysql-server v0.20.1-0.20251212235309-4422a1ca9f43 + github.com/dolthub/go-mysql-server v0.20.1-0.20251215235453-b3613827cc44 github.com/dolthub/pg_query_go/v6 v6.0.0-20251215122834-fb20be4254d1 github.com/dolthub/sqllogictest/go v0.0.0-20240618184124-ca47f9354216 github.com/dolthub/vitess v0.0.0-20251210200925-1d33d416d162 diff --git a/go.sum b/go.sum index 111474beb6..40707b3d09 100644 --- a/go.sum +++ b/go.sum @@ -240,6 +240,10 @@ github.com/dolthub/go-icu-regex v0.0.0-20250916051405-78a38d478790 h1:zxMsH7RLiG github.com/dolthub/go-icu-regex v0.0.0-20250916051405-78a38d478790/go.mod h1:F3cnm+vMRK1HaU6+rNqQrOCyR03HHhR1GWG2gnPOqaE= github.com/dolthub/go-mysql-server v0.20.1-0.20251212235309-4422a1ca9f43 h1:3OiTNnL3rFiSXGo7/xTt64FmJGtGU1igvyPishbsM4o= github.com/dolthub/go-mysql-server v0.20.1-0.20251212235309-4422a1ca9f43/go.mod h1:NjewWKoa5bVSLdKwL7fg7eAfrcIxDybWUKoWEHWRTw4= +github.com/dolthub/go-mysql-server v0.20.1-0.20251215224112-7cb4535802a5 h1:gjUTlYUVTWnKoZBizqLQzWL/rxwT4ZC8IGt49pzpCQg= +github.com/dolthub/go-mysql-server v0.20.1-0.20251215224112-7cb4535802a5/go.mod h1:NjewWKoa5bVSLdKwL7fg7eAfrcIxDybWUKoWEHWRTw4= +github.com/dolthub/go-mysql-server v0.20.1-0.20251215235453-b3613827cc44 h1:/e1XKLp5D200IwFq7uKAFgza30NuNTmbpD7VgcrAqhI= +github.com/dolthub/go-mysql-server v0.20.1-0.20251215235453-b3613827cc44/go.mod h1:NjewWKoa5bVSLdKwL7fg7eAfrcIxDybWUKoWEHWRTw4= github.com/dolthub/gozstd v0.0.0-20240423170813-23a2903bca63 h1:OAsXLAPL4du6tfbBgK0xXHZkOlos63RdKYS3Sgw/dfI= github.com/dolthub/gozstd v0.0.0-20240423170813-23a2903bca63/go.mod h1:lV7lUeuDhH5thVGDCKXbatwKy2KW80L4rMT46n+Y2/Q= github.com/dolthub/ishell v0.0.0-20240701202509-2b217167d718 h1:lT7hE5k+0nkBdj/1UOSFwjWpNxf+LCApbRHgnCA17XE= diff --git a/server/types/type.go b/server/types/type.go index d638d9d468..4f5ea07f5a 100644 --- a/server/types/type.go +++ b/server/types/type.go @@ -625,12 +625,7 @@ func (t *DoltgresType) MaxCharacterLength() int64 { // IsNumericType implements the sql.NumberType interface. func (t *DoltgresType) IsNumericType() bool { - switch t.TypCategory { - case TypeCategory_NumericTypes: - return true - default: - return false - } + return t.TypCategory == TypeCategory_NumericTypes } // IsFloat implements the sql.NumberType interface. @@ -663,6 +658,11 @@ func (t *DoltgresType) DisplayWidth() int { } } +// IsStringType implements the sql.StringType interface. +func (t *DoltgresType) IsStringType() bool { + return t.TypCategory == TypeCategory_StringTypes +} + // MaxSerializedWidth implements the types.ExtendedType interface. func (t *DoltgresType) MaxSerializedWidth() sql.ExtendedTypeSerializedWidth { if t.TypLength < 0 {