where boolean.equals(true)

Thread is closed for posting
2 posts, 0 answers
  1. Insad
    Insad avatar
    41 posts
    Member since:
    Jan 2010

    Posted 10 Jan 2012 Link to this post


    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));
    var noError1 = myCollection.Where(s=>s.bIsOnline == true);
    var noError2 = myCollection.Where(s=>s.bIsOnline);

    Is this a bug or done on purpuse?

  2. Thomas
    Thomas avatar
    590 posts

    Posted 11 Jan 2012 Link to this post


    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!
    the Telerik team

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

Back to Top