X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id D920E9FA4E1 for ; Tue, 16 May 2006 11:59:57 -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 82749-04-6 for ; Tue, 16 May 2006 11:59:39 -0300 (ADT) X-Greylist: delayed 00:36:29.325091 by SQLgrey- Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id E3D899FA509 for ; Tue, 16 May 2006 11:58:17 -0300 (ADT) Received: from new-mail.nec.com.cn (new-mail.nec.com.cn [211.100.22.21]) by svr4.postgresql.org (Postfix) with ESMTP id 3FC2C5B7185 for ; Tue, 16 May 2006 14:19:59 +0000 (GMT) Received: from internal-mail.nec.com.cn ([172.28.88.254]) by new-mail.nec.com.cn with ESMTP id k4GEJWhw061356 for ; Tue, 16 May 2006 22:19:32 +0800 (CST) (envelope-from zhaox@necas.nec.com.cn) Received: from mailsv.necas.nec.com.cn (localhost.localdomain [127.0.0.1]) by internal-mail.nec.com.cn (Postfix) with ESMTP id 7D31F178005 for ; Tue, 16 May 2006 22:21:22 +0800 (CST) Received: from [172.28.9.145] (zhoujy.necas.nec.com.cn [172.28.9.145]) by mailsv.necas.nec.com.cn (8.11.6/8.11.6) with ESMTP id k4GEJW817956 for ; Tue, 16 May 2006 22:19:32 +0800 Message-ID: <4469DF51.40603@necas.nec.com.cn> Date: Tue, 16 May 2006 22:18:57 +0800 From: zhaoxin User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-odbc@postgresql.org Subject: how mapping the TEXT Type to the ODBC Type ? Content-Type: text/plain; charset=Shift_JIS Content-Transfer-Encoding: 7bit X-MAIL: new-mail.nec.com.cn k4GEJWhw061356 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/35 X-Sequence-Number: 7706 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.