Merge #16211 - Fix #16076 Cannot edit or export TIMESTAMP column with default CURRENT_TIMESTAMP in MySQL >= 8.0.13
Pull-request: #16211 Fix: #16076 Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
commit
92e15366b9
@ -1670,7 +1670,7 @@ class InsertEdit
|
||||
$readOnly
|
||||
);
|
||||
|
||||
if (preg_match('/(VIRTUAL|PERSISTENT|GENERATED)/', $column['Extra']) && $column['Extra'] !== 'DEFAULT_GENERATED') {
|
||||
if (preg_match('/(VIRTUAL|PERSISTENT|GENERATED)/', $column['Extra']) && strpos($column['Extra'], 'DEFAULT_GENERATED') === false) {
|
||||
$html_output .= '<input type="hidden" name="virtual'
|
||||
. $column_name_appendix . '" value="1">';
|
||||
}
|
||||
|
||||
@ -1810,7 +1810,7 @@ class Table
|
||||
if ((
|
||||
strpos($column['Extra'], 'GENERATED') === false
|
||||
&& strpos($column['Extra'], 'VIRTUAL') === false
|
||||
) || $column['Extra'] === 'DEFAULT_GENERATED') {
|
||||
) || strpos($column['Extra'], 'DEFAULT_GENERATED') !== false) {
|
||||
$ret[] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user