Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0.0-RC1-RC3
-
Fix Version/s: 2.0-RC4
-
Component/s: None
-
Labels:None
-
Environment:Mysql
Description
I use the annotation mapping:
here's my mapping informations:
/** * @var mixed optionValue * @orm:Column(nullable="true", name="option_value", length="2000", type="string") */ protected $optionValue;
when i check the mysql column type it's still "varchar(255)".
Fixed, the max length of varchars was set to 255.
However this is rather the default value. The maximum value is now 4000, which is the smallest common denominator between all supported vendors (Oracle is that).
In the future we would probably allow arbitrary large sizes here and switch to a CLOB definition automatically if the specifed string length is larger than max length.