in

InnerJoin NullReferenceException

Last post 05-10-2008 7:52 AM by stevemason. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 05-07-2008 7:26 AM

    InnerJoin NullReferenceException

    Hi guys,

    We've come across a bug where the following code throws a NullReferenceException (on SVN r432):


                SubSonic.SqlQuery q = new Select().From(Northwind.Tables.OrderDetail)
                    .InnerJoin(Northwind.Tables.Product)
                    .Where("CategoryID").IsEqualTo(5);

    A workaround for the time being is for us to pass DataService.Provider into the constructor for Select(), but a better fix would be for the default constructor on SqlQuery to set the provider to this in the first place, rather than leaving it as null (I'll be posting a patch to CodePlex with this fix)

    Thanks,

    Steve

  • 05-07-2008 7:44 AM In reply to

    Re: InnerJoin NullReferenceException

  • 05-08-2008 12:05 PM In reply to

    Re: InnerJoin NullReferenceException

    Answer

     FIxed in Revision 434.

    Found a bug? Help us fix it by submitting a Work Item!
  • 05-10-2008 7:52 AM In reply to

    Re: InnerJoin NullReferenceException

     Thanks

Page 1 of 1 (4 items)