Обсуждение: pgsql: Clarify code to double \\ and '.

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

pgsql: Clarify code to double \\ and '.

От
momjian@svr1.postgresql.org (Bruce Momjian)
Дата:
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)

Re: pgsql: Clarify code to double \\ and '.

От
Tom Lane
Дата:
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

Re: pgsql: Clarify code to double \\ and '.

От
Bruce Momjian
Дата:
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