pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: zhaoxin <zhaox@necas.nec.com.cn>
To: pgsql-odbc@postgresql.org
Subject: how mapping the TEXT Type to the ODBC Type ?
Date: Tue, 16 May 2006 22:18:57 +0800
Message-ID: <4469DF51.40603@necas.nec.com.cn> (raw)

Hi ,

I have a question about psqlodbc's text Data Type.
what is the mapping of the text Type to ODBC Data Type by SQLColumns
function .
When I test , I can get SQL_DATA_TYPE = -10 if column is text type.
but I don't know how mapping this type to ODBC Data Type.
SQL_LONGVARCHAR or SQL_VARCHAR ot others ?
can you help me ?

by the way .
   bytea ---> SQL_VARBINARY
is it right ?

Regards, Zhao.




Message-ID: <4469DF51.40603@necas.nec.com.cn>
Permalink:  ../4469DF51.40603@necas.nec.com.cn/
Also on:    postgresql.org/message-id/4469DF51.40603@necas.nec.com.cn

 · 

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: zhaox@necas.nec.com.cn
  Subject: Re: how mapping the TEXT Type to the ODBC Type ?
  In-Reply-To: <4469DF51.40603@necas.nec.com.cn>
  References: <4469DF51.40603@necas.nec.com.cn>

* 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