SCM

[#1011001] Bug in NpgsqlConnectionStringBuilder affects on cache and connection pool

View Trackers | Bugs | Download .csv | Monitor

Date:
2011-02-23 13:38
Priority:
3
State:
Open
Submitted by:
Alex A Ermoshenko (erax)
Assigned to:
Nobody (None)
Npgsql Version:
None
Category:
Group:
Resolution:
None
Summary:
Bug in NpgsqlConnectionStringBuilder affects on cache and connection pool

Detailed description
Test code:

static void ConnectionStringTest()
{
string connString = "Server=server;Port=5432;User Id=user;Password=passwor;Database=database;";
NpgsqlConnectionStringBuilder csb1 = new NpgsqlConnectionStringBuilder(connString);

string cs1 = csb1.ToString();

NpgsqlConnectionStringBuilder csb2 = new NpgsqlConnectionStringBuilder(cs1);

string cs2 = csb2.ToString();

if (cs1 != cs2)
throw new InvalidOperationException("Are not equal!");

/*
cs1 contents:
HOST=server;PORT=5432;PROTOCOL=3;DATABASE=database;USER ID=user;PASSWORD=passwor;
SSL=False;SSLMODE=Disable;TIMEOUT=15;
SEARCHPATH=;
POOLING=True;CONNECTIONLIFETIME=15;MINPOOLSIZE=1;MAXPOOLSIZE=20;
SYNCNOTIFICATION=False;COMMANDTIMEOUT=20;ENLIST=False;
PRELOADREADER=False;USEEXTENDEDTYPES=False;INTEGRATED SECURITY=False;
COMPATIBLE=0.0.0.0
*/
/*
cs2 contents:
HOST=server;PORT=5432;PROTOCOL=3;DATABASE=database;USER ID=user;PASSWORD=passwor;
SSL=False;SSLMODE=Disable;TIMEOUT=15;
POOLING=True;CONNECTIONLIFETIME=15;MINPOOLSIZE=1;MAXPOOLSIZE=20;
SYNCNOTIFICATION=False;COMMANDTIMEOUT=20;ENLIST=False;
PRELOADREADER=False;USEEXTENDEDTYPES=False;INTEGRATED SECURITY=False;
COMPATIBLE=0.0.0.0

SEARCHPATH=; - magically disappeared
*/

}

Followup

Message
Date: 2013-04-13 14:57
Sender: Shay Rojansky

Submitted a patch: https://github.com/franciscojunior/Npgsql2/pull/15

Attached Files:

Changes:

No Changes Have Been Made to This Item

Powered By FusionForge