Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 2.1, 2.1.1, 2.1.2
-
Fix Version/s: None
-
Component/s: Drivers, Platforms, Schema Managers
-
Labels:None
Description
It's not possible to use char fields in the ORM layer.
It should be possible to use something like:
@Column(type="char") or ...
@Column(type="string", fixed=true) or ...
@Column(type="fixedstring")
I dont think this is worth including in the main distribution. A char does not save much compared to a varchar (1 Byte?) and you already have 2 options to make a char:
IMHO, just use a string type with the length you want: @Column(type="string", length=2). That becomes a varchar with length 2.