[pgsqlclient-checkins] pgsqlclient_10/PostgreSql.Data.PgSqlClient/source PgCommand.cs,1.31,1.32
Status: Inactive
Brought to you by:
carlosga_fb
From: Carlos Guzm?n ?l. <car...@us...> - 2004-03-23 16:04:10
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23132 Modified Files: PgCommand.cs Log Message: Fixed Clone implementation Index: PgCommand.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgCommand.cs,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -d -r1.31 -r1.32 *** PgCommand.cs 8 Mar 2004 16:23:25 -0000 1.31 --- PgCommand.cs 23 Mar 2004 15:53:41 -0000 1.32 *************** *** 307,316 **** object ICloneable.Clone() { ! PgCommand command = new PgCommand( ! this.commandText, ! this.connection, ! this.transaction); ! ! command.CommandType = this.commandType; return command; --- 307,322 ---- object ICloneable.Clone() { ! PgCommand command = new PgCommand(); ! ! command.CommandText = this.commandText; ! command.Connection = this.connection; ! command.Transaction = this.transaction; ! command.CommandType = this.CommandType; ! command.UpdatedRowSource = this.UpdatedRowSource; ! ! for (int i=0; i < this.Parameters.Count; i++) ! { ! command.Parameters.Add(((ICloneable)this.Parameters[i]).Clone()); ! } return command; |