On Mon, Mar 30, 2015 at 8:13 PM, <chjischj(at)163(dot)com> wrote:
>
> Table and data:
> create table empl(idnum integer, name char (10000000));
> insert into empl values(1,'abcdddd1123444ddffdfdffddfdfffd');
So the table used in your test uses char(10000000), which is a
datatype that completes with spaces strings stored that have a length
shorter than the limit. So even if you store a string of n characters,
what will be stored are those n characters, followed by 10,000,000 - n
spaces.
>
> EXEC SQL BEGIN DECLARE SECTION;
> struct TBempl
> {
> long idnum;
> char name[10000];
> };
And this test expects that result of column "name" does not contain
more 10k characters, so your data set is incompatible with your test,
explaining the crash you are seeing.
--
Michael