X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 238C6D1C9B5 for ; Mon, 22 Mar 2004 17:44:36 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 10889-03 for ; Mon, 22 Mar 2004 13:44:45 -0400 (AST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 4941DD1BC62 for ; Mon, 22 Mar 2004 13:44:34 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i2MHig99006451; Mon, 22 Mar 2004 12:44:42 -0500 (EST) To: Wei Weng Cc: pgsql-interfaces@postgresql.org Subject: Re: Is this fixed in the 7.4 release? In-reply-to: <405F1DD7.7060400@kencast.com> References: <405F1DD7.7060400@kencast.com> Comments: In-reply-to Wei Weng message dated "Mon, 22 Mar 2004 12:09:43 -0500" Date: Mon, 22 Mar 2004 12:44:41 -0500 Message-ID: <6450.1079977481@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/22 X-Sequence-Number: 4801 Wei Weng writes: > Basically, I am asking the program to return me the field type of the > first column in the command "select '' AS blah". I was expecting > something like a CHAROID, but the return value is UNKNOWNOID (OID(705)). > Is this a bug? No. There isn't anything in that command that constrains the datatype of the literal, so its type remains UNKNOWN. regards, tom lane