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

Invalid SQL Parsing #98

Closed
cyrixsimon opened this issue Oct 19, 2023 · 2 comments · Fixed by #99
Closed

Invalid SQL Parsing #98

cyrixsimon opened this issue Oct 19, 2023 · 2 comments · Fixed by #99
Assignees
Labels
bug Unwanted / harmful behavior

Comments

@cyrixsimon
Copy link
Contributor

When executing an insert statement that contains 'import into ' as a value the following error is raised.

E-EGOD-27: could not parse import query

Example statement.
insert into table1 values ('import into {{dest.schema}}.{{dest.table}} ) from local csv file ''{{file.path}}'' ');

@ssteinhauser
Copy link

The root cause of the error seems to be the regular expression that checks if the query is a local csv import: https://github.com/exasol/exasol-driver-go/blob/main/internal/utils/helper.go#L16

@kaklakariada kaklakariada added the bug Unwanted / harmful behavior label Oct 20, 2023
@kaklakariada kaklakariada self-assigned this Oct 20, 2023
kaklakariada added a commit that referenced this issue Oct 20, 2023
kaklakariada added a commit that referenced this issue Oct 20, 2023
@kaklakariada
Copy link
Collaborator

kaklakariada commented Oct 23, 2023

@cyrixsimon @ssteinhauser thank you for reporting this bug!
The fix is available in https://github.com/exasol/exasol-driver-go/releases/tag/v1.0.4

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

Successfully merging a pull request may close this issue.

3 participants