where boolean.equals(true)

2 posts, 0 answers
  1. Insad
    Insad avatar
    17 posts
    Member since:
    Jan 2010

    Posted 10 Jan 2012 Link to this post

    Hello,

    I just upgraded from oa 2010 Q3 to 2011 Q3.
    Now I get errors on some ling queries.
    //Produces an error Error stating:
    //executing query: Telerik.OpenAccess.RT.sql.SQLException: Incorrect syntax near '='. Statement(s) could not be prepared.
    var givesError = myCollection.Where(s=>s.bIsOnline.Equals(true));
     
    //Solutions
    var noError1 = myCollection.Where(s=>s.bIsOnline == true);
    var noError2 = myCollection.Where(s=>s.bIsOnline);

    Is this a bug or done on purpuse?

    Cheers
  2. Thomas
    Admin
    Thomas avatar
    590 posts

    Posted 11 Jan 2012 Link to this post

    Hello,

    this was a bug; I've just fixed this. Fortunately, the == workaround is already there and not obscure.
    The next version will contain the needed fix, and I have updated your Telerik points.

    Thanks for reporting this issue!
    Thomas
    the Telerik team

    SP1 for Q3’11 of Telerik OpenAccess ORM is available for download

  3. DevCraft banner
Back to Top