pgsql-server/src backend/utils/adt/float.c bac ... - Mailing list pgsql-committers

From neilc@svr1.postgresql.org (Neil Conway)
Subject pgsql-server/src backend/utils/adt/float.c bac ...
Date
Msg-id 20040311021114.3E312D1B80B@svr1.postgresql.org
Whole thread Raw
List pgsql-committers
CVSROOT:    /cvsroot
Module name:    pgsql-server
Changes by:    neilc@svr1.postgresql.org    04/03/10 22:11:14

Modified files:
    src/backend/utils/adt: float.c int8.c numutils.c oid.c
    src/test/regress/expected: float4.out float8.out int2.out
                               int4.out int8.out numeric.out oid.out
    src/test/regress/output: misc.source
    src/test/regress/sql: float4.sql float8.sql int2.sql int4.sql
                          int8.sql numeric.sql oid.sql

Log message:
    Revise int2/int4/int8/float4/float8 input routines to allow for
    any amount of leading or trailing whitespace (where "whitespace"
    is defined by isspace()). This is for SQL conformance, as well
    as consistency with other numeric types (e.g. oid, numeric).

    Also refactor pg_atoi() to avoid looking at errno where not
    necessary, and add a bunch of regression tests for the input
    to these types.


pgsql-committers by date:

Previous
From: ishii@svr1.postgresql.org (Tatsuo Ishii)
Date:
Subject: pgsql-server/ oc/src/sgml/ref/lock.sgml rc/bac ...
Next
From: momjian@svr1.postgresql.org (Bruce Momjian)
Date:
Subject: pgsql-server/doc/src/sgml libpq.sgml