Skip to content

Commit 7294dfb

Browse files
authored
server: make field types for blob types match mysql (#60196) (#62281)
close #60195
1 parent 7b22116 commit 7294dfb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/server/internal/column/column.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ func dumpType(tp byte) byte {
140140
case mysql.TypeTiDBVectorFloat32:
141141
// When passing Vector column to the SQL Client, pretend to be a non-binary String.
142142
return mysql.TypeLongBlob
143+
case mysql.TypeTinyBlob, mysql.TypeMediumBlob, mysql.TypeLongBlob:
144+
return mysql.TypeBlob
143145
default:
144146
return tp
145147
}

0 commit comments

Comments
 (0)