From: Carlos G. Á. <car...@us...> - 2005-09-12 14:48:27
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/source/PostgreSql/Data/PostgreSqlClient In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15275/PostgreSql/Data/PostgreSqlClient Modified Files: PgCommand.cs Log Message: Updated sources Index: PgCommand.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/source/PostgreSql/Data/PostgreSqlClient/PgCommand.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** PgCommand.cs 11 Sep 2005 12:12:31 -0000 1.3 --- PgCommand.cs 12 Sep 2005 14:48:19 -0000 1.4 *************** *** 462,467 **** string portalName = "PR" + this.GetStmtName(); ! this.statement = conn.Database.CreateStatement( ! prepareName, portalName, this.ParseParameterNames(sql)); // Parse statement --- 462,466 ---- string portalName = "PR" + this.GetStmtName(); ! this.statement = conn.Database.CreateStatement(prepareName, portalName, this.ParseParameterNames(sql)); // Parse statement *************** *** 487,491 **** try { ! if (this.parameters.Count != 0) { // Set parameter values --- 486,490 ---- try { ! if (this.Parameters.Count != 0) { // Set parameter values *************** *** 686,690 **** private void SetParameterValues() { ! if (this.parameters.Count != 0) { for (int i = 0; i < this.statement.Parameters.Length; i++) --- 685,689 ---- private void SetParameterValues() { ! if (this.Parameters.Count != 0) { for (int i = 0; i < this.statement.Parameters.Length; i++) *************** *** 694,704 **** if (this.namedParameters.Count > 0) { ! index = this.parameters.IndexOf(this.namedParameters[i]); } ! if (this.parameters[index].Direction == ParameterDirection.Input || ! this.parameters[index].Direction == ParameterDirection.InputOutput) { ! if (this.parameters[index].Value == System.DBNull.Value) { this.statement.Parameters[i].Value = null; --- 693,703 ---- if (this.namedParameters.Count > 0) { ! index = this.Parameters.IndexOf(this.namedParameters[i]); } ! if (this.Parameters[index].Direction == ParameterDirection.Input || ! this.Parameters[index].Direction == ParameterDirection.InputOutput) { ! if (this.Parameters[index].Value == System.DBNull.Value) { this.statement.Parameters[i].Value = null; *************** *** 706,710 **** else { ! this.statement.Parameters[i].Value = this.parameters[index].Value; } } --- 705,709 ---- else { ! this.statement.Parameters[i].Value = this.Parameters[index].Value; } } |