[pgsqlclient-checkins] pgsqlclient_10/PostgreSql.Data.PgSqlClient/source PgDataReader.cs,1.6,1.7 PgE
Status: Inactive
Brought to you by:
carlosga_fb
|
From: <car...@us...> - 2003-08-22 23:22:47
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source
In directory sc8-pr-cvs1:/tmp/cvs-serv24924
Modified Files:
PgDataReader.cs PgErrorCollection.cs PgParameterCollection.cs
Log Message:
Added changes for allow cultureAwareCompare method of some classes to work with mono
Index: PgDataReader.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgDataReader.cs,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** PgDataReader.cs 7 Aug 2003 10:58:32 -0000 1.6
--- PgDataReader.cs 22 Aug 2003 15:13:50 -0000 1.7
***************
*** 775,779 ****
return CultureInfo.CurrentCulture.CompareInfo.Compare(strA, strB, CompareOptions.IgnoreKanaType | CompareOptions.IgnoreWidth | CompareOptions.IgnoreCase) == 0 ? true : false;
}
! catch (NotSupportedException)
{
return strA.ToUpper() == strB.ToUpper() ? true : false;
--- 775,779 ----
return CultureInfo.CurrentCulture.CompareInfo.Compare(strA, strB, CompareOptions.IgnoreKanaType | CompareOptions.IgnoreWidth | CompareOptions.IgnoreCase) == 0 ? true : false;
}
! catch (Exception)
{
return strA.ToUpper() == strB.ToUpper() ? true : false;
Index: PgErrorCollection.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgErrorCollection.cs,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** PgErrorCollection.cs 2 Aug 2003 19:43:01 -0000 1.1.1.1
--- PgErrorCollection.cs 22 Aug 2003 15:13:50 -0000 1.2
***************
*** 106,110 ****
return CultureInfo.CurrentCulture.CompareInfo.Compare(strA, strB, CompareOptions.IgnoreKanaType | CompareOptions.IgnoreWidth | CompareOptions.IgnoreCase) == 0 ? true : false;
}
! catch (NotSupportedException)
{
return strA.ToUpper() == strB.ToUpper() ? true : false;
--- 106,110 ----
return CultureInfo.CurrentCulture.CompareInfo.Compare(strA, strB, CompareOptions.IgnoreKanaType | CompareOptions.IgnoreWidth | CompareOptions.IgnoreCase) == 0 ? true : false;
}
! catch (Exception)
{
return strA.ToUpper() == strB.ToUpper() ? true : false;
Index: PgParameterCollection.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgParameterCollection.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** PgParameterCollection.cs 12 Aug 2003 14:25:05 -0000 1.2
--- PgParameterCollection.cs 22 Aug 2003 15:13:50 -0000 1.3
***************
*** 257,261 ****
return CultureInfo.CurrentCulture.CompareInfo.Compare(strA, strB, CompareOptions.IgnoreKanaType | CompareOptions.IgnoreWidth | CompareOptions.IgnoreCase) == 0 ? true : false;
}
! catch (NotSupportedException)
{
return strA.ToUpper() == strB.ToUpper() ? true : false;
--- 257,261 ----
return CultureInfo.CurrentCulture.CompareInfo.Compare(strA, strB, CompareOptions.IgnoreKanaType | CompareOptions.IgnoreWidth | CompareOptions.IgnoreCase) == 0 ? true : false;
}
! catch (Exception)
{
return strA.ToUpper() == strB.ToUpper() ? true : false;
|