I wrote the Where condition which has:
$arr _search[' baoming.limits <> '] = ' baoming.ck_nums ';
But some of the printed SQL is executed in cakephp:
Baoming
.
limits
<> ' Baoming.ck_nums '
That is, the baoming.ck_nums field is enclosed in single quotes, and the result of the query is incorrect. How can I not let it automatically add single quotes.
Did not solve for a long while, hope the great God help.
Thank you
Reply content:
I wrote the Where condition which has:
$arr _search[' baoming.limits <> '] = ' baoming.ck_nums ';
But some of the printed SQL is executed in cakephp:
Baoming
.limits
<> ' Baoming.ck_nums '
That is, the baoming.ck_nums field is enclosed in single quotes, and the result of the query is incorrect. How can I not let it automatically add single quotes.
Did not solve for a long while, hope the great God help.
Thank you
Workaround found:
$arr _search[] = ' baoming.limits <> baoming.ck_nums ';