X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 8B5CD5284D for ; Wed, 25 May 2005 15:52:31 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 72614-06 for ; Wed, 25 May 2005 18:52:29 +0000 (GMT) Received: from vsmtp3.tin.it (vsmtp3alice.tin.it [212.216.176.143]) by svr1.postgresql.org (Postfix) with ESMTP id B2BDB52848 for ; Wed, 25 May 2005 15:52:29 -0300 (ADT) Received: from casa (80.117.81.220) by vsmtp3.tin.it (7.0.027) (authenticated as giuseppe.sacco17@tin.it) id 42920E800010E2FB for pgsql-jdbc@postgresql.org; Wed, 25 May 2005 20:52:29 +0200 Received: from eppesuig3wifi ([192.168.2.51] ident=giuseppe) by casa with esmtpsa (TLS-1.0:RSA_ARCFOUR_MD5:16) (Exim 4.50) id 1Db0zZ-0005no-CB for pgsql-jdbc@postgresql.org; Wed, 25 May 2005 20:52:33 +0200 Subject: Re: DatabaseMetaData.getExtraNameCharacters From: Giuseppe Sacco To: "pgsql-jdbc@postgresql.org" In-Reply-To: References: <1117034023.27493.10.camel@localhost> <1117044622.27459.28.camel@localhost> Content-Type: multipart/mixed; boundary="=-Ji3OMzPFfq/JhONKuhG5" Organization: Giuseppe Sacco Consulting Date: Wed, 25 May 2005 20:51:28 +0200 Message-Id: <1117047088.27493.36.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.39 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO, TO_ADDRESS_EQ_REAL X-Spam-Level: X-Archive-Number: 200505/110 X-Sequence-Number: 12941 --=-Ji3OMzPFfq/JhONKuhG5 Content-Type: text/plain Content-Transfer-Encoding: 7bit Il giorno mer, 25-05-2005 alle 13:25 -0500, Kris Jurka ha scritto: [...] > ident_start [A-Za-z\200-\377_] > ident_cont [A-Za-z\200-\377_0-9\$] > identifier {ident_start}{ident_cont}* > > So \200-\377 is octal for any character with the high bit set. The list > of what characters this could map to numbers in the tens of thousands for > unicode, so it's not really feasibly to return in this method. [...] Thanks again Kris, if I understand correclty, the valid charset is the one computed by the attached class. It seems to me that this is 191 characters long. Could you please let me know where I am wrong? Giuseppe --=-Ji3OMzPFfq/JhONKuhG5 Content-Description: Content-Disposition: inline; filename=pgchars.java Content-Type: text/x-java; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit class pgchars { public pgchars() {} static public void main(String[] args) { String x="ABCDEFGHIJKLMNOPQRSTUVWXYZ"; x += x.toLowerCase(); x += "0123456789"; for (int i=2*8*8; i < 3*8*8+7*8+7; i++) { char[] c = { (char)i }; x += new String(c); } x += "_$"; System.out.println("final string size: " + x.length()); } } --=-Ji3OMzPFfq/JhONKuhG5--