Bug #61901 Problem with GetDbProviderManifestToken
Submitted: 18 Jul 2011 19:05 Modified: 3 Aug 2011 21:50
Reporter: Martin Masse Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / NET Severity:S2 (Serious)
Version:6.4.3 OS:Windows
Assigned to: Julio Casal CPU Architecture:Any

[18 Jul 2011 19:05] Martin Masse
Description:

The  GetDbProviderManifestToken has been changed in 6.3.7

The following line cause an exception when the culture is not set to US

double num = double.Parse(connection.ServerVersion.Substring(0, 3));

The problem is that culture cr-CA use a "," instead of "." to separate decimals.

How to repeat:

Run any web app and add this to web.config

 <globalization requestEncoding="utf-8" responseEncoding="utf-8" culture="fr-CA" uiCulture="fr-CA"  />
    

Suggested fix:
Please use a Parse method version who use a fix format.

Should be

double num = double.Parse(connection.ServerVersion.Substring(0, 3), CultureInfo.InvariantCulture.NumberFormat);
[21 Jul 2011 12:30] Martin Masse
Error in title
[3 Aug 2011 22:01] Julio Casal
Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release.

Fixed in 6.2.6, 6.3.8 and 6.4.4+.

If necessary, you can access the source repository and build the latest available version, including the bug fix. More information about accessing the source trees is available at

    http://dev.mysql.com/doc/en/installing-source.html
[3 Aug 2011 22:01] Julio Casal
Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release.

Fixed in 6.2.6, 6.3.8 and 6.4.4+.

If necessary, you can access the source repository and build the latest available version, including the bug fix. More information about accessing the source trees is available at

    http://dev.mysql.com/doc/en/installing-source.html
[3 Aug 2011 22:01] Julio Casal
Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release.

Fixed in 6.2.6, 6.3.8 and 6.4.4+.

If necessary, you can access the source repository and build the latest available version, including the bug fix. More information about accessing the source trees is available at

    http://dev.mysql.com/doc/en/installing-source.html