Re: ODBC driver issue

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: ODBC driver issue
Date: 2017-07-27 03:08:09
Message-ID: 27d8864a-beed-0be4-0b1f-7b9efc446885@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 7/26/2017 7:25 PM, Igor Korot wrote:
> When I tried to query the database table with the column "char(129)" I get:
>
> "My field text"
>
> (the text with the bunch of spaces at the end).
>
> The driver is not the current one - but I don't remember the version.
>
> Is this known issue? Maybe its already fixed with the latest ODBC driver?

a char(129) field is 129 characters long, and will always be padded with
spaces to that length.

maybe you wanted a varchar (aka char varying) ? these are variable
length and return just what you put in them.

--
john r pierce, recycling bits in santa cruz

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Igor Korot 2017-07-27 04:06:08 Re: ODBC driver issue
Previous Message James Sewell 2017-07-27 03:00:17 Interesting streaming replication issue