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

mysql: Handle tables that are reserved words #759

Merged
merged 1 commit into from
Oct 15, 2021
Merged

mysql: Handle tables that are reserved words #759

merged 1 commit into from
Oct 15, 2021

Conversation

Unifex
Copy link
Contributor

@Unifex Unifex commented Sep 27, 2021

Wrapping table names represented by %s in backticks so tables names that are also reserved words don't cause issues.

These 2 locations have impacted our project. There are more in this file but they have not impacted us yet so I have left them untouched.

I also updated the call to $this->Execute() in the first case. PHP is case insensitive to this, but not all IDE's are so this should help those.

Wrapping table names represented by `%s` in backticks so tables names that are also reserved words don't cause issues.

These 2 locations have impacted our project.  There are more in this file but they have not impacted us yet so I have left them untouched.

I also updated the call to `$this->Execute()` in the first case.  PHP is case insensitive to this, but not all IDE's are so this should help those.
@dregad dregad added bug mysqli MySQL and compatible drivers (MariaDB, etc) (Tier 1) labels Oct 15, 2021
@dregad
Copy link
Member

dregad commented Oct 15, 2021

There are more in this file but they have not impacted us yet so I have left them untouched.

By all means, feel free to fix them too

@dregad dregad added this to the v5.21.3 milestone Oct 15, 2021
@dregad dregad changed the title Handle tables that are reserved words. mysql: Handle tables that are reserved words Oct 15, 2021
@dregad dregad merged commit 72ffec3 into ADOdb:master Oct 15, 2021
@dregad
Copy link
Member

dregad commented Mar 28, 2022

See @peterdd's comment 72ffec3#r69702567

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug mysqli MySQL and compatible drivers (MariaDB, etc) (Tier 1)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants