Re: DatabaseMetaData.getExtraNameCharacters - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: DatabaseMetaData.getExtraNameCharacters
Date
Msg-id Pine.BSO.4.56.0505251204190.29241@leary.csoft.net
Whole thread Raw
In response to DatabaseMetaData.getExtraNameCharacters  (Giuseppe Sacco <giuseppe@eppesuigoccas.homedns.org>)
Responses Re: DatabaseMetaData.getExtraNameCharacters
List pgsql-jdbc

On Wed, 25 May 2005, Giuseppe Sacco wrote:

> We are developing a very simple application that permits users to define
> their own tables. We would like to leave the user the freedom to use any
> characters for table and field identifiers.
>
> We tried using accented letters, like è or ò, and it works. Then we saw
> the method java.sql.DatabaseMetaData.getExtraNameCharacters() and we
> thought about verifing our identifiers against this method.
>
> The problem is that getExtraNameCharacters() returns an empty string, at
> least using a 7.4 jdbc driver.
>

Postgresql allows pretty much any character that is valid in your encoding
to be used in an unquoted identifier, so trying to list them all would be
impossible, but there should be no problem using them.

Kris Jurka

pgsql-jdbc by date:

Previous
From: Giuseppe Sacco
Date:
Subject: DatabaseMetaData.getExtraNameCharacters
Next
From: Dave Cramer
Date:
Subject: Re: BIGINT <-> java.lang.String auto cast