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

Syntax error on Load if column is a reserved word (on more recent MariaDB) #117

Open
herbdool opened this issue May 25, 2023 · 5 comments
Open

Comments

@herbdool
Copy link

Earlier versions of MariaDB were more forgiving, but now I'm getting a syntax error because I have a column that is a reserved word. Oops. The quick fix is to change the column name, but I thought I'd bring it up here so that php-etl could put backticks around columns when creating the queries. This may avoid the error.

@ecourtial
Copy link
Collaborator

Thank you for your feedback. Indeed that something we should consider.
I add it to the todo list.
Which version of MariaDB are you using?

@herbdool
Copy link
Author

MariaDB 10.6

@buro26-vincent
Copy link

I think the following changes solve this issue:

@ecourtial
Copy link
Collaborator

@herbdool Let us know if this solution is working.

@leNEKO
Copy link

leNEKO commented Sep 7, 2023

Hi there :) i have this refacto #118 which includes the backticks fixes for table and column names.

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

4 participants