bug #1114550 changing a float unsigned column type

This commit is contained in:
Marc Delisle
2005-02-02 16:56:17 +00:00
parent 334ed431b2
commit a56acf0d61
2 changed files with 5 additions and 0 deletions

View File

@@ -8,6 +8,8 @@ $Source$
2005-02-02 Marc Delisle <lem9@users.sourceforge.net> 2005-02-02 Marc Delisle <lem9@users.sourceforge.net>
* libraries/dbi/*: PMA_DBI_num_rows(): do not send a boolean * libraries/dbi/*: PMA_DBI_num_rows(): do not send a boolean
to mysqli_num_rows() or mysql_num_row(), it expects a result resource to mysqli_num_rows() or mysql_num_row(), it expects a result resource
* tbl_properties.inc.php: bug #1114550, changing the type of
a float unsigned column
2005-01-30 Marc Delisle <lem9@users.sourceforge.net> 2005-01-30 Marc Delisle <lem9@users.sourceforge.net>
* libraries/export/sql.php: bug #1108521, part 2: mysqli_num_rows * libraries/export/sql.php: bug #1108521, part 2: mysqli_num_rows

View File

@@ -257,6 +257,9 @@ for ($i = 0 ; $i < $num_fields; $i++) {
$length = $submit_length; $length = $submit_length;
} }
// rtrim the type, for cases like "float unsigned"
$type = rtrim($type);
$cnt_column_types = count($cfg['ColumnTypes']); $cnt_column_types = count($cfg['ColumnTypes']);
for ($j = 0; $j < $cnt_column_types; $j++) { for ($j = 0; $j < $cnt_column_types; $j++) {
$content_cells[$i][$ci] .= ' <option value="'. $cfg['ColumnTypes'][$j] . '"'; $content_cells[$i][$ci] .= ' <option value="'. $cfg['ColumnTypes'][$j] . '"';