TOraQuery, Unicode and FieldsAsString
Posted: Mon 29 Jun 2009 20:57
It looks like the return data buffer size for numbers may be sized too small when FieldsAsString is true and Unicode is turned on. In some cases I get an "Ora-01406" error and in other cases the returned string seems to be cut short without an error message.
I haven't nailed it down completely yet, but one example is the following script. The query should show '-1', but it will only show '-':
This isn't the only case though. If I have a function that returns a number, if the number is large, the value gets truncated. Please let me know if you need more info and I'll try to make a better test case!
Thanks.
I haven't nailed it down completely yet, but one example is the following script. The query should show '-1', but it will only show '-':
Code: Select all
create table x (x number(1));
insert into x values (-1);
select * from x;Thanks.