Timestamp related bug does not affect MySQL 5. See http://faq.webyog.com/content/35/173/en/problems-with-timestamp-not-null-and-mysql-41.html
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
This commit is contained in:
parent
6831b34c80
commit
fd77f8d5f4
@ -2488,27 +2488,6 @@ function PMA_displayHtmlForColumnChange($db, $table, $selected, $action)
|
|||||||
$GLOBALS['action'] = 'tbl_structure.php';
|
$GLOBALS['action'] = 'tbl_structure.php';
|
||||||
$GLOBALS['num_fields'] = $num_fields;
|
$GLOBALS['num_fields'] = $num_fields;
|
||||||
|
|
||||||
// Get more complete field information.
|
|
||||||
// For now, this is done to obtain MySQL 4.1.2+ new TIMESTAMP options
|
|
||||||
// and to know when there is an empty DEFAULT value.
|
|
||||||
// Later, if the analyser returns more information, it
|
|
||||||
// could be executed to replace the info given by SHOW FULL COLUMNS FROM.
|
|
||||||
/**
|
|
||||||
* @todo put this code into a require()
|
|
||||||
* or maybe make it part of $GLOBALS['dbi']->getColumns();
|
|
||||||
*/
|
|
||||||
|
|
||||||
// We also need this to correctly learn if a TIMESTAMP is NOT NULL, since
|
|
||||||
// SHOW FULL COLUMNS says NULL and SHOW CREATE TABLE says NOT NULL (tested
|
|
||||||
// in MySQL 4.0.25).
|
|
||||||
|
|
||||||
$show_create_table = $GLOBALS['dbi']->fetchValue(
|
|
||||||
'SHOW CREATE TABLE ' . PMA_Util::backquote($db) . '.'
|
|
||||||
. PMA_Util::backquote($table),
|
|
||||||
0, 1
|
|
||||||
);
|
|
||||||
$analyzed_sql = PMA_SQP_analyze(PMA_SQP_parse($show_create_table));
|
|
||||||
unset($show_create_table);
|
|
||||||
/**
|
/**
|
||||||
* Form for changing properties.
|
* Form for changing properties.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user