Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 19084 invoked from network); 3 Apr 2007 19:04:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Apr 2007 19:04:17 -0000 Received: (qmail 80282 invoked by uid 500); 3 Apr 2007 19:04:23 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 80257 invoked by uid 500); 3 Apr 2007 19:04:23 -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 80248 invoked by uid 99); 3 Apr 2007 19:04:23 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Apr 2007 12:04:23 -0700 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: 32.97.110.149 is neither permitted nor denied by domain of qozinx@gmail.com) Received: from [32.97.110.149] (HELO e31.co.us.ibm.com) (32.97.110.149) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Apr 2007 12:04:14 -0700 Received: from d03relay02.boulder.ibm.com (d03relay02.boulder.ibm.com [9.17.195.227]) by e31.co.us.ibm.com (8.13.8/8.13.8) with ESMTP id l33J3sPg012803 for ; Tue, 3 Apr 2007 15:03:54 -0400 Received: from d03av03.boulder.ibm.com (d03av03.boulder.ibm.com [9.17.195.169]) by d03relay02.boulder.ibm.com (8.13.8/8.13.8/NCO v8.3) with ESMTP id l33J3ra4127302 for ; Tue, 3 Apr 2007 13:03:53 -0600 Received: from d03av03.boulder.ibm.com (loopback [127.0.0.1]) by d03av03.boulder.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id l33J3rKN009306 for ; Tue, 3 Apr 2007 13:03:53 -0600 Received: from [127.0.0.1] (svl-arbrown.svl.ibm.com [9.30.38.165]) by d03av03.boulder.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id l33J3qAS009088 for ; Tue, 3 Apr 2007 13:03:53 -0600 Message-ID: <4612A517.9050103@gmail.com> Date: Tue, 03 Apr 2007 12:03:51 -0700 From: Army User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.1) Gecko/20040707 X-Accept-Language: en-us, en MIME-Version: 1.0 To: derby-dev@db.apache.org Subject: Re: some comments on collation wiki page References: <4611F2C0.2040306@sbcglobal.net> <46126750.1010401@apache.org> <46128C67.9080606@gmail.com> <461290D5.20602@gmail.com> <461299CA.9080903@apache.org> <46129CB4.9020306@gmail.com> <4612A0FA.9020601@apache.org> In-Reply-To: <4612A0FA.9020601@apache.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Daniel John Debrunner wrote: > > I don't see how when the current schema is defined makes a difference as > to if they run without error or not? How does the current schema being a > user schema or a system schema make this statement compile to an error? > >> // Default schema APP. >> >> PreparedStatement ps = conn.prepareStatement( >> "select tablename, tabletype from sys.systables where " + >> "CAST (tablename as varchar(128)) = ?"); > Okay, you are of course correct. I somehow got it in my head that the collation of the CAST was determined at execution time, but that's not at all true. Nothing on the wiki indicates that, it was just a weird conclusion I jumped to for some reason. Apologies for the noise. Mamta, please feel free to disregard my comment and go ahead with your plans to set JDBC param character set at prepare time (which is the way that makes sense). Sorry again, Army