SET OPTLOG

From Recital Documentation Wiki
Revision as of 15:40, 26 October 2009 by Helengeorge (Talk | contribs)

Jump to: navigation, search


Purpose

To specify whether logical expression optimization should take place


Syntax

SET OPTLOG ON | OFF


See Also

DB_OPTLOG, Logical Operators


Description

The SET OPTLOG command is used to specify whether logical expression optimization should take place or not. If SET OPTLOG is OFF, evaluating a logical expression causes the entire expression to be evaluated. If SET OPTLOG is ON, the evaluation of the logical expression is optimized. The optimization causes the evaluation to stop as soon as the result of the evaluation is known.

Example

// No error, even if crash() function does not exist
set optlog on
? .F. and crash()
 
// Gives error if crash() function does not exist
set optlog off
? .F. and crash()
 
// No error, even if crash() function does not exist
set optlog on
? .T. or crash()
 
// Gives error if crash() function does not exist
set optlog off
? .T. or crash()


Products

Recital Database Server, Recital Mirage Server, Recital Terminal Developer