Hi,
I'm using MySQL DB and I'm trying to use a LONGBLOB field.
when I run:
Code:
var conf = new Configuration();
conf.Configure();
_sessionFactory = conf.BuildSessionFactory();
With this mapping:
Code:
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
assembly="Errore"
namespace="Errore">
<class name="Documento" table="Documenti">
<id name="Id">
<generator class="identity"/>
</id>
<property name="FileRawData" not-null="false"/>
</class>
</hibernate-mapping>
and this class:
Code:
public class Documento
{
public Documento(){}
public virtual int Id { get; set; }
public virtual byte[] FileRawData { get; set; }
}
I get overflow exception for type Int32.
I downloaded sourcecode and I think I've found the problem.
In class "AbstractColumnMetaData : IColumnMetadata"
there is "private int columnSize;" and LONGBLOB size (4GB) exceed int size!
I tryied to change in Int64 and it seems ok... but... is this the correct solution??
danyolgiax