Merged changehandler-dont-hexify-text-cols, addendum to bug 1038276

This commit is contained in:
Brian Fraser
2012-09-19 16:36:56 -03:00
3 changed files with 30 additions and 3 deletions

View File

@@ -3576,7 +3576,7 @@ sub make_fetch_back_query {
map {
my $col = $_;
if ( $self->{hex_blob}
&& $tbl_struct->{type_for}->{$col} =~ m/blob|text|binary/ ) {
&& $tbl_struct->{type_for}->{$col} =~ m/b(?:lob|inary)/ ) {
$col = "IF(BINARY(`$col`)='', '', CONCAT('0x', HEX(`$col`))) AS `$col`";
}
else {