Consultor Eletrônico



Kbase P47256: Error# 10652 when using the CAN-FIND function in a BY clause.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   3/18/2009
Status: Unverified

SYMPTOM(s):

Using the CAN-FIND function in a BY clause of a FOR EACH statement.

** Cannot use CAN-FIND function in a BY clause. (10652)

The same code works just fine prior OpenEdge 10.

FACT(s) (Environment):

OpenEdge 10.x
All Supported Operating Systems

CHANGE:

Upgraded to OpenEdge 10.

CAUSE:

This behavior is a bug fix for bug# 20001129-001. The bug documents the GPFs that can result from recursion on WHERE clauses since the BY phrase is processed during an outside WHERE clause processing. Depending on the individual predicates, the code would generate a GPF. Therefore, the compiler was modified to not accept CAN-FIND function in a BY clause.

FIX:

Modify the program's code so that it does not call the CAN-FIND function in a BY clause.