code error for DBTable class

Mar 11, 2011 at 2:22 AM

I think it is wrong in DBTable class in line 139, below is the source

public DBJoin InnerJoin(string table, string parentfield, string childfield)
        {
            DBTable tbl = Table(table);
            DBField parent = DBField.Field(this.Owner, this.Name, parentfield);
            DBField child = DBField.Field(table, parentfield);

            return InnerJoin(tbl, parent, child);
        }

I think statement :  DBField child = DBField.Field(table, parentfield);

should be :  DBField child = DBField.Field(table, childfield);

it is should child field , not the Parent field

Coordinator
Mar 11, 2011 at 11:02 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.