Merge remote-tracking branch 'origin/QA_4_2' into QA_4_2
This commit is contained in:
commit
0f13675558
@ -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 = '';
|
||||
}
|
||||
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user