fix: mysql syntax issue
(cherry picked from commit 4d9bbd4c9c06811086e0ae4e2c16763fe7d171a3)
This commit is contained in:
parent
cbf82872fb
commit
f4779df9b3
@ -699,7 +699,8 @@ def get_pending_work_orders(doctype, txt, searchfield, start, page_length, filte
|
|||||||
AND `company` = %(company)s
|
AND `company` = %(company)s
|
||||||
AND `name` like %(txt)s
|
AND `name` like %(txt)s
|
||||||
ORDER BY
|
ORDER BY
|
||||||
(case when locate(%(_txt)s, name) > 0 then locate(%(_txt)s, name) else 99999 end) name
|
(case when locate(%(_txt)s, name) > 0 then locate(%(_txt)s, name) else 99999 end),
|
||||||
|
name
|
||||||
LIMIT
|
LIMIT
|
||||||
%(start)s, %(page_length)s""",
|
%(start)s, %(page_length)s""",
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user