Closing a statement - Mailing list pgsql-jdbc

From Kim Ho
Subject Closing a statement
Date
Msg-id 1056648479.28653.9.camel@topanga.toronto.redhat.com
Whole thread Raw
Responses Re: Closing a statement  (Barry Lind <blind@xythos.com>)
List pgsql-jdbc
After running the JDBC Compatibility Test Suite, I've found that
statements aren't actually closed when you use stmt.close(). If you try
to execute a closed statement, it _should_ throw an SQLException, but
doesn't.

Besides the freeing of resources (which is already handled in close()
but m_binds[] should probably be freed as well), certain operations
should be disallowed.

I was thinking of all set/get/execute operations.

Any suggestions/comments?

Cheers,

Kim


pgsql-jdbc by date:

Previous
From: Kris Jurka
Date:
Subject: Re: [PATCHES] IPv6 patch doesn't work fine
Next
From: Barry Lind
Date:
Subject: Re: Closing a statement