BUG/TYPO CI Version 3.1.8 - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6) +--- Forum: Issues (https://forum.codeigniter.com/forumdisplay.php?fid=19) +--- Thread: BUG/TYPO CI Version 3.1.8 (/showthread.php?tid=70558) |
BUG/TYPO CI Version 3.1.8 - nalletje - 04-26-2018 I just updated to CodeIgniter 3.1.8 and directly stumbled on a `typo` within the DB_query_builder. If you use the following like, you will encounter a error: PHP Code: $this->db->like('field', 'value', 'BEFORE'); This will result in a Database Error like: syntax error '%'value' ESCAPE '!' ... The % is placed before the quotes. Fix: Edit the DB_query_builder.php file on line 973 from: PHP Code: case 'before': to: PHP Code: case 'before': Didn't saw a thread of this yet, in case i missed i'm sorry RE: BUG/TYPO CI Version 3.1.8 - Paradinight - 04-26-2018 (04-26-2018, 05:50 AM)nalletje Wrote: I just updated to CodeIgniter 3.1.8 and directly stumbled on a `typo` within the DB_query_builder. On github: https://github.com/bcit-ci/CodeIgniter/issues/5462 |