On 13.4.2006 0:03 Carlos Guzmán Álvarez wrote:
In GDS implementations before the value of a char/varchar parameter is
written to the socket
the lenght of the string value gets compared with the lenght of the
field if it's greater an exception get thrown:
if ((param.Length %
param.Charset.BytesPerCharacter) == 0 &&
svalue.Length > param.CharCount)
{
throw new IscException(335544321);
}
Before aksing the question, I was trying this. And no exception was
thrown - I promise. Now it's working. :\
That depends but generally yes, as that way the parameter descriptor
could be done without making a request to the server.
OK. THX.
BTW If I specify the wrong size, the excepetion is thrown, although the
data can be stored. So I think it's better not to specify the size, in
the future somebody will change the table structure, ... ;) But on the
other side, I will save one request.
--
Jiri Cincura
http://www.cincura.net/
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider