Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 67513 invoked from network); 21 Jul 2005 16:12:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Jul 2005 16:12:48 -0000 Received: (qmail 19620 invoked by uid 500); 21 Jul 2005 16:12:39 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 19491 invoked by uid 500); 21 Jul 2005 16:12:38 -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: "Derby Development" Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 19434 invoked by uid 99); 21 Jul 2005 16:12:38 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jul 2005 09:12:38 -0700 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,SPF_HELO_FAIL X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [32.97.182.145] (HELO e5.ny.us.ibm.com) (32.97.182.145) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jul 2005 09:12:31 -0700 Received: from d01relay02.pok.ibm.com (d01relay02.pok.ibm.com [9.56.227.234]) by e5.ny.us.ibm.com (8.12.11/8.12.11) with ESMTP id j6LGCY0r010846 for ; Thu, 21 Jul 2005 12:12:34 -0400 Received: from d01av03.pok.ibm.com (d01av03.pok.ibm.com [9.56.224.217]) by d01relay02.pok.ibm.com (8.12.10/NCO/VERS6.7) with ESMTP id j6LGCXWU225920 for ; Thu, 21 Jul 2005 12:12:33 -0400 Received: from d01av03.pok.ibm.com (loopback [127.0.0.1]) by d01av03.pok.ibm.com (8.12.11/8.13.3) with ESMTP id j6LGCSMw022770 for ; Thu, 21 Jul 2005 12:12:28 -0400 Received: from [9.72.134.65] (ws420-1.usca.ibm.com [9.72.134.65]) by d01av03.pok.ibm.com (8.12.11/8.12.11) with ESMTP id j6LGCRLN022352 for ; Thu, 21 Jul 2005 12:12:28 -0400 Message-ID: <42DFC8BA.70007@sbcglobal.net> Date: Thu, 21 Jul 2005 09:09:30 -0700 From: Mike Matrigali User-Agent: Mozilla Thunderbird 0.7.2 (Windows/20040707) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Derby Development Subject: Re: [PATCH]derby-105 :drop table statement shows wrong message after dropping table References: <42DF777C.6040503@debrunners.com> <42DF7881.8000108@debrunners.com> In-Reply-To: <42DF7881.8000108@debrunners.com> X-Enigmail-Version: 0.85.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Just my opinion, but it seems like madness to have IJ start parsing the SQL text it sends, just to have it say insert vs. delete. It seems like a lot of code complication for not much benefit. At least currently I believe ij can also be used to connect to other db's so it may not even know the syntax that it could accept. By all means if jdbc returns something that can be used to qualify the tag line, that seems reasonable. Daniel John Debrunner wrote: > Daniel John Debrunner wrote: > > >>V.Narayanan@Sun.COM wrote >> >> >> >> >>> INSERT INTO WORKS1 >>> SELECT * >>> FROM WORKS; >>>-12 rows inserted/updated/deleted >>>+12 --s executed >> >> >>The patch seems to have problems, several of the correct execution >>status lines in the test output have been replaced with lines that make >>no sense. Ie. in this case '--s executed'. >> >>This is the danger of getting ij parsing SQL text, it may not have the >>same understanding as the underlying SQL engine, which may not be Derby. > > > I meant to add I think it may be possible to tell from the JDBC api if a > statement execution returns: > > - ResultSet > - update count > - other execution (e.g. DDL) > > For the first two, ij does do the correct behaviour now. For the latter, > ij prints out the 0 rows inserted/upodated/deleted, but maybe it should > print out a simple 'statement executed'. Though I could never figure out > exactly how to tell from JDBC which type of statement it is. > > Dan. > >