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

Mheavin snow 620438 net multi statements #644

Open
wants to merge 17 commits into
base: master
Choose a base branch
from

Conversation

sfc-gh-mheavin
Copy link
Contributor

Added a section for executing batch statements

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
Copy link
Contributor

@sfc-gh-dyoshinaga sfc-gh-dyoshinaga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for making these changes!

conn.ConnectionString = ConnectionString;
conn.Open();
IDbCommand cmd = conn.CreateCommand();
cmd.CommandText = "ALTER SESSION SET MULTI_STATEMENT_COUNT = 3;";
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is incorrect. Session parameter can only be used to turn multiple statements feature on/off, the valid values there can only be 0 or 1.
To set number of statements you have to set it through the parameter per query, as the following example.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

3 participants