Thread: Re: [pgadmin-support] Character[] field value are truncated
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?
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
Thanks - change committed. On Sun, Jun 29, 2014 at 8:25 PM, Dmitriy Olshevskiy <olshevskiy87@bk.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