Closing a statement

From: Kim Ho <kho(at)redhat(dot)com>
To: Barry Lind <blind(at)xythos(dot)com>
Cc: pgsql-jdbc-list <pgsql-jdbc(at)postgresql(dot)org>, Fernando Nasser <fnasser(at)redhat(dot)com>
Subject: Closing a statement
Date: 2003-06-26 17:27:59
Message-ID: 1056648479.28653.9.camel@topanga.toronto.redhat.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Barry Lind 2003-06-26 17:52:31 Re: Closing a statement
Previous Message Kris Jurka 2003-06-26 12:02:01 Re: [PATCHES] IPv6 patch doesn't work fine