bug #1936761 [interface] BINARY not treated as BLOB: update/delete issues

This commit is contained in:
Marc Delisle
2008-06-01 13:02:12 +00:00
parent fac0e14389
commit c98ca858ec
2 changed files with 3 additions and 2 deletions

View File

@@ -1970,8 +1970,8 @@ function PMA_getUniqueCondition($handle, $fields_cnt, $fields_meta, $row, $force
// timestamp is numeric on some MySQL 4.1
if ($meta->numeric && $meta->type != 'timestamp') {
$condition .= '= ' . $row[$i] . ' AND';
} elseif ($meta->type == 'blob'
// hexify only if this is a true not empty BLOB
} elseif (($meta->type == 'blob' || $meta->type == 'string')
// hexify only if this is a true not empty BLOB or a BINARY
&& stristr($field_flags, 'BINARY')
&& !empty($row[$i])) {
// do not waste memory building a too big condition