Page 1 of 1

Defining simple view causes loop

Posted: Sun Mar 24, 2013 4:27 pm
by HughDarwen
When I create a new v1.0.10 database from the attached backup, various things I attempt to do bring about a loop, reflected by endless repetitions of mysterious messages in the DBrowser Monitor window, as shown in the attachment, loop.d. The third attachment, DefBaseRelvars.d, is one of the scripts that causes the loop. Pressing backup also brings it about.

Hugh Darwen

Re: Defining simple view causes loop

Posted: Sun Mar 24, 2013 6:20 pm
by Dave
I'll test this thoroughly, but as a quick answer I suspect the following operator definitions from your backup are at the root of it:

Code: Select all

ANNOUNCE 'operator OP_EQUALS';
OPERATOR OP_EQUALS(P# PNO, PC CHARACTER) RETURNS BOOLEAN; RETURN THE_c ( P# ) = PC ; END OPERATOR ;

ANNOUNCE 'operator OP_EQUALS';
OPERATOR OP_EQUALS(S# SNO, SC CHARACTER) RETURNS BOOLEAN; RETURN THE_c ( S# ) = SC ; END OPERATOR ;
Could you try creating a new database and load a backup with the above two OPERATOR definitions omitted, and let me know if there are any problems?

Re: Defining simple view causes loop

Posted: Tue Mar 26, 2013 11:50 am
by HughDarwen
Yes. I deleted those operator definitions and everything then worked fine.

Hugh

Re: Defining simple view causes loop

Posted: Wed Mar 27, 2013 2:18 pm
by Dave
Excellent. It's good to know there's a workaround, and it clearly highlights what I need to work on.