Permalink
Browse files

Simplify fix for test issue with bigint type.

  • Loading branch information...
1 parent 56f2193 commit ae5ae2c8994cd72b6b28fedc30fa4a2f6dcb8adc @posulliv posulliv committed Aug 29, 2012
@@ -51,16 +51,6 @@ public function getBindingType()
*/
public function convertToPHPValue($value, AbstractPlatform $platform)
{
- if (null === $value) {
- return $value;
- }
- /*
- * PostgreSQL detects 32 vs 64 bit systems and casts correctly
- * for bigint types.
- */
- if ($platform->getName() === 'postgresql' && PHP_INT_SIZE !== 4) {
- return (string) $value;
- }
- return $value;
+ return (null === $value) ? null : (string) $value;
}
}
@@ -98,4 +98,4 @@ public function testIdempotentDataConversion($type, $originalValue, $expectedPhp
}
}
}
-}
+}

0 comments on commit ae5ae2c

Please sign in to comment.