maxdb 7.5 cpc error -845 on tables/structs with more than 6 columns
0 answers - 554 bytes -

my source contains
"
EXEC SQL BEGIN DECLARE SECTIN;
struct
{
int i1;
int i2;
int i3;
int i4;
int i5;
int i6;
int i7;
} testdata2;
EXEC SQL END DECLARE SECTIN;
EXEC SQL insert into cpctest
values (1,2,3,4,5,6,7);
EXEC SQL INSERT INT cpctest VALUES ( :testdata2 ) ;
"
The precompiler quits with
PRECM-ERRR N : -845 Invalid SQL statement
on the line EXEC SQL INSERT INT cpctest VALUES ( :testdata2 ) ;
When the table /struct has only 6 columns everthing is fine?