Opened 15 years ago

Closed 14 years ago

#660 closed defect (fixed)

PostgreSQL connection doesn't re-open if closed previously

Reported by: jng Owned by: brentrobinson
Priority: minor Milestone: 3.6.0
Component: PostgreSQL Provider Version: 3.5.0
Severity: 3 Keywords:
Cc: External ID:

Description

  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?

Change History (4)

by jng, 15 years ago

Attachment: Program.cs added

C# source demonstrating the problem

comment:1 by gregboone, 14 years ago

Owner: changed from badreddinekaroui to brentrobinson

comment:2 by gregboone, 14 years ago

Milestone: 3.6.0

comment:3 by brentrobinson, 14 years ago

Resolution: fixed
Status: newclosed

Fixed in 3.6 (trunk) by revision 5383.

Backported to 3.5 by revision 5388. A fixed 3.5 version of the provider can be picked up at http://fdo.osgeo.org/content/downloads

Note: See TracTickets for help on using tickets.