-
Notifications
You must be signed in to change notification settings - Fork 135
chore: Support dml_batch_update_count option in PG dialect #4142
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
Changes from all commits
abf6609
1b7f911
1000fdc
c33c277
e272679
aac9e9f
71a3360
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -966,6 +966,28 @@ | |
"converterName": "ClientSideStatementValueConverters$LongConverter" | ||
} | ||
}, | ||
{ | ||
sakthivelmanii marked this conversation as resolved.
Show resolved
Hide resolved
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Run the following command in the
This will generate tests for the new statements that you have added to the client-side statement file(s). See There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||
"name": "SET [LOCAL] SPANNER.BATCH_DML_UPDATE_COUNT =|TO <bigint>", | ||
"executorName": "ClientSideStatementSetExecutor", | ||
"resultType": "NO_RESULT", | ||
"statementType": "SET_BATCH_DML_UPDATE_COUNT", | ||
"regex": "(?is)\\A\\s*set\\s+((?:session|local)\\s+)?spanner\\.batch_dml_update_count(?:\\s*=\\s*|\\s+to\\s+)(.*)\\z", | ||
"method": "statementSetBatchDmlUpdateCount", | ||
"exampleStatements": [ | ||
"set local spanner.batch_dml_update_count = 0", | ||
"set local spanner.batch_dml_update_count = 100", | ||
"set local spanner.batch_dml_update_count to 1", | ||
"set spanner.batch_dml_update_count to 1", | ||
"set spanner.batch_dml_update_count = 1" | ||
], | ||
"examplePrerequisiteStatements": ["set spanner.readonly = false", "set autocommit = false"], | ||
"setStatement": { | ||
"propertyName": "SPANNER.BATCH_DML_UPDATE_COUNT", | ||
"separator": "(?:=|\\s+TO\\s+)", | ||
"allowedValues": "(\\d{1,19})", | ||
"converterName": "ClientSideStatementValueConverters$LongConverter" | ||
} | ||
}, | ||
{ | ||
"name": "SET SPANNER.AUTO_BATCH_DML_UPDATE_COUNT_VERIFICATION = TRUE|FALSE", | ||
"executorName": "ClientSideStatementSetExecutor", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: undo unrelated change? (Maybe in a follow-up PR)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's automatically added by bot.