RE: How is a PreparedStatement re-used ?
James <[email protected]>
| Newsgroups | gmane.comp.db.mckoi |
|---|---|
| Message-ID | <[email protected]> |
>>Is it true that McKoi is only able to reuse a >>previous PreparedStatement from the same session ? I am not sure what you mean by session. If you mean a connection, then yes, Statement objects and decendants of Statement--PreparedStatement--are linked to the Connection they were created from. If you close() the connection any statements that were created from it can no longer be used. If you mean transaction, then no, a given Statement object can be used across an indefinite number of transactions, all with the same Connection instance. --------------------------------------------------------------- Mckoi SQL Database mailing list http://www.mckoi.com/database/ To unsubscribe, send a message to [email protected]