Skip to content

Add DESCRIBE to rawAddPrefix #950

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

Merged
merged 1 commit into from
Sep 13, 2022

Conversation

Dreller
Copy link
Contributor

@Dreller Dreller commented Feb 7, 2021

Trying to get all fields in a table, I have an error saying Undefined index 0 on MysqliDb.php, line 559.
I am using rawQuery("DESCRIBE table-name");. Looks like rawAddPrefix is not able to extract the table name because it doesn't look for the keyword 'describe', as it does for from, into, update and join. This commis adds 'describe' in the list so we now can use DESCRIBE keyword and get all columns for a table.

Add DESCRIBE in keywords searched to extract the table name and add the prefix.  This allow the use of DESCRIBE table-name.
@Dreller
Copy link
Contributor Author

Dreller commented Feb 7, 2021

#951

@avbdr avbdr merged commit aa1c0d1 into ThingEngineer:master Sep 13, 2022
@avbdr
Copy link
Collaborator

avbdr commented Sep 13, 2022

thank you!

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.

2 participants