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

pgsql: Use double quotes for quoting xml attributes.

From
petere@postgresql.org (Peter Eisentraut)
Date:
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.

From
Andrew Dunstan
Date:

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.

From
Tom Lane
Date:
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