Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hxVe4-0002fQ-Ty for pgsql-odbc@arkaria.postgresql.org; Tue, 13 Aug 2019 12:11:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hxVe3-000560-ME for pgsql-odbc@arkaria.postgresql.org; Tue, 13 Aug 2019 12:11:19 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hxVe3-0004zs-67 for pgsql-odbc@lists.postgresql.org; Tue, 13 Aug 2019 12:11:19 +0000 Received: from mail03.asahi-net.or.jp ([202.224.55.15]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1hxVdx-0005Om-ND for pgsql-odbc@postgresql.org; Tue, 13 Aug 2019 12:11:17 +0000 Received: from [192.168.0.4] (KD124208079206.ppp-bb.dion.ne.jp [124.208.79.206]) (Authenticated sender: GQ9H-INUE) by mail03.asahi-net.or.jp (Postfix) with ESMTPA id CB79755CE5; Tue, 13 Aug 2019 21:11:08 +0900 (JST) Subject: Re: psqlodbc - table name is truncated to 127 characters even SQL_MAX_TABLE_NAME_LEN is set to 255 From: "Inoue, Hiroshi" To: Xuesong Gao Cc: "pgsql-odbc@postgresql.org" References: <6713b9b2-8cdf-39ec-3188-b4444a3c5db6@dream.email.ne.jp> Message-ID: Date: Tue, 13 Aug 2019 21:11:06 +0900 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <6713b9b2-8cdf-39ec-3188-b4444a3c5db6@dream.email.ne.jp> Content-Type: multipart/alternative; boundary="------------D8097A54EC74B70A9F866C02" Content-Language: en-US X-Antivirus: AVG (VPS 190813-0, 2019/08/13), Outbound message X-Antivirus-Status: Clean List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------D8097A54EC74B70A9F866C02 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Could you please try the test drivers on Windows 11.00.0300 at https://winpg.jp/~inoue/psqlodbc/index.html ? regards, Hiroshi Inoue On 2019/08/10 9:57, Inoue, Hiroshi wrote: > Hi, > > I would examine the issue. > > regards, > Hiroshi Inoue > > On 2019/08/09 13:37, Xuesong Gao wrote: >> >> Hi, >> >> We wrote our application that acts as a pseudo PostgreSQL server and >> we use PsqlODBC as client. Our table names are very long so we set it >> to 255. Our server actively sends this to client after password using >> parameter status message, it also returns 255 when client call “show >> max_identifier_length”. >> >> Based my test, SQLGetInfo does return 255 when parameter is >> SQL_MAX_TABLE_NAME_LEN, SQL_MAX_IDENTIFIER_LEN, etc. However, the >> table name is still truncated to 127 characters in SQLTables call. >> And I can tell that our server does return full length of table name >> (>128 chars) using Wireshark. >> >> Thanks, >> >> Song Gao >> --- このメールは、AVG によってウイルス チェックされています。 http://www.avg.com --------------D8097A54EC74B70A9F866C02 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit Could you please try the test drivers on Windows 11.00.0300 at
https://winpg.jp/~inoue/psqlodbc/index.html
?

regards,
Hiroshi Inoue

On 2019/08/10 9:57, Inoue, Hiroshi wrote:
Hi,

I would examine the issue.

regards,
Hiroshi Inoue

On 2019/08/09 13:37, Xuesong Gao wrote:

Hi,

 

We wrote our application that acts as a pseudo PostgreSQL server and we use PsqlODBC as client. Our table names are very long so we set it to 255. Our server actively sends this to client after password using parameter status message, it also returns 255 when client call “show max_identifier_length”.

 

Based my test, SQLGetInfo does return 255 when parameter is SQL_MAX_TABLE_NAME_LEN, SQL_MAX_IDENTIFIER_LEN, etc. However, the table name is still truncated to 127 characters in SQLTables call. And I can tell that our server does return full length of table name (>128 chars) using Wireshark.

 

Thanks,

Song Gao


ウイルス フリー。 www.avg.com
--------------D8097A54EC74B70A9F866C02--