Skip to content

Commit

Permalink
Fixed issue with migrations and decimal or numeric table size
Browse files Browse the repository at this point in the history
Fixes propelorm#695. The "NUMERIC" type is not mapped in the array, so if in line 288 always returned false.
  • Loading branch information
Marcin Kucharski committed Jun 12, 2013
1 parent 9c19ce6 commit c1fc85d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generator/lib/reverse/pgsql/PgsqlSchemaParser.php
Expand Up @@ -284,8 +284,8 @@ private function processLengthScale($intTypmod, $strName)
return $arrRetVal;
} // if ($intTypmod == -1)

// Numeric Datatype?
if ($strName == $this->getMappedNativeType(PropelTypes::NUMERIC)) {
// Decimal Datatype?
if ($strName == $this->getMappedNativeType(PropelTypes::DECIMAL)) {
$intLen = ($intTypmod - 4) >> 16;
$intPrec = ($intTypmod - 4) & 0xffff;
$intLen = sprintf("%ld", $intLen);
Expand Down

0 comments on commit c1fc85d

Please sign in to comment.