Subject Re: Connection does not close properly
Author Roman Rokytskyy
Hi,

> No, this is problem in CVS code. I just checked, GDS_Impl.disconnect
> (db) is called only when database is created (ok), in
> isc_attach_database if error occurs (ok), and in GDS_Impl.connect
> (db) if connection was not accepted. I think we must close it when
> isc_detach_database is called.
>
> I'm going to incorporate this fix into the CVS code.

Done. I implemented it a little bit different. Now, on
isc_detach_database db handle is invalidated and cannot be used
anymore. After invalidation any call to it will cause
IllegalStateException. All our test cases succeed.

Please, if you get this IllegalStateException in your code,
immediately either post it here or send to me per email.

Best regards,
Roman Rokytskyy