-
Notifications
You must be signed in to change notification settings - Fork 85
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
add noSplit option to executeSql #298
base: develop
Are you sure you want to change the base?
Conversation
this allows for multi-statement execution at once for non-oracle DBMSes and/or for pre-split content.
vectorize
Adding an argument to this specific function feels a bit hacky. Two alternates:
|
alternative 1 would likely function properly. However, if additional error logging ( alternative 2 would work for my circumstance, but MAY break the implementation of other packages that use DatabaseConnector. For instance, if such packages currently feed a list what I will term "segmented queries"* to A third alternative: editing I personally favor the adding of an optional parameter to the *My current working definition of "segmented queries" is a set of statements that are designed to logically encompass grouped statements, but ones that can be executed serially. For instance, a segmented query could include a grouping of drop and create table, key and index definitions, and initialization with static values contained in a multi-statement string |
This allows for multi-statement execution "at once" for non-Oracle DBMSes and/or for pre-split content.
Specifically this is made to work around issues with
sqlRender::splitSql
where valid single (but compound) SQL statements are broken into multiple statements that are syntactically invalid on their own. This was observed when trying runexecuteSql
on aCREATE PROCEDURE
statement. Please see this issue