Обсуждение: pgsql: Use double quotes for quoting xml attributes.

Поиск
Список
Период
Сортировка

pgsql: Use double quotes for quoting xml attributes.

От
petere@postgresql.org (Peter Eisentraut)
Дата:
Log Message:
-----------
Use double quotes for quoting xml attributes.

Modified Files:
--------------
    pgsql/src/backend/utils/adt:
        xml.c (r1.59 -> r1.60)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/xml.c?r1=1.59&r2=1.60)

Re: pgsql: Use double quotes for quoting xml attributes.

От
Andrew Dunstan
Дата:

Peter Eisentraut wrote:
> Log Message:
> -----------
> Use double quotes for quoting xml attributes.
>
>
>

Why? Just for consistency? Single quotes are perfectly legal.

cheers

andrew

Re: pgsql: Use double quotes for quoting xml attributes.

От
Tom Lane
Дата:
Andrew Dunstan <andrew@dunslane.net> writes:
> Peter Eisentraut wrote:
>> Use double quotes for quoting xml attributes.

> Why? Just for consistency? Single quotes are perfectly legal.

Sure, but double quotes are nicer within data inside a SQL database.
They won't have to be doubled during COPY output, as an example.

            regards, tom lane