Customer Portal

oracle join with null values

Comments 2

  • Avatar
    texlnghorn
    0
    Comment actions Permalink
    The problem looks to be with whatever is being substituted for the ? character in the join key. If I issue the query:
    select * from table where (field1 is null or field1 = 0), I will get the records where field 1 is null. However if I issue the query:
    select * from table where (field1 is null or field1 = ?) and the join key field1 is null then I don't get the records where field1 is null. So what is the value of the join key field1 when it is nullable and has not been set with a value?
  • Avatar
    avackova
    0
    Comment actions Permalink
    Hello, problem seems to be in caching database reply - null can't be set as key. Try to set "Cache size" to 0 on DBJoin component.

Please sign in to leave a comment.