Page 1 of 1

Last char truncated when storing/fetching string from Aremos database

Posted: Tue Aug 23, 2016 10:11 am
by mmiller2
When I store a string object to an Aremos database, the last character in the string is truncated. The output from the following program should be

1 2 3 4 5

However, you'll notice that the 5 is omitted.

Code: Select all

db(type=aremos) abank wfcreate a 1901 2099 svector(3) svec = @wsplit("1 2 3 4 5") string str = @wjoin(svec) store str close @db db(type=aremos) abank fetch str. str.string

Re: Last char truncated when storing/fetching string from Aremos database

Posted: Wed Aug 24, 2016 5:28 am
by johansamuelsson
Hi, a quick fix would be to put a space at the end of the string, ie

Code: Select all

string str = @wjoin(svec) + " "

Re: Last char truncated when storing/fetching string from Aremos database

Posted: Wed Aug 24, 2016 8:40 am
by EViews Jason
It will be fixed in the next patch