Kbase P8663: Error "Wrong Datatype" when running Java application that uses the PRO_ELEMENT function
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  15/10/2008 |
|
Status: Verified
SYMPTOM(s):
Using the PRO_ELEMENT function with a Date field from a Java application
Error "Wrong Data type"
The PRO_ELEMENT is extracting a Date value from a 4GL Array Field
Variable of type Date is defined to get the result of the PRO_ELEMENT function
Using the JDBC Driver
CAUSE:
PRO_ELEMENT function returns a String value even when extracting Date value from an Array Field
FIX:
Define String Variable in the Java code and assign to that variable the value returned from PRO_ELEMENT function.