pgsql: Have psql escape bytes in strings for variables follow the

Поиск
Список
Период
Сортировка
От momjian@svr1.postgresql.org (Bruce Momjian)
Тема pgsql: Have psql escape bytes in strings for variables follow the
Дата
Msg-id 20050530145035.9985E52819@svr1.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Log Message:
-----------
Have psql escape bytes in strings for variables follow the backend
conventions of only allowing octal, like \045.  Remove support for
\decimal, \0octal, and \0xhex which matches the strtol() function but
didn't make sense with backslashes.

These now return the same character:

    test=> \set x '\54'
    test=> \echo :x
    ,
    test=> \set x '\054'
    test=> \echo :x
    ,

THIS IS A BACKWARD COMPATIBILITY CHANGE.

Modified Files:
--------------
    pgsql/src/bin/psql:
        psqlscan.l (r1.10 -> r1.11)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/bin/psql/psqlscan.l.diff?r1=1.10&r2=1.11)

В списке pgsql-committers по дате отправления:

Предыдущее
От: momjian@svr1.postgresql.org (Bruce Momjian)
Дата:
Сообщение: pgsql: Add missing

.

Следующее
От: momjian@svr1.postgresql.org (Bruce Momjian)
Дата:
Сообщение: pgsql: Update psql docs for recent octal-only string behavior.