Re: [pgadmin-support] Character[] field value are truncated

From: Dave Page <dpage(at)pgadmin(dot)org>
To: Dmitriy Olshevskiy <olshevskiy87(at)bk(dot)ru>
Cc: Emanuele Sottocorno <sotema(at)gmail(dot)com>, pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: [pgadmin-support] Character[] field value are truncated
Date: 2014-07-03 09:56:45
Message-ID: CA+OCxoyLcugW-tOZfE=j0dmzcD1T1DM86ONhpE=7eo-iL=S9UQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers pgadmin-support

Thanks - change committed.

On Sun, Jun 29, 2014 at 8:25 PM, Dmitriy Olshevskiy <olshevskiy87(at)bk(dot)ru> wrote:
> Hello, Dave.
> Please see the code in frm/frmEditGrid.cpp at line 3157. I think it's all
> because of wrong cast.
> In the query there must be ::Character(xx)[] instead of ::Character[] (which
> truncates the symbols as well as ::Character(1)[])
> Simple replacement of
> return str + wxT("::") + typeName;
> by
> return str + wxT("::") + displayTypeName;
> solves the current issue, but I'm not sure will this break other casts in
> future?
>
> 29.06.2014 16:24, Emanuele Sottocorno пишет:
>
> Inserting a value using pgadmin3 Data Edit Grid into a Character(xx)[] field
> results in a truncated string.
> Value I am trying to insert is {Casa,Home} but when I save the row only the
> first chr are inserted. The row appears: {C ,H. }
>
> Ubuntu 14.04 x86_64
> Pgadmin 3 rev 1.18.1 from repos
>
> Is this a bug or am I missing something?
>
> Thanks in advance
> Emanuele
> Inviato dal mio smartphone BlackBerry®
> www.blackberry.com
>
> --
> Dmitriy Olshevskiy

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Browse pgadmin-hackers by date

  From Date Subject
Next Message J.F. Oster 2014-07-05 09:18:28 Strip sRGB profile in PNG images
Previous Message Dave Page 2014-07-03 09:56:11 pgAdmin III commit: Fix handling of char()[] columns in the Edit Grid

Browse pgadmin-support by date

  From Date Subject
Next Message Jagadeesh Bandi 2014-07-03 11:58:00 **Require Support**
Previous Message Dave Page 2014-07-02 14:23:29 Re: External Editor Support