排序规则操作“喜欢”,同时与点燃-数据表搜索非法搭配
问题描述:
我已经成功实施点燃,数据表。然而,当键入非拉丁的人物,如搜索时使用的数据库I,S,G,..
I have successfully implemented Ignited-Datatables. However, while searching with database when typing "non-latin" characters like "İ,ş,ğ,.."
POST http://vproject.dev/module/user/ign_listing 500(内部服务器错误)
详情如下:
Illegal mix of collations for operation 'like' while searching
... (u.id_user LIKE '%İ%' OR u.first_name LIKE '%İ%' OR u.last_name LIKE '%İ%' OR ue.email LIKE '%İ%' OR u.last_login LIKE '%İ%' ) ...
%A°%
部分的变化,根据你输入的非拉丁字符。
%İ%
part changes according to the non-latin character you typed.
任何想法解决这个?
答
我想通了这个问题。现在看来,这是DATETIME领域引起该问题。
I figured out the problem. It seems it is DATETIME fields that causes the problem.
.. ue.last_login '%ayşenur%'
给出误差的排序规则的操作非法组合喜欢
。当我删除 LIKE
的谐音 DATETIME
字段,没有错误了。我希望这有助于。
gives error for Illegal mix of collations for operation 'like'
. When I remove LIKE
partials DATETIME
fields, there are no error any more. I hope this helps.