Merge remote-tracking branch 'origin/QA_4_2' into QA_4_2

This commit is contained in:
Weblate 2014-05-12 13:50:13 +02:00
commit 0f13675558
2 changed files with 4 additions and 2 deletions

View File

@ -2962,7 +2962,9 @@ class PMA_Util
// convert to lowercase just to be sure
$type = strtolower(chop(substr($columnspec, 0, $first_bracket_pos)));
} else {
$type = strtolower($columnspec);
// Split trailing attributes such as unsigned, binary, zerofill and get data type name
$type_parts = explode(' ',$columnspec);
$type = strtolower($type_parts[0]);
$spec_in_brackets = '';
}

View File

@ -117,7 +117,7 @@ class PMA_ExtractColumnSpec_Test extends PHPUnit_Framework_TestCase
array(
"INT UNSIGNED zerofill",
array(
'type' => 'int unsigned zerofill',
'type' => 'int',
'print_type' => 'int',
'binary' => false,
'unsigned' => true,