Thread: pgsql: Reject invalid input in int2vectorin.

pgsql: Reject invalid input in int2vectorin.

From
rhaas@postgresql.org (Robert Haas)
Date:
Log Message:
-----------
Reject invalid input in int2vectorin.

Since the int2vector type is intended only for internal use, this patch doesn't
worry about prettifying the error messages, which has the fringe benefit of
avoiding creating additional translatable strings.  For a type intended to be
used by end-users, we would want to do better, but the approach taken here
seems like the correct trade-off for this case.

Caleb Welton

Modified Files:
--------------
    pgsql/src/backend/utils/adt:
        int.c (r1.86 -> r1.87)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/int.c?r1=1.86&r2=1.87)