Skip to content

Commit

Permalink
Dev: 334366c Child
Browse files Browse the repository at this point in the history
Dev: potential issue with something like DECIMAL (30,10) not null
  • Loading branch information
Shnoulle committed Aug 28, 2015
1 parent 334366c commit 77e5aec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion application/core/db/MysqlSchema.php
Expand Up @@ -38,7 +38,8 @@ public function getColumnType($type)
}
else
{ // Else join the yii type and the param ( decimal don't have params, other ?)
$result = $baseType.$param;
preg_match('/^([[:alpha:]]+)\s*(.*)$/', $baseType, $baseMatches);
$result = join(" ",array($baseMatches[1],$param,$baseMatches[2]));
}
}
else
Expand Down
3 changes: 2 additions & 1 deletion application/core/db/PgsqlSchema.php
Expand Up @@ -34,7 +34,8 @@ public function getColumnType($type)
}
else
{ // Else join the yii type and the param ( decimal don't have params, other ?)
$result = $baseType.$param;
preg_match('/^([[:alpha:]]+)\s*(.*)$/', $baseType, $baseMatches);
$result = join(" ",array($baseMatches[1],$param,$baseMatches[2]));
}
}
else
Expand Down

0 comments on commit 77e5aec

Please sign in to comment.