pgsql: Reject invalid input in int2vectorin.

From: rhaas(at)postgresql(dot)org (Robert Haas)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Reject invalid input in int2vectorin.
Date: 2009-12-30 01:29:22
Message-ID: 20091230012922.809D5753FB7@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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)

Browse pgsql-committers by date

  From Date Subject
Next Message User H-saito 2009-12-30 01:30:24 pg-migrator - pg_migrator: Sorry, overdue response.
Previous Message User Bmomjian 2009-12-30 01:25:19 pg-migrator - pg_migrator: Further trim down status output.