Skip to content

Commit a8fa38b

Browse files
committed
MC-14884: Fix regexp to preserve group name order
1 parent 18fabf0 commit a8fa38b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/Zend/Db/Adapter/Pdo/Mysql.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ public function describeTable($tableName, $schemaName = null)
200200
$row[$type] = 'float';
201201
$precision = $matches[1];
202202
$scale = $matches[2];
203-
} else if (preg_match('/^((?:big|medium|small|tiny)?int)(\((\d+)\))?/', $row[$type], $matches)) {
203+
} else if (preg_match('/^((?:big|medium|small|tiny)?int)(?:\((\d+)\))?/', $row[$type], $matches)) {
204204
$row[$type] = $matches[1];
205205
// The optional argument of a MySQL int type is not precision
206206
// or length; it is only a hint for display width.

0 commit comments

Comments
 (0)