SCM

[#1007408] empty NpgsqlConnection constructor is failing when restarting webserver in mono

View Trackers | Bugs | Download .csv | Monitor

Date:
2007-07-05 12:08
Priority:
3
State:
Open
Submitted by:
Nobody
Assigned to:
Nobody (None)
Npgsql Version:
cvs
Category:
Group:
Resolution:
None
Summary:
empty NpgsqlConnection constructor is failing when restarting webserver in mono

Detailed description
I have installed mono with mod_mono. When i use the Npgsql dll from cvs, width 2.0 support, the server crashes when the appdomain is reloaded. I have fixed this bug with 2 patches:

1: makes sure that a dispose of the connectorpool closes all connectors

Index: NpgsqlConnectorPool.cs
===================================================================
RCS file: /cvsroot/npgsql/Npgsql2/src/Npgsql/NpgsqlConnectorPool.cs,v
retrieving revision 1.2
diff -r1.2 NpgsqlConnectorPool.cs
71a72
> ClearAllPools();


2. making sure the empty constructor is not failing. This empty constructor is used, because i am using NpgsqlFactory, which invokes that constructor. When the empty constructor is doing nothing, the webserver is not crashing.

Index: NpgsqlConnection.cs
===================================================================
RCS file: /cvsroot/npgsql/Npgsql2/src/Npgsql/NpgsqlConnection.cs,v
retrieving revision 1.4
diff -r1.4 NpgsqlConnection.cs
117c117
< public NpgsqlConnection() : this(String.Empty)
---
> public NpgsqlConnection()

Followup

No Followups Have Been Posted

Attached Files:

Changes:

No Changes Have Been Made to This Item

Powered By FusionForge