enlarge binary protection to (var)char binary types
This commit is contained in:
@@ -7,6 +7,8 @@ $Source$
|
|||||||
|
|
||||||
2001-07-11 Steve Alberty <alberty@neptunlabs.de>
|
2001-07-11 Steve Alberty <alberty@neptunlabs.de>
|
||||||
* tbl_properties.php3: fix division by zero error
|
* 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>
|
2001-07-09 Lo<4C>c Chapeaux <lolo@phpheaven.net>
|
||||||
* header.inc.php3: cosmetic changes.
|
* header.inc.php3: cosmetic changes.
|
||||||
|
@@ -74,7 +74,7 @@ for($i=0;$i<mysql_num_rows($table_def);$i++)
|
|||||||
// THE FUNCTION COLUMN
|
// THE FUNCTION COLUMN
|
||||||
// Change by Bernard M. Piller <bernard@bmpsystems.com>
|
// Change by Bernard M. Piller <bernard@bmpsystems.com>
|
||||||
// We don't want binary data to be destroyed
|
// 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>";
|
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>
|
// Change by Bernard M. Piller <bernard@bmpsystems.com>
|
||||||
// We don't want binary data destroyed
|
// 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>";
|
echo "<td>" . $strBinaryDoNotEdit . "</td>";
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user