Skip to content

Commit 555e932

Browse files
committed
Add default VarChar and VarBinary types to types/strings.go
1 parent a28b09d commit 555e932

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sql/types/strings.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ var (
7373
MediumBlob = MustCreateBinary(sqltypes.Blob, MediumTextBlobMax)
7474
LongBlob = MustCreateBinary(sqltypes.Blob, LongTextBlobMax)
7575

76+
VarChar = MustCreateStringWithDefaults(sqltypes.VarChar, varcharVarbinaryMax)
77+
VarBinary = MustCreateBinary(sqltypes.VarBinary, varcharVarbinaryMax)
78+
7679
stringValueType = reflect.TypeOf(string(""))
7780
byteValueType = reflect.TypeOf(([]byte)(nil))
7881
)

0 commit comments

Comments
 (0)