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

Home » RADICORE development » Bug Reports » getCount function throws error when sql statement starts with whitespace
Re: getCount function throws error when sql statement starts with whitespace [message #5866 is a reply to message #5864] Thu, 08 September 2016 03:34 Go to previous messageGo to previous message
AJM is currently offline  AJM
Messages: 2371
Registered: April 2006
Location: Surrey, UK
Senior Member
I have added your fix to the getCount() method within std.table.class.inc as follows:
    // ****************************************************************************
    function getCount ($where=null)
    // get count of records that satisfy selection criteria in $where.
    {
        if (strlen(trim(preg_replace("/^\s+/u", "", $where))) > 0) {
            $count = $this->_dml_getCount($where);
            return $count;
        } else {
            return 0;
        } // if

    } // getCount


 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Radicore v1.95 - Postgresal 9.5.3 - System crash after pressing submit button
Next Topic: UPDATE1 scrolling skips validation after SubmitNext
Goto Forum:
  


Current Time: Wed Dec 04 14:30:23 EST 2024

Total time taken to generate the page: 0.01125 seconds