From: Carlos Guzm?n ?l. <car...@us...> - 2003-04-30 15:56:05
|
Update of /cvsroot/firebird/Net-Provider/source In directory sc8-pr-cvs1:/tmp/cvs-serv19732 Modified Files: FbStatement.cs Log Message: * Added changes for send to Firebird Server char fields filled with spaces. * source/INGDS/GDSException.cs: - Fixed incorrect constructor. Index: FbStatement.cs =================================================================== RCS file: /cvsroot/firebird/Net-Provider/source/FbStatement.cs,v retrieving revision 1.46 retrieving revision 1.47 diff -b -U3 -r1.46 -r1.47 --- FbStatement.cs 16 Apr 2003 15:58:47 -0000 1.46 +++ FbStatement.cs 30 Apr 2003 15:55:57 -0000 1.47 @@ -489,6 +489,10 @@ switch (in_sqlda.sqlvar[i].sqltype & ~1) { case GdsCodes.SQL_TEXT: + in_sqlda.sqlvar[i].sqldata = encoding.GetBytes((string)parameters[parameterName].Value); + in_sqlda.sqlvar[i].sqllen = encoding.GetMaxByteCount(in_sqlda.sqlvar[i].sqllen); + break; + case GdsCodes.SQL_VARYING: in_sqlda.sqlvar[i].sqldata = encoding.GetBytes((string)parameters[parameterName].Value); in_sqlda.sqlvar[i].sqllen = encoding.GetByteCount((string)parameters[parameterName].Value); |