Re: DatabaseMetaData.getExtraNameCharacters

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: DatabaseMetaData.getExtraNameCharacters
Дата
Msg-id Pine.BSO.4.56.0505251204190.29241@leary.csoft.net
обсуждение исходный текст
Ответ на DatabaseMetaData.getExtraNameCharacters  (Giuseppe Sacco <giuseppe@eppesuigoccas.homedns.org>)
Ответы Re: DatabaseMetaData.getExtraNameCharacters  (Giuseppe Sacco <giuseppe@eppesuigoccas.homedns.org>)
Список 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 по дате отправления:

Предыдущее
От: Giuseppe Sacco
Дата:
Сообщение: DatabaseMetaData.getExtraNameCharacters
Следующее
От: Dave Cramer
Дата:
Сообщение: Re: BIGINT <-> java.lang.String auto cast