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

Allow for SQL commands and not just queries #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Allow for SQL commands and not just queries #3

wants to merge 1 commit into from

Conversation

percz
Copy link
Contributor

@percz percz commented Jan 21, 2016

The current wrapper only allows (expects) queries, not commands, so TRUNCATE, DROP, CREATE are not available.

Added a stmt->execute(query) call to fix.

This pull has renamed the excising 'execute' to 'query' and might not be preferable, required excising code to be changed if updated with this. It might be better to keep the 'execute' name as is and create the new as 'command' or something?

Also the header file will need updating. ;-)

The current wrapper only allows (expects) queries, not commands, so TRUNCATE, DROP, CREATE are not available.

Added a ``stmt->execute(query)`` call to fix.

This pull has renamed the excising 'execute' to 'query' and might not be preferable, required excising code to be changed if updated with this. It might be better to keep the 'execute' name as is and create the new as 'command' or something?

Also the header file will need updating. ;-)
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.

1 participant