how can i add the (+)

Posts   
 
    
heyu52
User
Posts: 21
Joined: 27-Apr-2010
# Posted on: 17-Nov-2010 08:45:37   

my sql SELECT DISTINCT "SAMPLE"."SAMPLENO" AS "SampleNo", "BASEDATA"."DESCRIPTION" AS "Stylist", "BASEDATA"."DESCRIPTION_C" AS "CStylist", "BASEDATA"."DESCRIPTION_S" AS "MStylist" FROM

"SAMPLE" ,"BASEDATA" WHERE "SAMPLE"."BASECODE20" = "BASEDATA"."BASECODE"(+) AND "SAMPLE"."COM_ID" = "BASEDATA"."COM_ID"(+) AND "BASEDATA"."BASETYPEID" (+)= 20

my code

filterBucket.Relations.Add(new EntityRelation(BaseDataFields.BaseCode, SampleFields.BaseCode20, RelationType.OneToMany), JoinHint.Left); relat = filterBucket.Relations[0] as IEntityRelation; relat.AddEntityFieldPair(BaseDataFields.ComId, SampleFields.ComId); relat.CustomFilter=new PredicateExpression(BaseDataFields.BaseTypeId==20);

llb gen the sql

WHERE "SAMPLE"."BASECODE20" = "BASEDATA"."BASECODE"(+) AND "SAMPLE"."COM_ID" = "BASEDATA"."COM_ID"(+) AND (("BASEDATA"."BASETYPEID" = 20 ))

i find it miss (+) in the "BASEDATA"."BASETYPEID"

how can i add it?

Walaa avatar
Walaa
Support Team
Posts: 14983
Joined: 21-Aug-2005
# Posted on: 17-Nov-2010 11:11:35   

Which version of Oracle database are you using?

heyu52
User
Posts: 21
Joined: 27-Apr-2010
# Posted on: 17-Nov-2010 11:27:58   

11.0 G R1

Walaa avatar
Walaa
Support Team
Posts: 14983
Joined: 21-Aug-2005
# Posted on: 17-Nov-2010 16:16:41   

AFAIK, starting from 9i you can use ansi joins (which can be switched on through the config file). Could you please try it out.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39749
Joined: 17-Aug-2003
# Posted on: 17-Nov-2010 17:23:59   
Frans Bouma | Lead developer LLBLGen Pro