enlarge binary protection to (var)char binary types

This commit is contained in:
Steve Alberty
2001-07-11 16:40:24 +00:00
parent 4a34c45612
commit aa076b11c5
2 changed files with 4 additions and 2 deletions

View File

@@ -7,6 +7,8 @@ $Source$
2001-07-11 Steve Alberty <alberty@neptunlabs.de>
* tbl_properties.php3: fix division by zero error
* tbl_change.php3: enlarge binary protection to (var)char binary
types
2001-07-09 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* header.inc.php3: cosmetic changes.

View File

@@ -74,7 +74,7 @@ for($i=0;$i<mysql_num_rows($table_def);$i++)
// THE FUNCTION COLUMN
// Change by Bernard M. Piller <bernard@bmpsystems.com>
// We don't want binary data to be destroyed
if(strstr($row_table_def["Type"], "blob"))
if(strstr($row_table_def["Type"], "blob") || strstr($row_table_def["Type"], "binary") )
{
echo "<td>$strBinary</td>";
}
@@ -186,7 +186,7 @@ for($i=0;$i<mysql_num_rows($table_def);$i++)
}
// Change by Bernard M. Piller <bernard@bmpsystems.com>
// We don't want binary data destroyed
elseif(strstr($row_table_def["Type"], "blob"))
elseif(strstr($row_table_def["Type"], "blob") || strstr($row_table_def["Type"], "binary"))
{
echo "<td>" . $strBinaryDoNotEdit . "</td>";
}