Skip site navigation (1) Skip section navigation (2)

fix oid casting inconsistency

From: Neil Conway <neilc(at)samurai(dot)com>
To: PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org>
Subject: fix oid casting inconsistency
Date: 2004-02-17 03:00:49
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-patches
This patch fixes a minor error message inconsistency. When rejecting
input to the oid type, the following error message is emitted:

nconway=# select 'd'::oid;
ERROR:  invalid input syntax for type "oid": "d"

This patch removes the quotes from "oid", to make this error message
consistent with the error messages for rejected input to most other

While I suppose it's possible that some applications might be
examining this error message string, (a) this particular error message
isn't very likely be used for that (b) we have error codes now.

I also took the liberty of removing some long-unused code from

Unless anyone objects, I'll apply this within 24 hours.


Attachment: adt-misc-cleanup-2.patch
Description: text/x-patch (10.7 KB)


pgsql-patches by date

Next:From: Bruce MomjianDate: 2004-02-17 03:16:01
Subject: Re: [HACKERS] dollar quoting
Previous:From: Tom LaneDate: 2004-02-17 02:54:52
Subject: Re: [PATCHES] dollar quoting

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group