pgsql: Use double quotes for quoting xml attributes.

Started by Peter Eisentrautover 18 years ago3 messagescomitters
Jump to latest
#1Peter Eisentraut
peter_e@gmx.net

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)

#2Andrew Dunstan
andrew@dunslane.net
In reply to: Peter Eisentraut (#1)
Re: pgsql: Use double quotes for quoting xml attributes.

Peter Eisentraut wrote:

Log Message:
-----------
Use double quotes for quoting xml attributes.

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

cheers

andrew

#3Tom Lane
tgl@sss.pgh.pa.us
In reply to: Andrew Dunstan (#2)
Re: pgsql: Use double quotes for quoting xml attributes.

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