You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which operating systems have you tested for this bug?
Linux
Which server did you use?
apache
Database
MySql
What happened?
When I used method "like" in Builder , the db prefix is added twice
I join the error send.
The DB prefix is "applis_"
My code is :
$this->builder->like('clients.name', 'test');
mysqli_sql_exception #1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '%test%
OR applis_``applis_clients.name LIKE '%test%' ESCAPE '!'
Steps to Reproduce
Create a DB config file with DBPrefix not empty
Create a request with builder
Add clause like
Expected Output
I expected a query result
Anything else?
No response
The text was updated successfully, but these errors were encountered:
patmartel
added
the
bug
Verified issues on the current code behavior or pull requests that will fix them
label
Apr 22, 2022
kenjis
added
duplicate
Issue or pull request duplicates an already existing issue/pull request
and removed
bug
Verified issues on the current code behavior or pull requests that will fix them
labels
Apr 22, 2022
PHP Version
8.1
CodeIgniter4 Version
4.1.9
CodeIgniter4 Installation Method
Manual (zip or tar.gz)
Which operating systems have you tested for this bug?
Linux
Which server did you use?
apache
Database
MySql
What happened?
When I used method "like" in Builder , the db prefix is added twice
I join the error send.
The DB prefix is "applis_"
My code is :
$this->builder->like('clients.name', 'test');
mysqli_sql_exception #1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '%test%
OR
applis_``applis_clients
.name
LIKE '%test%' ESCAPE '!'Steps to Reproduce
Create a DB config file with DBPrefix not empty
Create a request with builder
Add clause like
Expected Output
I expected a query result
Anything else?
No response
The text was updated successfully, but these errors were encountered: