pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
To: Xuesong Gao <xgao@senturus.com>
Cc: pgsql-odbc@postgresql.org <pgsql-odbc@postgresql.org>
Subject: Re: psqlodbc - table name is truncated to 127 characters even SQL_MAX_TABLE_NAME_LEN is set to 255
Date: Tue, 13 Aug 2019 21:11:06 +0900
Message-ID: <e65a0c9c-30b0-d2ab-e662-feff3aaef526@dream.email.ne.jp> (raw)
In-Reply-To: <6713b9b2-8cdf-39ec-3188-b4444a3c5db6@dream.email.ne.jp>
References: <SN6PR16MB25742ED6A45B1D605C2BA3B4A9D60@SN6PR16MB2574.namprd16.prod.outlook.com>
	<6713b9b2-8cdf-39ec-3188-b4444a3c5db6@dream.email.ne.jp>

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

view thread (5+ messages)  latest in thread

Message-ID: <e65a0c9c-30b0-d2ab-e662-feff3aaef526@dream.email.ne.jp>
Permalink:  ../e65a0c9c-30b0-d2ab-e662-feff3aaef526@dream.email.ne.jp/
Also on:    postgresql.org/message-id/e65a0c9c-30b0-d2ab-e662-feff3aaef526@dream.email.ne.jp

 · 

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: h-inoue@dream.email.ne.jp, xgao@senturus.com
  Subject: Re: psqlodbc - table name is truncated to 127 characters even SQL_MAX_TABLE_NAME_LEN is set to 255
  In-Reply-To: <e65a0c9c-30b0-d2ab-e662-feff3aaef526@dream.email.ne.jp>
  References: <SN6PR16MB25742ED6A45B1D605C2BA3B4A9D60@SN6PR16MB2574.namprd16.prod.outlook.com> <6713b9b2-8cdf-39ec-3188-b4444a3c5db6@dream.email.ne.jp> <e65a0c9c-30b0-d2ab-e662-feff3aaef526@dream.email.ne.jp>

* 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