[Opensource] protecting prepared statements

larry hamel expresso at codeguild.com
Tue Dec 3 18:14:50 PST 2002


hi,

I'm chasing down what look like some multithreading issues in latest code.  One symptom showed up as an exception regarding some mysql "text" fields, which, in expresso 5, are handled with a prepared statement (?? see next email).

I protected the closing of the prepared statement by putting a finally {} around it, but there are other prepared statements used in JDBCExecutor which should also be protected, I suppose.  (DBConnection keeps a data-member reference to any prepared statements created by the connection, and uses the prepared statement exclusively during "execute".)

larry




More information about the Opensource mailing list