Consultor Eletrônico



Kbase P175477: Syntax errors when database name matches the name of a comparison operator
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   15/10/2010
Status: Unverified

SYMPTOM(s):

Syntax errors when database name matches the name of a comparison operator

Database named LT, GT, EQ, NE, LE or GE causes syntax errors when compiling code that references fields with <db>.<table>.<field> references

Results returns syntax errors when trying to preview a report against a database whose name matches any of the comparison operators (e.g. LT, GT, EQ, NE, LE or GE)

** Unable to understand after -- "<string>". (247)

** Cannot process comparison in expression. (250)

** <program> Could not understand line <number>. (198)

Example code to demonstrate this problem:

FOR EACH lt.customer NO-LOCK:
DISPLAY lt.customer.cust-num lt.customer.name.
END.

FACT(s) (Environment):

All Supported Operating Systems
Progress 7.x
Progress 8.x
Progress 9.x
OpenEdge 10.x

CAUSE:

Bug# OE00201117

FIX:

Connect to your database with a logical name that is not one of the comparison operators mentioned above, or...

Do not reference the fields with database references in your code.