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

From: Dmitriy Olshevskiy <olshevskiy87(at)bk(dot)ru>
To: Dave Page <dpage(at)pgadmin(dot)org>
Cc: Emanuele Sottocorno <sotema(at)gmail(dot)com>, pgadmin-hackers(at)postgresql(dot)org
Subject: Re: [pgadmin-support] Character[] field value are truncated
Date: 2014-06-29 19:25:06
Message-ID: 53B06812.8070508@bk.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers pgadmin-support

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

In response to

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Dmitriy Olshevskiy 2014-06-29 19:52:44 PATCH: several minor changes an typos' fixing
Previous Message J.F. Oster 2014-06-29 19:06:57 PATCH: wxLogInfo() in wxWidgets 3.0

Browse pgadmin-support by date

  From Date Subject
Next Message Oliver 2014-06-30 10:24:26 Re: [pgadmin-support] Best backup strategy for production systems
Previous Message Michael Paquier 2014-06-29 12:28:36 Re: [pgadmin-support] Best backup strategy for production systems