Skip to content

Commit eed5695

Browse files
committed
importer: fix stale comment on mysqlStrToDatum
Release note: None Epic: None
1 parent eca28d9 commit eed5695

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pkg/sql/importer/read_import_mysql.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,10 @@ const (
209209
func mysqlStrToDatum(evalCtx *eval.Context, s string, desired *types.T) (tree.Datum, error) {
210210
switch desired.Family() {
211211
case types.BytesFamily:
212-
// mysql emits raw byte strings that do not use the same escaping as our ParseBytes
213-
// function expects, and the difference between ParseStringAs and
214-
// ParseDatumStringAs is whether or not it attempts to parse bytes.
212+
// mysql emits raw byte strings that do not use the same escaping as our
213+
// tree.ParseDBytes function expects, and the difference between
214+
// tree.ParseAndRequireString and mysqlStrToDatum is whether or not it
215+
// attempts to parse bytes.
215216
return tree.NewDBytes(tree.DBytes(s)), nil
216217
default:
217218
res, _, err := tree.ParseAndRequireString(desired, s, evalCtx)

0 commit comments

Comments
 (0)