This commit is contained in:
Alexander M. Turek
2005-02-03 19:52:46 +00:00
parent a56acf0d61
commit 303c4f5fb1
2 changed files with 7 additions and 2 deletions

View File

@@ -62,8 +62,10 @@ if (isset($submit_num_fields)) {
}
if ($field_attribute[$i] != '') {
$query .= ' ' . $field_attribute[$i];
} else if (PMA_MYSQL_INT_VERSION >= 40100 && isset($field_charset[$i]) && $field_charset[$i] != '') {
$query .= ' CHARACTER SET ' . $field_charset[$i];
} else if (PMA_MYSQL_INT_VERSION >= 40100 && isset($field_collation[$i]) && $field_collation[$i] != '') {
list($tmp_charset) = explode('_', $field_collation[$i]);
$query .= ' CHARACTER SET ' . $tmp_charset . ' COLLATE ' . $field_collation[$i];
unset($tmp_charset);
}
if ($field_default[$i] != '') {
if (strtoupper($field_default[$i]) == 'NULL') {