From 336d9605c7c94ede92cee2b8efb9f4a6106b774b Mon Sep 17 00:00:00 2001 From: Jervin R Date: Fri, 17 Jun 2016 06:32:07 +0800 Subject: [PATCH] Run BLOB/TEXT/BINARY columns against CRC32 during row checksum to prevent CONCAT_WS overflow and null _crc_col --- bin/pt-table-checksum | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/pt-table-checksum b/bin/pt-table-checksum index 6be21987..3264b7b2 100755 --- a/bin/pt-table-checksum +++ b/bin/pt-table-checksum @@ -5885,6 +5885,9 @@ sub get_checksum_columns { elsif ( $trim && $type =~ m/varchar/ ) { $result = "TRIM($result)"; } + elsif ( $type =~ m/blob|text|binary/ ) { + $result = "CRC32($result)"; + } $result; } grep {