diff options
Diffstat (limited to 'core/vm/sqlvm/ast/types.go')
-rw-r--r-- | core/vm/sqlvm/ast/types.go | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/core/vm/sqlvm/ast/types.go b/core/vm/sqlvm/ast/types.go index c37e6c012..5151334a9 100644 --- a/core/vm/sqlvm/ast/types.go +++ b/core/vm/sqlvm/ast/types.go @@ -101,18 +101,6 @@ func (dt DataType) Size() uint8 { } } -// DataTypeEncode encodes data type node into DataType. -func DataTypeEncode(n TypeNode) (DataType, error) { - if n == nil { - return DataTypeUnknown, se.ErrorCodeDataTypeEncode - } - t, code := n.GetType() - if code == se.ErrorCodeNil { - return t, nil - } - return t, code -} - // DataTypeDecode decodes DataType into data type node. func DataTypeDecode(t DataType) (TypeNode, error) { major, minor := DecomposeDataType(t) |