c# - ERROR: 22001: value too long for type character varying(255) -
there! using postgresql + nhibernate. have 4 fields in mapping file:
<property name="name" not-null="false" type="string"/> <property name="include" not-null="false" type="string"/> <property name="exclude" not-null="false" type="string"/> when compile code there many insertions queries db. postgresql gives me error
"error: 22001: value long type character varying(255)"
i know there "text" type in postgresql capabilities of storing data. how make nhibernate provide fields "text"-type?
i found solution! should define mapped fields as:
<property name="name" not-null="false" type="stringclob"/> <property name="include" not-null="false" type="stringclob"/> <property name="exclude" not-null="false" type="stringclob"/>
Comments
Post a Comment