Skip to content

Commit d2a4790

Browse files
committed
del comments
1 parent 65f658a commit d2a4790

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

sql/types/datetime.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,6 @@ func (t datetimeType) SQL(_ *sql.Context, dest []byte, v interface{}) (sqltypes.
411411
return sqltypes.Value{}, sql.ErrInvalidBaseType.New(t.baseType.String(), "datetime")
412412
}
413413

414-
//valBytes := AppendAndSliceBytes(dest, val)
415414
valBytes := val[start:]
416415

417416
return sqltypes.MakeTrusted(typ, valBytes), nil

sql/types/strings.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,6 @@ func ConvertToBytes(v interface{}, t sql.StringType, dest []byte) ([]byte, error
435435
// On top of that, we internally only work with UTF8MB4 strings, so we'll make a hard assumption that all UTF8
436436
// strings are valid for all character sets, and that all invalid UTF8 strings have not yet been converted.
437437
// This isn't correct, but it's a better approximation than the old logic.
438-
//bytesVal := encodings.StringToBytes(val)
439438
bytesVal := val
440439
if !IsBinaryType(t) && !utf8.Valid(bytesVal) {
441440
charset := t.CharacterSet()

sql/types/time.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,9 +270,7 @@ func (t TimespanType_) SQL(_ *sql.Context, dest []byte, v interface{}) (sqltypes
270270
if err != nil {
271271
return sqltypes.Value{}, err
272272
}
273-
274-
//val := AppendAndSliceBytes(dest, ti.Bytes())
275-
273+
276274
return sqltypes.MakeTrusted(sqltypes.Time, ti.Bytes()), nil
277275
}
278276

0 commit comments

Comments
 (0)