pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ludek Finstrle <luf@pzkagis.cz>
To: vidisha.shah@tcs.com
Cc: pgsql-odbc@postgresql.org
Subject: Re: Issue of Varchar(225) converted to Long datatype by PostGreODBC(Ansi) driver
Date: Tue, 25 Apr 2006 14:30:18 +0200
Message-ID: <20060425123018.GI23256@soptik.pzkagis.cz> (raw)
In-Reply-To: <OF673E38B2.6413BBB7-ON6525715B.001E175E-6525715B.001EB42C@tcs.com>
References: <OF673E38B2.6413BBB7-ON6525715B.001E175E-6525715B.001EB42C@tcs.com>

> I am using the PostgreODBC(Ansi Driver).
> 
> when I describe the source table, varchar(255) datatype is converted into 
> Long datatype..

There is Max varchar (implicitly 254) in Datasource configuration.
Let's try increase the value. You don't specify OS, psqlodbc version
so I'm unable to give you better advice.

> In one table I have two fields (say c1 and c2) which are varchar(255) in 
> Source Postgre System.they both are converted into Long.Due to which I can 
> not query those two fields simultaneously in my select qyery.
> 
> select c1 from table - works fine
> select c2 from table - works fine
> select c1,c2 from table - does not work

What does it mean "does not work"? What error or problem do you get?

Regards,

Luf



view thread (2+ messages)

Message-ID: <20060425123018.GI23256@soptik.pzkagis.cz>
Permalink:  ../20060425123018.GI23256@soptik.pzkagis.cz/
Also on:    postgresql.org/message-id/20060425123018.GI23256@soptik.pzkagis.cz

 · 

reply

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: luf@pzkagis.cz, vidisha.shah@tcs.com
  Subject: Re: Issue of Varchar(225) converted to Long datatype by PostGreODBC(Ansi) driver
  In-Reply-To: <20060425123018.GI23256@soptik.pzkagis.cz>
  References: <OF673E38B2.6413BBB7-ON6525715B.001E175E-6525715B.001EB42C@tcs.com> <20060425123018.GI23256@soptik.pzkagis.cz>

* 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