[pgsqlclient-checkins] pgsqlclient/PostgreSql.Data.PGSqlClient/source PGCommand.cs,1.5,1.6
Status: Inactive
Brought to you by:
carlosga_fb
From: <car...@us...> - 2003-07-30 18:34:48
|
Update of /cvsroot/pgsqlclient/pgsqlclient/PostgreSql.Data.PGSqlClient/source In directory sc8-pr-cvs1:/tmp/cvs-serv2408 Modified Files: PGCommand.cs Log Message: Fixed some problems with named parameters that mades the CommandBuilder to non work. Index: PGCommand.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient/PostgreSql.Data.PGSqlClient/source/PGCommand.cs,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** PGCommand.cs 28 Jul 2003 12:18:48 -0000 1.5 --- PGCommand.cs 30 Jul 2003 18:34:45 -0000 1.6 *************** *** 467,474 **** } ! if (parameters.Count != 0) { - // Get named parameters in CommandText - namedParameters = search.Matches(CommandText); // Subst parameterNames with $position parseParameterNames(); --- 467,475 ---- } ! // Get named parameters in CommandText ! namedParameters = search.Matches(CommandText); ! ! if (parameters.Count != 0 || namedParameters.Count != 0) { // Subst parameterNames with $position parseParameterNames(); *************** *** 591,595 **** private void parseParameterNames() { ! if (parameters.Count != 0 && namedParameters.Count != 0) { for (int i = 0; i < namedParameters.Count; i++) --- 592,596 ---- private void parseParameterNames() { ! if (namedParameters.Count != 0) { for (int i = 0; i < namedParameters.Count; i++) |