Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 4389 invoked from network); 21 Feb 2007 08:11:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Feb 2007 08:11:27 -0000 Received: (qmail 72997 invoked by uid 500); 21 Feb 2007 08:11:34 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 72973 invoked by uid 500); 21 Feb 2007 08:11:34 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 72964 invoked by uid 99); 21 Feb 2007 08:11:34 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Feb 2007 00:11:34 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Feb 2007 00:11:26 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BB2CF7141A3 for ; Wed, 21 Feb 2007 00:11:05 -0800 (PST) Message-ID: <5537890.1172045465764.JavaMail.jira@brutus> Date: Wed, 21 Feb 2007 00:11:05 -0800 (PST) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-2257) Implementing the stored procedures called by the LOB related JDBC methods In-Reply-To: <1552073.1169183310148.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-2257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12474654 ] Knut Anders Hatlen commented on DERBY-2257: ------------------------------------------- A couple of questions after a quick look at the patch: - Does EmbedConnection.lobHashTable need to be a Hashtable, or could it be an unsynchronized HashMap. The comments say that it is a HashMap, and I think all uses of it will already be synchronized on the connection object. - Could EmbedConnection.getIncLOBKey() be made private? - I think all calls to getIncLOBKey() will be synchronized on getConnectionSynchronization(), so there should be no need to do explicit synchronization in that method. - EmbedConnection.lobHTKey could be private. - LOBStoredProcedure.getEmbedConnection() could be simplified to: return (EmbedConnection) DriverManager.getConnection(...); - BrokeredConnection catches and ignores SQLExceptions. Wouldn't it be better to declare the methods as "throws SQLException" and let the exception be handled properly by the caller? - Comments for ClobStoredProcecedureTest.tearDown() and BlobStoredProcedureTest.tearDown() say "drop the table and close the connection", but they don't drop any table. - tearDown() should call super.tearDown(). - Perhaps the suite() method could mention why the tests only run in embedded mode? > Implementing the stored procedures called by the LOB related JDBC methods > ------------------------------------------------------------------------- > > Key: DERBY-2257 > URL: https://issues.apache.org/jira/browse/DERBY-2257 > Project: Derby > Issue Type: Sub-task > Components: JDBC > Environment: All environments > Reporter: V.Narayanan > Assigned To: V.Narayanan > Attachments: Expln_StoredProc_LOB.txt, Expln_StoredProc_LOB_v2.txt, StoredProcedures_v1.diff, StoredProcedures_v1.stat, StoredProcedures_v2.diff, StoredProcedures_v2.stat > > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.