MySQL bug #20910 fixed in 5.0.25 (http://dev.mysql.com/doc/refman/5.0/en/news-5-0-25.html)
This commit is contained in:
@@ -184,14 +184,16 @@ if ($abort == FALSE) {
|
||||
* or maybe make it part of PMA_DBI_get_fields();
|
||||
*/
|
||||
|
||||
// We also need this to correctly learn if a TIMESTAMP is NOT NULL, since
|
||||
// SHOW FULL FIELDS says NULL and SHOW CREATE TABLE says NOT NULL (tested
|
||||
// in MySQL 4.0.25).
|
||||
if (PMA_MYSQL_INT_VERSION < 50025) {
|
||||
// We also need this to correctly learn if a TIMESTAMP is NOT NULL, since
|
||||
// SHOW FULL FIELDS says NULL and SHOW CREATE TABLE says NOT NULL (tested
|
||||
// in MySQL 4.0.25).
|
||||
|
||||
$show_create_table = PMA_DBI_fetch_value(
|
||||
'SHOW CREATE TABLE ' . PMA_backquote($db) . '.' . PMA_backquote($table),
|
||||
0, 1);
|
||||
$analyzed_sql = PMA_SQP_analyze(PMA_SQP_parse($show_create_table));
|
||||
$show_create_table = PMA_DBI_fetch_value(
|
||||
'SHOW CREATE TABLE ' . PMA_backquote($db) . '.' . PMA_backquote($table),
|
||||
0, 1);
|
||||
$analyzed_sql = PMA_SQP_analyze(PMA_SQP_parse($show_create_table));
|
||||
}
|
||||
|
||||
require './libraries/tbl_properties.inc.php';
|
||||
}
|
||||
|
Reference in New Issue
Block a user