[pgsqlclient-checkins] pgsqlclient_10/PostgreSql.Data.PgSqlClient/source PgCommand.cs,1.40,1.41
Status: Inactive
Brought to you by:
carlosga_fb
From: Carlos G. Á. <car...@us...> - 2004-08-28 20:50:25
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10502 Modified Files: PgCommand.cs Log Message: Added nbetter checks in the InternalSetOutputParameters method Index: PgCommand.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgCommand.cs,v retrieving revision 1.40 retrieving revision 1.41 diff -C2 -d -r1.40 -r1.41 *** PgCommand.cs 22 Jul 2004 10:57:53 -0000 1.40 --- PgCommand.cs 28 Aug 2004 20:50:10 -0000 1.41 *************** *** 577,595 **** int i = 0; ! object[] values = (object[])this.statement.Rows[0]; ! ! 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++; ! } ! } ! } } --- 577,600 ---- int i = 0; ! if (this.statement.Rows != null && this.statement.Rows.Length > 0) ! { ! object[] values = (object[])this.statement.Rows[0]; ! if (values != null && values.Length > 0) ! { ! 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++; ! } ! } ! } ! } ! } } |