X-Original-To: pgsql-odbc-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 2C58D9FA373 for ; Mon, 3 Jul 2006 07:56:08 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 77606-04 for ; Mon, 3 Jul 2006 07:56:04 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from pgfoundry.org (pgfoundry.org [200.46.204.130]) by postgresql.org (Postfix) with ESMTP id 983FB9FA232 for ; Mon, 3 Jul 2006 07:56:04 -0300 (ADT) Received: from localhost (mx1.hub.org [200.46.208.251]) by pgfoundry.org (Postfix) with ESMTP id 86F7586C5D7; Mon, 3 Jul 2006 10:56:04 +0000 (UTC) Received: from pgfoundry.org ([200.46.204.130]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 75637-06; Mon, 3 Jul 2006 07:55:56 -0300 (ADT) Received: by pgfoundry.org (Postfix, from userid 80) id 9394286C5DD; Mon, 3 Jul 2006 10:55:56 +0000 (UTC) To: noreply@pgfoundry.org From: Subject: [ psqlodbc-Bugs-1000679 ] UNION select returns wrong column type with ADO (VB6) Content-type: text/plain; charset=UTF-8 Message-Id: <20060703105556.9394286C5DD@pgfoundry.org> Date: Mon, 3 Jul 2006 10:55:56 +0000 (UTC) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200607/6 X-Sequence-Number: 7917 Bugs item #1000679, was opened at 2006-07-03 12:55 You can respond by visiting: http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000679&group_id=1000125 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: István Nagy (nagyi) Assigned to: Nobody (None) Summary: UNION select returns wrong column type with ADO (VB6) Initial Comment: If you do a UNION query like this: SELECT (name || 'dummy')::varchar AS NewName FROM union_bug UNION SELECT name AS NewName FROM union_bug ORDER BY newname you get the data type adLongVarChar in the first field. Table definition: CREATE TABLE union_bug ( name varchar(15) NOT NULL, CONSTRAINT union_bug_pkey PRIMARY KEY (name) ) In pgAdmin III the data type shown is varchar, so the bug must be in the ODBC driver. István ---------------------------------------------------------------------- You can respond by visiting: http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000679&group_id=1000125