Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.1.6
-
Component/s: None
-
Security Level: All
-
Labels:None
-
Environment:CentOS 4, PHP 5.3.8, Doctrine 2.1.4
Description
I created a @Column that was type "bigint" and when inserting very large numbers, they were getting capped in SQLite3 at 2147483647.
I switched Doctrine/DBAL/Types/BigIntType.php, line 46 from:
return \PDO::PARAM_INT;
to:
return \PDO::PARAM_STR;
and now it is storing the full numbers. I am unsure, however, whether this is the right change or will affect other database layers. Any thoughts?
Matt
Fixed