Menu

Problem using the Offset property

2004-10-27
2013-03-07
  • Nobody/Anonymous

    Hi Richard

    I am currently using sql server, when I use  RetrieveCriteria to retrieve object and set the RowLimit property to 3 and Offset property to 1, AtomsFramework generate such sql statement and throw an exception :
    "SELECT TOP 1,  3 Article.OIDValue, Article.CreatedDate, Article.ModifiedDate, Article.PublishedDate, Article.Title, Article.Click, Article.AtomsCategoryOIDValue FROM Article"

    Did I do anything wrong?

     
    • Richard Banks

      Richard Banks - 2004-10-27

      Probably not...

      It's more than likely my code that generates the SQL when using offsets.  I'll check it and get back to you.

      - Richard.

       
    • Nobody/Anonymous

      Ok : )

       
    • Nobody/Anonymous

      Ok : )

      Thanks!

       
    • Richard Banks

      Richard Banks - 2004-10-27

      Grr, SQL Server doesn't support selection offsets (ie you can't skip the first n rows of a result).

      I'm trying to work around it at the moment.  I'll see what I can do.

      - Richard

       
    • Nobody/Anonymous

      I see.

      Looking forward to your new version : )

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.