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

From Dmitriy Olshevskiy
Subject Re: [pgadmin-support] Character[] field value are truncated
Date
Msg-id 53B06812.8070508@bk.ru
Whole thread Raw
Responses Re: [pgadmin-support] Character[] field value are truncated  (Dave Page <dpage@pgadmin.org>)
List pgadmin-hackers
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

pgadmin-hackers by date:

Previous
From: "J.F. Oster"
Date:
Subject: PATCH: wxLogInfo() in wxWidgets 3.0
Next
From: Dmitriy Olshevskiy
Date:
Subject: PATCH: several minor changes an typos' fixing