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

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -