From: noreply@pgfoundry.org
To: noreply@pgfoundry.org
Subject: [ psqlodbc-Bugs-1000679 ] UNION select returns wrong column type with ADO (VB6)
Date: Mon, 3 Jul 2006 10:55:56 +0000 (UTC)
Message-ID: <20060703105556.9394286C5DD@pgfoundry.org> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: noreply@pgfoundry.org
Subject: Re: [ psqlodbc-Bugs-1000679 ] UNION select returns wrong column type with ADO (VB6)
In-Reply-To: <20060703105556.9394286C5DD@pgfoundry.org>
References: <20060703105556.9394286C5DD@pgfoundry.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox