[pgsqlclient-checkins] pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/NPgClient PgCharSetCollecti
Status: Inactive
Brought to you by:
carlosga_fb
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/NPgClient In directory sc8-pr-cvs1:/tmp/cvs-serv24452 Modified Files: PgCharSetCollection.cs PgClientErrorCollection.cs PgTypeCollection.cs Log Message: Added changes for allow cultureAwareCompare method of some classes to work with mono Index: PgCharSetCollection.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/NPgClient/PgCharSetCollection.cs,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** PgCharSetCollection.cs 2 Aug 2003 19:43:02 -0000 1.1.1.1 --- PgCharSetCollection.cs 22 Aug 2003 15:13:36 -0000 1.2 *************** *** 99,103 **** 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; --- 99,103 ---- 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: PgClientErrorCollection.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/NPgClient/PgClientErrorCollection.cs,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** PgClientErrorCollection.cs 2 Aug 2003 19:43:02 -0000 1.1.1.1 --- PgClientErrorCollection.cs 22 Aug 2003 15:13:36 -0000 1.2 *************** *** 87,91 **** 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; --- 87,91 ---- 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: PgTypeCollection.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/NPgClient/PgTypeCollection.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** PgTypeCollection.cs 2 Aug 2003 21:12:16 -0000 1.2 --- PgTypeCollection.cs 22 Aug 2003 15:13:36 -0000 1.3 *************** *** 124,128 **** 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; --- 124,128 ---- 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; |