Обсуждение: pgsql: Allow trailing whitespace in parse_real(), for consistency with

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

pgsql: Allow trailing whitespace in parse_real(), for consistency with

От
tgl@postgresql.org (Tom Lane)
Дата:
Log Message:
-----------
Allow trailing whitespace in parse_real(), for consistency with
parse_int() and with itself (strtod allows leading whitespace, so it
seems odd not to allow trailing whitespace).  parse_bool remains
not-whitespace-friendly, but this is generically true for non-numeric
GUC variables, so I'll desist from changing it.

Modified Files:
--------------
    pgsql/src/backend/utils/misc:
        guc.c (r1.401 -> r1.402)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/misc/guc.c.diff?r1=1.401&r2=1.402)