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

Home » RADICORE development » Bug Reports » SQL Syntax error
Re: SQL Syntax error [message #2214 is a reply to message #2212] Thu, 16 July 2009 05:47 Go to previous messageGo to previous message
gpatti is currently offline  gpatti
Messages: 283
Registered: August 2008
Senior Member
I'm using 1.49

Looking at my code there is another aspect that may be contributing to this. I am adding a join to another table in _cm_pre_getData() according to the procedure described in one of the FAQs. This has been working fine until the addition of the $selections criteria as I described earlier.

        if (empty($this->sql_from)) {
            // construct default SELECT and FROM clauses using parent relations
            $this->sql_from    = null;
            $this->sql_groupby = null;
            $this->sql_having  = null;
            $this->sql_from    = $this->_sqlForeignJoin($this->sql_select, $this->sql_from, $this->parent_relations);

	        // add code to obtain grade amount
	        $this->sql_select .= ", crf_type.crf_type_id";
	        $this->sql_from   .= " LEFT JOIN crf_type ON branch.crf_type_id=crf_type.crf_type_id";
    	} // if


I'm also going to try a couple of things in the meantime.

Graham
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: New Hosting Account Bug
Next Topic: Where is where
Goto Forum:
  


Current Time: Tue Sep 10 10:17:45 EDT 2024

Total time taken to generate the page: 0.01350 seconds