Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE development » Data Dictionary » (BUG+FIX) SQL error with getData and complex SELECT statements
Re: (BUG+FIX) SQL error with getData and complex SELECT statements [message #42 is a reply to message #40] Fri, 26 May 2006 04:56 Go to previous messageGo to previous message
AJM is currently offline  AJM
Messages: 2361
Registered: April 2006
Location: Surrey, UK
Senior Member
I have inserted your suggested code into my code base and got it working OK. As well as incorporating it into getCount() I have changed getData() so that I can now get the record count and the data with a single query.

There was one rare situation that required a bit of extra coding - it is possible for user A to have a screen with a LAST PAGE option available, but by the time he presses this link user B has deleted one or more records which means that a page with that number no longer exists. If you issue a SELECT with an OFFSET which is out of range then an empty result set is returned, so I have to adjust the OFFSET value and redo the SELECT in order to retrieve the contents of the latest LAST PAGE.

Try the attached file and tell me if it works OK for you as well.



 
Read Message
Read Message
Read Message
Read Message
Read Message
Next Topic: Icon Support
Goto Forum:
  


Current Time: Thu Sep 12 09:22:06 EDT 2024

Total time taken to generate the page: 0.00975 seconds