Update of /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24485
Modified Files:
PgCommand.cs
Log Message:
Fix for matchEvaluator(Match match) method
Index: PgCommand.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgCommand.cs,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -d -r1.26 -r1.27
*** PgCommand.cs 9 Feb 2004 14:19:22 -0000 1.26
--- PgCommand.cs 9 Feb 2004 21:52:04 -0000 1.27
***************
*** 766,781 ****
if (!this.matchReplaces.ContainsKey(match.Value))
{
! if (this.isPrepared)
! {
! this.matchReplaces.Add(
! match.Value,
! "$" + ((matchIndex++) + 1).ToString());
! }
! else
! {
this.matchReplaces.Add(
match.Value,
this.parameters[matchIndex++].ConvertToPgString());
! }
}
return this.matchReplaces[match.Value].ToString();
--- 766,778 ----
if (!this.matchReplaces.ContainsKey(match.Value))
{
! #if (SIMPLE_PROTOCOL)
this.matchReplaces.Add(
match.Value,
this.parameters[matchIndex++].ConvertToPgString());
! #else
! this.matchReplaces.Add(
! match.Value,
! "$" + ((matchIndex++) + 1).ToString());
! #endif
}
return this.matchReplaces[match.Value].ToString();
|