зеркало из https://github.com/github/vitess-gh.git
Also treat binary/blob types as varbinary, gofmt-ed ...
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
This commit is contained in:
Родитель
a8ce1a0ba0
Коммит
fd3374a538
|
@ -450,7 +450,7 @@ func CellValue(data []byte, pos int, typ byte, metadata uint16, styp querypb.Typ
|
|||
// We trust that styp is compatible with the column type
|
||||
// Length is encoded in 1 or 2 bytes.
|
||||
typeToUse := querypb.Type_VARCHAR
|
||||
if styp == querypb.Type_VARBINARY || styp == querypb.Type_BINARY || styp == querypb.Type_BLOB{
|
||||
if styp == querypb.Type_VARBINARY || styp == querypb.Type_BINARY || styp == querypb.Type_BLOB {
|
||||
typeToUse = styp
|
||||
}
|
||||
if metadata > 255 {
|
||||
|
|
Загрузка…
Ссылка в новой задаче