|
267 | 267 | "exampleStatements": []
|
268 | 268 | },
|
269 | 269 | {
|
270 |
| - "name": "{START | BEGIN} [TRANSACTION | WORK] [{ (READ ONLY|READ WRITE) [[,] (ISOLATION LEVEL (DEFAULT|SERIALIZABLE))] [[,] NOT DEFERRABLE]}]", |
| 270 | + "name": "{START | BEGIN} [TRANSACTION | WORK] [{ (READ ONLY|READ WRITE) [[,] (ISOLATION LEVEL (DEFAULT|SERIALIZABLE|REPEATABLE READ))] [[,] NOT DEFERRABLE]}]", |
271 | 271 | "executorName": "ClientSideStatementPgBeginExecutor",
|
272 | 272 | "resultType": "NO_RESULT",
|
273 | 273 | "statementType": "BEGIN",
|
274 |
| - "regex": "(?is)\\A\\s*(?:begin|start)(?:\\s+transaction|\\s+work)?((?:(?:\\s+|\\s*,\\s*)read\\s+only|(?:\\s+|\\s*,\\s*)read\\s+write|(?:\\s+|\\s*,\\s*)isolation\\s+level\\s+default|(?:\\s+|\\s*,\\s*)isolation\\s+level\\s+serializable|(?:\\s+|\\s*,\\s*)not\\s+deferrable)*)?\\s*\\z", |
| 274 | + "regex": "(?is)\\A\\s*(?:begin|start)(?:\\s+transaction|\\s+work)?((?:(?:\\s+|\\s*,\\s*)read\\s+only|(?:\\s+|\\s*,\\s*)read\\s+write|(?:\\s+|\\s*,\\s*)isolation\\s+level\\s+default|(?:\\s+|\\s*,\\s*)isolation\\s+level\\s+serializable|(?:\\s+|\\s*,\\s*)isolation\\s+level\\s+repeatable\\s+read|(?:\\s+|\\s*,\\s*)not\\s+deferrable)*)?\\s*\\z", |
275 | 275 | "method": "statementBeginPgTransaction",
|
276 | 276 | "exampleStatements": [
|
277 | 277 | "begin", "start", "begin transaction", "start transaction", "begin work", "start work",
|
278 | 278 | "begin read only", "start read only", "begin transaction read only", "start transaction read only", "begin work read only", "start work read only",
|
279 | 279 | "begin read write", "start read write", "begin transaction read write", "start transaction read write", "begin work read write", "start work read write",
|
280 | 280 | "begin isolation level default", "start isolation level default", "begin transaction isolation level default", "start transaction isolation level default", "begin work isolation level default", "start work isolation level default",
|
281 | 281 | "begin isolation level serializable", "start isolation level serializable", "begin transaction isolation level serializable", "start transaction isolation level serializable", "begin work isolation level serializable", "start work isolation level serializable",
|
| 282 | + "begin isolation level repeatable read", "start isolation level repeatable read", "begin transaction isolation level repeatable read", "start transaction isolation level repeatable read", "begin work isolation level repeatable read", "start work isolation level repeatable read", |
282 | 283 | "begin isolation level default read write", "start isolation level default read only", "begin transaction isolation level default read only", "start transaction isolation level default read write", "begin work isolation level default read write", "start work isolation level default read only",
|
283 | 284 | "begin isolation level serializable read write", "start isolation level serializable read write", "begin transaction isolation level serializable read only", "start transaction isolation level serializable read write", "begin work isolation level serializable read write", "start work isolation level serializable read only",
|
| 285 | + "begin isolation level repeatable read read write", "start isolation level repeatable read read write", "begin transaction isolation level repeatable read read only", "start transaction isolation level repeatable read read write", "begin work isolation level repeatable read read write", "start work isolation level repeatable read read only", |
284 | 286 | "begin isolation level serializable, read write", "start isolation level serializable, read write", "begin transaction isolation level serializable, read only", "start transaction isolation level serializable, read write", "begin work isolation level serializable, read write", "start work isolation level serializable, read only",
|
| 287 | + "begin isolation level repeatable read, read write", "start isolation level repeatable read, read write", "begin transaction isolation level repeatable read, read only", "start transaction isolation level repeatable read, read write", "begin work isolation level repeatable read, read write", "start work isolation level repeatable read, read only", |
285 | 288 | "begin not deferrable", "start not deferrable", "begin transaction not deferrable", "start transaction not deferrable", "begin work not deferrable", "start work not deferrable",
|
286 | 289 | "begin read only not deferrable", "start read only not deferrable", "begin transaction read only not deferrable", "start transaction read only not deferrable", "begin work read only not deferrable", "start work read only not deferrable",
|
287 | 290 | "begin read write not deferrable", "start read write not deferrable", "begin transaction read write not deferrable", "start transaction read write not deferrable", "begin work read write not deferrable", "start work read write not deferrable",
|
|
297 | 300 | "begin not deferrable isolation level serializable", "start isolation level serializable", "begin transaction not deferrable isolation level serializable", "start transaction isolation level serializable", "begin work not deferrable isolation level serializable", "start work isolation level serializable",
|
298 | 301 | "begin not deferrable isolation level default read write", "start isolation level default read only", "begin transaction not deferrable isolation level default read only", "start transaction isolation level default read write", "begin work not deferrable isolation level default read write", "start work isolation level default read only",
|
299 | 302 | "begin not deferrable isolation level serializable read write", "start isolation level serializable read write", "begin transaction not deferrable isolation level serializable read only", "start transaction isolation level serializable read write", "begin work not deferrable isolation level serializable read write", "start work isolation level serializable read only",
|
300 |
| - "begin not deferrable isolation level serializable, read write", "start isolation level serializable, read write", "begin transaction not deferrable isolation level serializable, read only", "start transaction isolation level serializable, read write", "begin work not deferrable isolation level serializable, read write", "start work isolation level serializable, read only" |
| 303 | + "begin not deferrable isolation level serializable, read write", "start isolation level serializable, read write", "begin transaction not deferrable isolation level serializable, read only", "start transaction isolation level serializable, read write", "begin work not deferrable isolation level serializable, read write", "start work isolation level serializable, read only", |
| 304 | + "begin not deferrable isolation level repeatable read, read write", "start isolation level repeatable read, read write", "begin transaction not deferrable isolation level repeatable read, read only", "start transaction isolation level repeatable read, read write", "begin work not deferrable isolation level repeatable read, read write", "start work isolation level repeatable read, read only" |
301 | 305 | ]
|
302 | 306 | },
|
303 | 307 | {
|
|
487 | 491 | }
|
488 | 492 | },
|
489 | 493 | {
|
490 |
| - "name": "SET TRANSACTION { (READ ONLY|READ WRITE) [[,] (ISOLATION LEVEL (DEFAULT|SERIALIZABLE))] }", |
| 494 | + "name": "SET TRANSACTION { (READ ONLY|READ WRITE) [[,] (ISOLATION LEVEL (DEFAULT|SERIALIZABLE|REPEATABLE READ))] }", |
491 | 495 | "executorName": "ClientSideStatementSetExecutor",
|
492 | 496 | "resultType": "NO_RESULT",
|
493 | 497 | "statementType": "SET_TRANSACTION_MODE",
|
494 | 498 | "regex": "(?is)\\A\\s*set\\s+transaction\\s*(?:\\s+)\\s*(.*)\\z",
|
495 | 499 | "method": "statementSetPgTransactionMode",
|
496 |
| - "exampleStatements": ["set transaction read only", "set transaction read write", "set transaction isolation level default", "set transaction isolation level serializable"], |
| 500 | + "exampleStatements": ["set transaction read only", "set transaction read write", "set transaction isolation level default", "set transaction isolation level serializable", "set transaction isolation level repeatable read"], |
497 | 501 | "examplePrerequisiteStatements": ["set autocommit = false"],
|
498 | 502 | "setStatement": {
|
499 | 503 | "propertyName": "TRANSACTION",
|
500 | 504 | "separator": "\\s+",
|
501 |
| - "allowedValues": "(((?:\\s*|\\s*,\\s*)READ\\s+ONLY|(?:\\s*|\\s*,\\s*)READ\\s+WRITE|(?:\\s*|\\s*,\\s*)ISOLATION\\s+LEVEL\\s+DEFAULT|(?:\\s*|\\s*,\\s*)ISOLATION\\s+LEVEL\\s+SERIALIZABLE)+)", |
| 505 | + "allowedValues": "(((?:\\s*|\\s*,\\s*)READ\\s+ONLY|(?:\\s*|\\s*,\\s*)READ\\s+WRITE|(?:\\s*|\\s*,\\s*)ISOLATION\\s+LEVEL\\s+DEFAULT|(?:\\s*|\\s*,\\s*)ISOLATION\\s+LEVEL\\s+SERIALIZABLE|(?:\\s*|\\s*,\\s*)ISOLATION\\s+LEVEL\\s+REPEATABLE\\s+READ)+)", |
502 | 506 | "converterName": "ClientSideStatementValueConverters$PgTransactionModeConverter"
|
503 | 507 | }
|
504 | 508 | },
|
505 | 509 | {
|
506 |
| - "name": "SET SESSION CHARACTERISTICS AS TRANSACTION { (READ ONLY|READ WRITE) [[,] (ISOLATION LEVEL (DEFAULT|SERIALIZABLE))] }", |
| 510 | + "name": "SET SESSION CHARACTERISTICS AS TRANSACTION { (READ ONLY|READ WRITE) [[,] (ISOLATION LEVEL (DEFAULT|SERIALIZABLE|REPEATABLE READ))] }", |
507 | 511 | "executorName": "ClientSideStatementSetExecutor",
|
508 | 512 | "resultType": "NO_RESULT",
|
509 | 513 | "statementType": "SET_READONLY",
|
510 | 514 | "regex": "(?is)\\A\\s*set\\s+session\\s+characteristics\\s+as\\s+transaction\\s*(?:\\s+)\\s*(.*)\\z",
|
511 | 515 | "method": "statementSetPgSessionCharacteristicsTransactionMode",
|
512 |
| - "exampleStatements": ["set session characteristics as transaction read only", "set session characteristics as transaction read write", "set session characteristics as transaction isolation level default", "set session characteristics as transaction isolation level serializable"], |
| 516 | + "exampleStatements": ["set session characteristics as transaction read only", "set session characteristics as transaction read write", "set session characteristics as transaction isolation level default", "set session characteristics as transaction isolation level serializable", "set session characteristics as transaction isolation level repeatable read"], |
513 | 517 | "setStatement": {
|
514 | 518 | "propertyName": "SESSION\\s+CHARACTERISTICS\\s+AS\\s+TRANSACTION",
|
515 | 519 | "separator": "\\s+",
|
516 |
| - "allowedValues": "(((?:\\s*|\\s*,\\s*)READ\\s+ONLY|(?:\\s*|\\s*,\\s*)READ\\s+WRITE|(?:\\s*|\\s*,\\s*)ISOLATION\\s+LEVEL\\s+DEFAULT|(?:\\s*|\\s*,\\s*)ISOLATION\\s+LEVEL\\s+SERIALIZABLE)+)", |
| 520 | + "allowedValues": "(((?:\\s*|\\s*,\\s*)READ\\s+ONLY|(?:\\s*|\\s*,\\s*)READ\\s+WRITE|(?:\\s*|\\s*,\\s*)ISOLATION\\s+LEVEL\\s+DEFAULT|(?:\\s*|\\s*,\\s*)ISOLATION\\s+LEVEL\\s+SERIALIZABLE|(?:\\s*|\\s*,\\s*)ISOLATION\\s+LEVEL\\s+REPEATABLE\\s+READ)+)", |
517 | 521 | "converterName": "ClientSideStatementValueConverters$PgTransactionModeConverter"
|
518 | 522 | }
|
519 | 523 | },
|
520 | 524 | {
|
521 |
| - "name": "SET DEFAULT_TRANSACTION_ISOLATION =|TO 'SERIALIZABLE'|SERIALIZABLE|DEFAULT", |
| 525 | + "name": "SET DEFAULT_TRANSACTION_ISOLATION =|TO 'SERIALIZABLE'|SERIALIZABLE|'REPEATABLE READ'|REPEATABLE READ|DEFAULT", |
522 | 526 | "executorName": "ClientSideStatementSetExecutor",
|
523 | 527 | "resultType": "NO_RESULT",
|
524 | 528 | "statementType": "SET_READONLY",
|
|
530 | 534 | "set default_transaction_isolation to 'serializable'",
|
531 | 535 | "set default_transaction_isolation = 'serializable'",
|
532 | 536 | "set default_transaction_isolation = \"SERIALIZABLE\"",
|
| 537 | + "set default_transaction_isolation=repeatable read", |
| 538 | + "set default_transaction_isolation to repeatable read", |
| 539 | + "set default_transaction_isolation to 'repeatable read'", |
| 540 | + "set default_transaction_isolation = 'repeatable read'", |
| 541 | + "set default_transaction_isolation = \"REPEATABLE READ\"", |
533 | 542 | "set default_transaction_isolation = DEFAULT",
|
534 | 543 | "set default_transaction_isolation to DEFAULT"
|
535 | 544 | ],
|
536 | 545 | "setStatement": {
|
537 | 546 | "propertyName": "default_transaction_isolation",
|
538 | 547 | "separator": "(?:=|\\s+TO\\s+)",
|
539 |
| - "allowedValues": "(SERIALIZABLE|'SERIALIZABLE'|\"SERIALIZABLE\"|DEFAULT)", |
| 548 | + "allowedValues": "(SERIALIZABLE|'SERIALIZABLE'|\"SERIALIZABLE\"|REPEATABLE\\s+READ|'REPEATABLE\\s+READ'|\"REPEATABLE\\s+READ\"|DEFAULT)", |
540 | 549 | "converterName": "ClientSideStatementValueConverters$PgTransactionIsolationConverter"
|
541 | 550 | }
|
542 | 551 | },
|
|
0 commit comments