Customer Portal

dbjoin with null values

Comments 3

  • Avatar
    texlnghorn
    0
    Comment actions Permalink
    Just a little clarification. The input data to join with is coming from a text file. In this case, the revision is blank. I do an insert in another step and the revision gets inserted as a null value. I also tried the following sql query thinking that my input key is a blank field but this again did not work:

    select * from item_version where version = ? and nvl(revision,'') = ?
  • Avatar
    avackova
    0
    Comment actions Permalink
    It seems that Oracle driver can't handle with nvl function on right side. Try to set "revsion" field not nullable with default value (eg. 'X'); then on DBJoin input there will be not null revisions and the component should work with following query:
    select * from item_version where version = ? and nvl(revision,'X') = ?
  • Avatar
    texlnghorn
    0
    Comment actions Permalink
    Thanks. That works.

Please sign in to leave a comment.