Hi,

CloneParameter() in the driver for some reason doesn't copy the size, scale
and precision, which I find surprising:

protected virtual IDbDataParameter CloneParameter(IDbCommand cmd,
                                IDbDataParameter originalParameter)
{
    var clone = cmd.CreateParameter();
    clone.DbType = originalParameter.DbType;
    clone.ParameterName = originalParameter.ParameterName;
    clone.Value = originalParameter.Value;
    return clone;
}

However, adding in size/scale/precision above causes a test to fail on
ODBC. To me it looks like it might be a bug in OdbcParameter, though even
without that bug it would fail if the affected string parameter was even
larger. Is it possible to make the SQL Server native client or SQL Server
understand the WLONGVARCHAR as nvarchar(max) instead of ntext? Otherwise I
suppose it would require addings casts to the SQL.

Details here:
https://github.com/nhibernate/nhibernate-core/pull/528

/Oskar

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"nhibernate-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nhibernate-development+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to