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
- Create a OSGeo.PostgreSQL IConnection
- Assign a valid connection string to IConnection.ConnectionString property
- Call IConnection.Open()
- Call IConnection.Close()
- 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?
Attachments (1)
Change History (4)
by , 15 years ago
Attachment: | Program.cs added |
---|
comment:1 by , 14 years ago
Owner: | changed from | to
---|
comment:2 by , 14 years ago
Milestone: | → 3.6.0 |
---|
comment:3 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
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.
C# source demonstrating the problem