[fdo-trac] #660: PostgreSQL connection doesn't re-open if closed previously

FDO trac_fdo at osgeo.org
Mon Jul 5 07:41:54 EDT 2010


#660: PostgreSQL connection doesn't re-open if closed previously
-----------------------------------+----------------------------------------
   Reporter:  jng                  |       Owner:  badreddinekaroui
       Type:  defect               |      Status:  new             
   Priority:  minor                |   Milestone:                  
  Component:  PostgreSQL Provider  |     Version:  3.5.0           
   Severity:  3                    |    Keywords:                  
External_id:                       |  
-----------------------------------+----------------------------------------
 1. Create a OSGeo.PostgreSQL IConnection
 2. Assign a valid connection string to IConnection.ConnectionString
 property
 3. Call IConnection.Open()
 4. Call IConnection.Close()
 5. Call IConnection.Open() again. An exception is thrown. If the same
 connection string is re-assigned to IConnection.ConnectionString between
 Close() and Open(), no exception is thrown

 Attached is C# source that demonstrates the problem.

 I'm guessing assigning the ConnectionString property sets some internal
 state that is invalidated when Close() is called?

-- 
Ticket URL: <http://trac.osgeo.org/fdo/ticket/660>
FDO <http://fdo.osgeo.org/>
Feature Data Objects


More information about the fdo-trac mailing list