SCM

[#1010668] Npgsql ConnectionStringBuilder provides no connectionstring properties

View Trackers | Bugs | Download .csv | Monitor

Date:
2009-07-02 18:59
Priority:
3
State:
Open
Submitted by:
Alaric Dailey (alaric)
Assigned to:
Nobody (None)
Npgsql Version:
None
Category:
Group:
Resolution:
None
Summary:
Npgsql ConnectionStringBuilder provides no connectionstring properties

Detailed description
To see what I am stating, register Npgsql in the gac, and machine config, then run the following code. Not having this code makes it very hard to programatically check connectionstrings for validity.



DataTable dt = DbProviderFactories.GetFactoryClasses();
foreach (DataRow row in dt.Rows)
{
string providerName = row["InvariantName"].ToString();
DbProviderFactory factory = null;
try
{
factory = DbProviderFactories.GetFactory(providerName);
DbConnectionStringBuilder csb = factory.CreateConnectionStringBuilder();
if (csb != null)
{
Debug.WriteLine(string.Format("------------- BEGIN PROVIDER {0} -------------", providerName));
foreach (string s in csb.Keys)
{
Debug.WriteLine("\t" + s);
}
Debug.WriteLine(string.Format("------------- END PROVIDER {0} -------------", providerName));
}
}
catch
{
Debug.WriteLine(string.Format("unable to create factory for provider: {0}", providerName));
}
}

Followup

Message
Date: 2009-12-02 19:58
Sender: Josh Cooley

The latest release has this fix. Please let us know if this works for you.
Date: 2009-08-24 01:01
Sender: Francisco Figueiredo jr.


Fixed in cvs.

Thanks for testcase

Attached Files:

Changes:

No Changes Have Been Made to This Item

Powered By FusionForge