Last char truncated when storing/fetching string from Aremos database

For notifying us of what you believe are bugs or errors in EViews.
Please ensure your copy of EViews is up-to-date before posting.

Moderators: EViews Gareth, EViews Moderator

mmiller2
Posts: 5
Joined: Tue Aug 23, 2016 9:56 am

Last char truncated when storing/fetching string from Aremos database

Postby mmiller2 » Tue Aug 23, 2016 10:11 am

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

johansamuelsson
Posts: 120
Joined: Thu Mar 03, 2011 10:07 pm
Contact:

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

Postby johansamuelsson » Wed Aug 24, 2016 5:28 am

Hi, a quick fix would be to put a space at the end of the string, ie

Code: Select all

string str = @wjoin(svec) + " "

EViews Jason
EViews Developer
Posts: 659
Joined: Tue Sep 16, 2008 3:50 pm

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

Postby EViews Jason » Wed Aug 24, 2016 8:40 am

It will be fixed in the next patch


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 1 guest