MCPcopy Index your code
hub / github.com/dropbox/godropbox / NewNullFieldDescriptor

Function NewNullFieldDescriptor

database/binlog/string_fields.go:69–76  ·  view source on GitHub ↗

This returns a field descriptor for FieldType_NULL (i.e., Field_null)

(nullable NullableColumn)

Source from the content-addressed store, hash-verified

67
68// This returns a field descriptor for FieldType_NULL (i.e., Field_null)
69func NewNullFieldDescriptor(nullable NullableColumn) FieldDescriptor {
70 // A null field can be nullable ...
71 return newFixedLengthFieldDescriptor(
72 mysql_proto.FieldType_NULL,
73 nullable,
74 0,
75 func(b []byte) interface{} { return nil })
76}
77
78//
79// packedLengthFieldDescriptor ------------------------------------------------

Callers 2

TestNullParseValueMethod · 0.85
parseColumnsMethod · 0.85

Calls 1

Tested by 1

TestNullParseValueMethod · 0.68