Update of /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source
In directory sc8-pr-cvs1:/tmp/cvs-serv31775
Modified Files:
PgCommand.cs
Log Message:
Simplify InternalSetOutputParameters implementation
Index: PgCommand.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgCommand.cs,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** PgCommand.cs 7 Oct 2003 09:05:01 -0000 1.8
--- PgCommand.cs 7 Oct 2003 10:26:06 -0000 1.9
***************
*** 542,546 ****
internal void InternalSetOutputParameters()
{
! if (this.CommandType == CommandType.StoredProcedure && parameters.Count > 0)
{
IEnumerator paramEnumerator = Parameters.GetEnumerator();
--- 542,547 ----
internal void InternalSetOutputParameters()
{
! if (this.CommandType == CommandType.StoredProcedure &&
! parameters.Count > 0)
{
IEnumerator paramEnumerator = Parameters.GetEnumerator();
***************
*** 550,558 ****
while (paramEnumerator.MoveNext())
! {
! if (((PgParameter)paramEnumerator.Current).Direction == ParameterDirection.Output ||
! ((PgParameter)paramEnumerator.Current).Direction == ParameterDirection.ReturnValue)
{
! ((PgParameter)paramEnumerator.Current).Value = values[i];
i++;
}
--- 551,562 ----
while (paramEnumerator.MoveNext())
! {
! PgParameter parameter = ((PgParameter)paramEnumerator.Current);
!
! if (parameter.Direction == ParameterDirection.Output ||
! parameter.Direction == ParameterDirection.InputOutput ||
! parameter.Direction == ParameterDirection.ReturnValue)
{
! parameter.Value = values[i];
i++;
}
|