Re: Closing a statement - Mailing list pgsql-jdbc

From Barry Lind
Subject Re: Closing a statement
Date
Msg-id 3EFB32DF.3060303@xythos.com
Whole thread Raw
In response to Closing a statement  (Kim Ho <kho@redhat.com>)
List pgsql-jdbc
Kim,

Yes I agree.  In the resultset code we are a little better at this, but
the statement code is lacking these checks, and they should be there.

--Barry


Kim Ho wrote:
> 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
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 7: don't forget to increase your free space map settings
>



pgsql-jdbc by date:

Previous
From: Kim Ho
Date:
Subject: Closing a statement
Next
From: "Cesar Amadeo"
Date:
Subject: Client_encoding