native comments
This commit is contained in:
@@ -197,7 +197,11 @@ if (isset($submit_num_fields)) {
|
||||
$cfgRelation = PMA_getRelationsParam();
|
||||
|
||||
// garvin: Update comment table, if a comment was set.
|
||||
if (isset($field_comments) && is_array($field_comments) && $cfgRelation['commwork']) {
|
||||
// lem9: FIXME: here we take care of native comments and
|
||||
// pmadb-style comments, however, in the case of
|
||||
// native comments, users do not see the COMMENT clause
|
||||
// when SQL query is displayed
|
||||
if (isset($field_comments) && is_array($field_comments) && ($cfgRelation['commwork'] || PMA_MYSQL_INT_VERSION >= 40100)) {
|
||||
foreach ($field_comments AS $fieldindex => $fieldcomment) {
|
||||
PMA_setComment($db, $table, $field_name[$fieldindex], $fieldcomment);
|
||||
}
|
||||
|
Reference in New Issue
Block a user