Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
cameron-p-m committed Jul 31, 2024
1 parent b5bdc2d commit 8e44c23
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions dml_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -543,16 +543,6 @@ func rightPadBufferWithZeroBytes(buffer []byte, padLength int) []byte {
}

func appendEscapedBuffer(buffer, value []byte, isJSON bool) []byte {
if isJSON {
// See https://bugs.mysql.com/bug.php?id=98496
if len(value) == 0 {
value = []byte("null")
}

buffer = append(buffer, "CAST("...)
} else {
buffer = append(buffer, "_binary"...)
}

buffer = append(buffer, '\'')

Expand All @@ -567,10 +557,6 @@ func appendEscapedBuffer(buffer, value []byte, isJSON bool) []byte {

buffer = append(buffer, '\'')

if isJSON {
buffer = append(buffer, " AS JSON)"...)
}

return buffer
}

Expand Down

0 comments on commit 8e44c23

Please sign in to comment.