Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query Builder LIKE BEFORE doesnt work CI 3.1.8 #5462

Closed
romainrg opened this issue Apr 2, 2018 · 2 comments
Closed

Query Builder LIKE BEFORE doesnt work CI 3.1.8 #5462

romainrg opened this issue Apr 2, 2018 · 2 comments

Comments

@romainrg
Copy link

romainrg commented Apr 2, 2018

There is an issue with LIKE method of query builder class when 'BEFORE' parameter is passed.

This code generates database error :
$this->db->select('*')->like('id', 'zefzefezf', 'BEFORE')->get('email_v2');

Result :
SELECT * FROM email_v2 WHERE id LIKE %'zefzefezf' ESCAPE '!'

The 'BOTH' and 'AFTER' parameter are working properly.

@romainrg romainrg changed the title Query Builder LIKE BEFORE doesnt work Query Builder LIKE BEFORE doesnt work CI 3.1.8 Apr 2, 2018
@romainrg
Copy link
Author

romainrg commented Apr 2, 2018

image

@narfbg
Copy link
Contributor

narfbg commented Apr 13, 2018

Please don't post screenshots of code. It really doesn't help, and it's annoying.

narfbg added a commit that referenced this issue Apr 14, 2018
Fixed issue #5462 Query Builder LIKE BEFORE doesnt work
narfbg added a commit that referenced this issue Apr 14, 2018
Fixed issue #5462 Query Builder LIKE BEFORE doesnt work
@narfbg narfbg closed this as completed Apr 14, 2018
bkader added a commit to bkader/skeleton that referenced this issue Apr 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants