]> granicus.if.org Git - postgresql/commit
Reject invalid input in int2vectorin.
authorRobert Haas <rhaas@postgresql.org>
Wed, 30 Dec 2009 01:29:22 +0000 (01:29 +0000)
committerRobert Haas <rhaas@postgresql.org>
Wed, 30 Dec 2009 01:29:22 +0000 (01:29 +0000)
commit3d4b0ab29cfee7cbb9932065216b58b6c820a791
treedad25ef711c12a380a813d5f105afec569e38d26
parent540e69a0613bad2b6ad15b237a8df27110f4b213
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
src/backend/utils/adt/int.c