[progress Communities] [progress Openedge Abl] Forum Post: Re: Mystery Of Disappearing Longchar

  • Thread starter Thread starter Gunnar.Vogt
  • Start date Start date
Status
Not open for further replies.
G

Gunnar.Vogt

Guest
I can confirm that behavior for OE 10 and 11. Looks to me that the LONGCHAR length information is not correctly handled. It never get correctly updated and keeps ?. Even so the string itself gets filled and can be exported. While methods WRITE-XML and COPY-LOB not really care about the string length the function LENGTH and all string compares do. DEFINE TEMP-TABLE TT_Markup XML-NODE-NAME "Markup" FIELD ManualDisplayOrder AS INTEGER INIT 1 XML-NODE-TYPE "ATTRIBUTE". DEFINE DATASET DS_Root XML-NODE-NAME "Root" FOR TT_Markup. DEFINE VARIABLE v_Clob AS LONGCHAR NO-UNDO init ?. /* remove init ? */ DATASET DS_Root:EMPTY-DATASET(). message length (v_clob). DATASET DS_Root:WRITE-XML ("LONGCHAR", v_Clob, true). COPY-LOB v_Clob TO FILE "c:\temp\_before.xml". message length (v_clob).

Continue reading...
 
Status
Not open for further replies.
Back
Top