Skip to content

Commit

Permalink
fix column with whitespace-only size spec
Browse files Browse the repository at this point in the history
  • Loading branch information
smhg committed Dec 11, 2024
1 parent bbb64a8 commit a097563
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Propel/Generator/Reverse/MysqlSchemaParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ public function getColumnFromRow(array $row, Table $table): Column
$/x';
if (preg_match($regexp, $row['Type'], $matches)) {
$nativeType = $matches[1];
if ($matches[2]) {
if (trim($matches[2])) {
$cpos = strpos($matches[2], ',');
if ($cpos !== false) {
$size = (int)substr($matches[2], 0, $cpos);
Expand Down

0 comments on commit a097563

Please sign in to comment.