We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acedf56 commit 40fe0d3Copy full SHA for 40fe0d3
schema.go
@@ -153,9 +153,10 @@ func (space *Space) DecodeMsgpack(d *msgpack.Decoder) error {
153
154
// Field is a schema field.
155
type Field struct {
156
- Id uint32
157
- Name string
158
- Type string
+ Id uint32
+ Name string
+ Type string
159
+ IsNullable bool
160
}
161
162
func (field *Field) DecodeMsgpack(d *msgpack.Decoder) error {
@@ -177,6 +178,10 @@ func (field *Field) DecodeMsgpack(d *msgpack.Decoder) error {
177
178
if field.Type, err = d.DecodeString(); err != nil {
179
return err
180
181
+ case "is_nullable":
182
+ if field.IsNullable, err = d.DecodeBool(); err != nil {
183
+ return err
184
+ }
185
default:
186
if err := d.Skip(); err != nil {
187
0 commit comments