Skip to content

Commit f7a3e38

Browse files
authored
Merge pull request #3253 from dolthub/nicktobey/global_tables
[no-release-notes] Add default VarChar and VarBinary types to `types/strings.go`
2 parents 9979526 + ba7a7ce commit f7a3e38

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)