Skip to content

Commit

Permalink
fix: fix address query for postgres
Browse files Browse the repository at this point in the history
refer #20537 (reference)

(cherry picked from commit 10dcbc5)
  • Loading branch information
ankush committed Apr 2, 2023
1 parent 955a723 commit 616dd8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frappe/contacts/doctype/address/address.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def address_query(doctype, txt, searchfield, start, page_len, filters):
order by
if(locate(%(_txt)s, `tabAddress`.name), locate(%(_txt)s, `tabAddress`.name), 99999),
`tabAddress`.idx desc, `tabAddress`.name
limit %(start)s, %(page_len)s """.format(
limit %(page_len)s offset %(start)s""".format(
mcond=get_match_cond(doctype),
key=searchfield,
search_condition=search_condition,
Expand Down

0 comments on commit 616dd8b

Please sign in to comment.