pgsql: Clarify code to double \\ and '.

Started by Bruce Momjianalmost 21 years ago3 messagescomitters
Jump to latest
#1Bruce Momjian
bruce@momjian.us

Log Message:
-----------
Clarify code to double \\ and '.

Modified Files:
--------------
pgsql/src/bin/initdb:
initdb.c (r1.88 -> r1.89)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/bin/initdb/initdb.c.diff?r1=1.88&r2=1.89)
pgsql/src/bin/psql:
describe.c (r1.118 -> r1.119)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/bin/psql/describe.c.diff?r1=1.118&r2=1.119)
large_obj.c (r1.37 -> r1.38)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/bin/psql/large_obj.c.diff?r1=1.37&r2=1.38)
pgsql/src/pl/plpgsql/src:
gram.y (r1.77 -> r1.78)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/pl/plpgsql/src/gram.y.diff?r1=1.77&r2=1.78)

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Bruce Momjian (#1)
Re: pgsql: Clarify code to double \\ and '.

momjian@svr1.postgresql.org (Bruce Momjian) writes:

Clarify code to double \\ and '.

You missed (at least) two places in ruleutils.c.

Also, I'm not sure it's a good idea to be folding the \ and ' cases
together like this, as we'll just have to separate them again soon.

regards, tom lane

#3Bruce Momjian
bruce@momjian.us
In reply to: Tom Lane (#2)
Re: pgsql: Clarify code to double \\ and '.

Tom Lane wrote:

momjian@svr1.postgresql.org (Bruce Momjian) writes:

Clarify code to double \\ and '.

You missed (at least) two places in ruleutils.c.

Also, I'm not sure it's a good idea to be folding the \ and ' cases
together like this, as we'll just have to separate them again soon.

I thought it was a nifty trick, yea. Ultimiately we would remove the \\
case, I assume.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073