You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sql/type.go
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -77,8 +77,10 @@ type Type interface {
77
77
// Equals returns whether the given type is equivalent to the calling type. All parameters are included in the
78
78
// comparison, so ENUM("a", "b") is not equivalent to ENUM("a", "b", "c").
79
79
Equals(otherTypeType) bool
80
-
// MaxTextResponseByteLength returns the maximum number of bytes needed to serialize an instance of this type as a string in a response over the wire for MySQL's text protocol – in other words, this is the maximum bytes needed to serialize any value of this type as human-readable text, NOT in a more compact, binary representation.
81
-
MaxTextResponseByteLength() uint32
80
+
// MaxTextResponseByteLength returns the maximum number of bytes needed to serialize an instance of this type
81
+
// as a string in a response over the wire for MySQL's text protocol – in other words, this is the maximum bytes
82
+
// needed to serialize any value of this type as human-readable text, NOT in a more compact, binary representation.
83
+
MaxTextResponseByteLength(ctx*Context) uint32
82
84
// Promote will promote the current type to the largest representing type of the same kind, such as Int8 to Int64.
83
85
Promote() Type
84
86
// SQL returns the sqltypes.Value for the given value.
0 commit comments