Kbase P162537: Doc: Wrong code fragment for the ENCRYPT-AUDIT-MAC-KEY( ) method.
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  3/25/2010 |
|
Status: Unverified
SYMPTOM(s):
Doc: Wrong code fragment for the ENCRYPT-AUDIT-MAC-KEY( ) method.
Both the OpenEdge ABL Online Documentation and the OpenEdge Development: ABL Reference give the following code for the ENCRYPT-AUDIT-MAC-KEY( ) method:
DEFINE VARIABLE val AS CHARACTER NO-UNDO.
DEFINE VARIABLE key AS CHARACTER NO-UNDO INITIAL "Open Sesame".
. . .
val = AUDIT-POLICY:ENCRYPT-AUDIT-MAC-KEY(key).
. . .
_Db-Detail._Db-mac-key = val.
The last line of the above code would generate a compile time error if compiled within a 4GL/ABL class or procedure.
FACT(s) (Environment):
All Supported Operating Systems
OpenEdge 10.1x
OpenEdge 10.2A
OpenEdge 10.2B
OpenEdge Category: Documentation
CAUSE:
The code snippet given in the Documentation is wrong because the statement:
_db-detail._db-mac-key = val.
would generate the compile time error: "** Incompatible data types in expression or assignment. (223)" because it attempts to assign a CHARACTER value to a RAW field.
CAUSE:
Bug# OE00196532
FIX:
None at this time. As a workaround, ensure the assignment of RAW values to RAW fields.