Customer Portal

has been shut down stream

Comments 4

  • Avatar
    avackova
    0
    Comment actions Permalink
    Hello,
    I haven't found any problem on MySql database. Isn't the problem in the metadata? Length and scale can be specified for decimal field only and size shouldn't be specified fro delimited metadata.
  • Avatar
    hwhwhw
    0
    Comment actions Permalink
    Sorry, my database environment is ORACLE 10g
  • Avatar
    avackova
    0
    Comment actions Permalink
    Hi,
    I thing that problem is in jdbc oracle driver: after calling method getBytes or getBlob can't be called other type call method. I've found workaround to solve your problem: change field's order in metadata and in sql queries - that means:
    <Record name="T1" recordSize="-1" type="delimited">
    <Field default="" delimiter="\n" format="" name="C2" nullable="true" scale="0" shift="0" type="string"/> - long type in Oracle: Character data of variable length (A bigger version the VARCHAR2 datatype)
    <Field default="" delimiter=";" format="" name="C1" nullable="true" scale="0" shift="0" type="byte"/>
    </Record>
    and sqlQuery in input table:
    select c2, c1 from t1
    sqlQuery in output table
    insert into (c2, c1) values (?,?)
  • Avatar
    hwhwhw
    0
    Comment actions Permalink
    Thank you very much for the patience to answer, was touched by your professionalism(open sources), this should be oracle jdbc driven bug.

Please sign in to leave a comment.