mirror of
https://github.com/dolthub/dolt.git
synced 2026-03-14 19:20:44 -05:00
working?
This commit is contained in:
@@ -23,6 +23,7 @@ import (
|
||||
"github.com/dolthub/go-mysql-server/sql"
|
||||
"github.com/dolthub/vitess/go/vt/proto/query"
|
||||
|
||||
"github.com/dolthub/dolt/go/gen/fb/serial"
|
||||
"github.com/dolthub/dolt/go/store/types"
|
||||
"github.com/dolthub/dolt/go/store/val"
|
||||
)
|
||||
@@ -429,6 +430,11 @@ func (si *schemaImpl) GetKeyDescriptor() val.TupleDesc {
|
||||
Enc: val.Encoding(EncodingFromSqlType(query.Type_VARCHAR)),
|
||||
Nullable: columnMissingNotNullConstraint(col),
|
||||
}
|
||||
} else if queryType == query.Type_GEOMETRY {
|
||||
t = val.Type{
|
||||
Enc: val.Encoding(serial.EncodingCell),
|
||||
Nullable: columnMissingNotNullConstraint(col),
|
||||
}
|
||||
} else {
|
||||
t = val.Type{
|
||||
Enc: val.Encoding(EncodingFromSqlType(queryType)),
|
||||
|
||||
@@ -184,6 +184,7 @@ type prollyKeylessSecondaryWriter struct {
|
||||
mut *prolly.MutableMap
|
||||
primary prollyKeylessWriter
|
||||
unique bool
|
||||
spatial bool
|
||||
prefixLengths []uint16
|
||||
|
||||
keyBld *val.TupleBuilder
|
||||
|
||||
@@ -120,6 +120,7 @@ func getSecondaryKeylessProllyWriters(ctx context.Context, t *doltdb.Table, sqlS
|
||||
mut: m.Mutate(),
|
||||
primary: primary,
|
||||
unique: def.IsUnique(),
|
||||
spatial: def.IsSpatial(),
|
||||
prefixLengths: def.PrefixLengths(),
|
||||
keyBld: val.NewTupleBuilder(keyDesc),
|
||||
prefixBld: val.NewTupleBuilder(keyDesc.PrefixDesc(def.Count())),
|
||||
|
||||
Reference in New Issue
Block a user