Jer*_*lix 14 php mysql database kohana kohana-3
Kohana v3 Query Builder是否可以使用IS NOT NULL运算符?
where($ column,$ op,$ value)方法需要所有三个参数,即使我指定了
->where('col', 'IS NOT NULL', '')
Run Code Online (Sandbox Code Playgroud)
它构建和无效的查询,例如.
SELECT * FROM table WHERE col IS NOT NULL '';
Run Code Online (Sandbox Code Playgroud)
sha*_*and 24
操作员未被转义:
->where('col', 'IS NOT', NULL)
Run Code Online (Sandbox Code Playgroud)
无需使用DB :: expr,Kohana已经支持你想要的东西.