![]() |
Active Record operator question - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Active Record operator question (/showthread.php?tid=52621) |
Active Record operator question - El Forum - 06-19-2012 [eluser]Sean Delaney[/eluser] I get the following error when trying to run this query: Code: $this->CI->db->from('business'); business_start_date and business_end_date are both date field types in the table. ERROR: Code: A Database Error Occurred According the documentation here: http://ellislab.com/codeigniter/user-guide/database/active_record.html#select I can pass operators in the where() like this: Code: $this->db->where('name !=', $name); Any ideas? I assume I'm doing something wrong? Active Record operator question - El Forum - 06-19-2012 [eluser]marcogmonteiro[/eluser] What version of ci are you using? is it the last one and if so, was it downloaded when they released it? I think there was some problems with the active records operators, that made them re-release CI. Active Record operator question - El Forum - 06-19-2012 [eluser]Sean Delaney[/eluser] I'm running 2.1.1, downloaded when first released. I was not aware of another release. Download page still shows 2.1.1 ? Active Record operator question - El Forum - 06-19-2012 [eluser]Sean Delaney[/eluser] So is the currently 2.1.1 download of CI got fixes? Active Record operator question - El Forum - 06-19-2012 [eluser]Sean Delaney[/eluser] Fixed it with this for now: Code: $this->CI->db->where('business_start_date > ',date('Y-m-d'),FALSE); Active Record operator question - El Forum - 06-19-2012 [eluser]Sean Delaney[/eluser] Fixed it with this for now: Code: $this->CI->db->where('business_start_date > ',date('Y-m-d'),FALSE); Active Record operator question - El Forum - 06-19-2012 [eluser]marcogmonteiro[/eluser] yes, they re-released it on the next day but didn't change the version. It was a crappy move I tell you that, because if the version had indeed changed we would know how to help you better. Try downloading it again and see how that goes. cheers, Marco Active Record operator question - El Forum - 06-19-2012 [eluser]InsiteFX[/eluser] CodeIgniter on GitHub |