Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ProgrammingError: syntax error at or near "căm" #1525

Closed
ukanga opened this issue Dec 19, 2018 · 0 comments
Closed

ProgrammingError: syntax error at or near "căm" #1525

ukanga opened this issue Dec 19, 2018 · 0 comments
Assignees

Comments

@ukanga
Copy link
Member

ukanga commented Dec 19, 2018

https://sentry.onalabs.org/ona/onadata/issues/300/

ProgrammingError: syntax error at or near "căm"
LINE 1: ... AND deleted_at IS NULL  AND json->>'xa' = 'Chư R'căm' GROUP...
                                                             ^

(12 additional frame(s) were not displayed)
...
  File "onadata/apps/api/viewsets/dataview_viewset.py", line 210, in charts
    data_view=dataview
  File "onadata/libs/utils/chart_tools.py", line 472, in get_chart_data_for_field
    data_view=data_view)
  File "onadata/libs/utils/chart_tools.py", line 281, in build_chart_data_for_field
    field_name, data_view)
  File "onadata/libs/data/query.py", line 211, in get_form_submissions_grouped_by_field
    return _execute_query(_postgres_count_group(field, name, xform, data_view))
  File "onadata/libs/data/query.py", line 20, in _execute_query
    cursor.execute(query)

ProgrammingError: syntax error at or near "căm"
LINE 1: ... AND deleted_at IS NULL  AND json->>'xa' = 'Chư R'căm' GROUP...
                                                             ^

Aha! Link: https://ona.aha.io/features/PROD-285

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants