From 8e44c230c5b588f62dcec417004d965007495d64 Mon Sep 17 00:00:00 2001 From: Cameron Morgan Date: Wed, 31 Jul 2024 10:03:58 -0700 Subject: [PATCH] more --- dml_events.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/dml_events.go b/dml_events.go index 14410ba5..9145e1ef 100644 --- a/dml_events.go +++ b/dml_events.go @@ -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, '\'') @@ -567,10 +557,6 @@ func appendEscapedBuffer(buffer, value []byte, isJSON bool) []byte { buffer = append(buffer, '\'') - if isJSON { - buffer = append(buffer, " AS JSON)"...) - } - return buffer }