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

Add header cleanup functions #2775

Merged
merged 1 commit into from
Dec 20, 2018
Merged

Add header cleanup functions #2775

merged 1 commit into from
Dec 20, 2018

Conversation

janette
Copy link
Member

@janette janette commented Dec 14, 2018

connects #2770

Error when adding a file to the datastore where the column header uses a mysql reserved word

DKAN DATASTORE: There was a problem while importing the Resource - SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'group, group1, subgroup, aian, asian, black, highlyrural, hispanic, men, missing' at line 1

How to reproduce

  1. Create a resource with remote file: http://janette.dkandemo.nuamsdev.com/sites/default/files/VA-OHE-NVHER_01242017_1.csv
  2. Click manage datastore and 'import'
  3. Confirm you see the error above

QA Steps

Follow the steps above and confirm you do not get the error.

Reminders

  • There is test for the issue.
  • Coding standards checked.
  • Review docs.getdkan.com (or in /docs) to see if it still covers the scope of the PR and update if needed.

@dharizza dharizza merged commit 9792827 into 7.x-1.x Dec 20, 2018
@dharizza dharizza deleted the 2770-header-fails branch December 20, 2018 00:19
dafeder pushed a commit that referenced this pull request Apr 24, 2020
dafeder pushed a commit that referenced this pull request Apr 24, 2020
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

Successfully merging this pull request may close these issues.

None yet

2 participants