MCPcopy
hub / github.com/pingcap/tidb / SetCharset

Method SetCharset

pkg/parser/types/field_type.go:309–311  ·  view source on GitHub ↗

SetCharset sets the charset of the FieldType.

(charset string)

Source from the content-addressed store, hash-verified

307
308// SetCharset sets the charset of the FieldType.
309func (ft *FieldType) SetCharset(charset string) {
310 ft.charset = charset
311}
312
313// SetCollate sets the collation of the FieldType.
314func (ft *FieldType) SetCollate(collate string) {

Callers 15

TestCreateTablesFunction · 0.95
TestCreateTablesInDbFunction · 0.95
TestDB_ExecDDL2Function · 0.95
TestIsTypeCompatibleFunction · 0.95
TestCastFunction · 0.95
newStringTypeFunction · 0.95
buildColumnWithNameFunction · 0.95

Calls

no outgoing calls

Tested by 15

TestCreateTablesFunction · 0.76
TestCreateTablesInDbFunction · 0.76
TestDB_ExecDDL2Function · 0.76
TestIsTypeCompatibleFunction · 0.76
TestCastFunction · 0.76
TestFieldTypeFunction · 0.76
TestConvertTypeFunction · 0.76
TestConvertToStringFunction · 0.76