pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Giuseppe Sacco <giuseppe@eppesuigoccas.homedns.org>
To: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: Re: DatabaseMetaData.getExtraNameCharacters
Date: Wed, 25 May 2005 20:51:28 +0200
Message-ID: <1117047088.27493.36.camel@localhost> (raw)
In-Reply-To: <Pine.BSO.4.56.0505251316330.12535@leary.csoft.net>
References: <1117034023.27493.10.camel@localhost>
	<Pine.BSO.4.56.0505251204190.29241@leary.csoft.net>
	<1117044622.27459.28.camel@localhost>
	<Pine.BSO.4.56.0505251316330.12535@leary.csoft.net>

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

Attachments:

pgchars.java (text/x-java, 342B) download 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()); } }

view thread (7+ messages)  latest in thread

Message-ID: <1117047088.27493.36.camel@localhost>
Permalink:  ../1117047088.27493.36.camel@localhost/
Also on:    postgresql.org/message-id/1117047088.27493.36.camel@localhost

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: giuseppe@eppesuigoccas.homedns.org
  Subject: Re: DatabaseMetaData.getExtraNameCharacters
  In-Reply-To: <1117047088.27493.36.camel@localhost>
  References: <1117034023.27493.10.camel@localhost> <Pine.BSO.4.56.0505251204190.29241@leary.csoft.net> <1117044622.27459.28.camel@localhost> <Pine.BSO.4.56.0505251316330.12535@leary.csoft.net> <1117047088.27493.36.camel@localhost>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox