Reject invalid input in int2vectorin.

Robert Haas <rhaas@postgresql.org>

Commit: 3d4b0ab29cfee7cbb9932065216b58b6c820a791
Author: Robert Haas <rhaas@postgresql.org>
Date: 2009-12-30T01:29:22Z
Releases: 9.0.0
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

Files

PathChange+/−
src/backend/utils/adt/int.c modified +4 −3