Issue Details (XML | Word | Printable)

Key: DNET-549
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Jiri Cincura
Reporter: Lukáลก Vykydal
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
.NET Data provider

When you change culture of application while it's connected to firebird database, the connection won't be returned into pool.

Created: 24/Mar/14 09:42 PM   Updated: 15/Apr/14 08:24 AM
Component/s: ADO.NET Provider
Affects Version/s: 4.1.0.0
Fix Version/s: 4.1.5.0

Time Tracking:
Not Specified

Environment:  Fb .NET Provider version 4.1.0.0 and .NET FW version: 4.0.30319 and ASP .NET 4.0.30319.34009. OS: Windows 8.1 64bit


 Description  « Hide
i found interesting bug. When you change culture of application while it's connected to firebird database, the connection won't be returned into pool.

Here is example code (from Page_Load) :
       this.Culture = "en-GB";
        FbConnection fbc = new FbConnection("Database=d:/database.fdb;DataSource=localhost;User=sysdba;Password=masterkey;Dialect=1;Charset=UTF8;Pooling=true;MinPoolSize=0;MaxPoolSize=10;Connection lifetime=30;");
        fbc.Open();

        this.Culture = "cs-CZ";

// this.Culture = "en-GB"; When you change it back everything will be OK

        fbc.Close();

this code will fail after 10 calls on "System.InvalidOperationException: Connection pool is full". Its thrown from "FirebirdSql.Data.FirebirdClient.Pool.CreateNewConnectionIfPossibleImpl".

After quick look into the source code i think that problem is in generating NormalizedConnectionString (FbConnectgionString.cs:233). This code is probably culture dependent.

I'm using Fb .NET Provider version 4.1.0.0 and .NET FW version: 4.0.30319 and ASP .NET 4.0.30319.34009

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.