Title: Introduce a no-rollback option for utPLSQL. · Issue #784 · utPLSQL/utPLSQL · GitHub
Open Graph Title: Introduce a no-rollback option for utPLSQL. · Issue #784 · utPLSQL/utPLSQL
X Title: Introduce a no-rollback option for utPLSQL. · Issue #784 · utPLSQL/utPLSQL
Description: Background Currently, when running tests from developer IDE (like SQLDeveloper/TOAD/SQLPlus/sqlcl etc.), utPLQL always runs tests in an autonomous transaction. At the end of test-run, utPLSQL does an explicit rollback and closes the auto...
Open Graph Description: Background Currently, when running tests from developer IDE (like SQLDeveloper/TOAD/SQLPlus/sqlcl etc.), utPLQL always runs tests in an autonomous transaction. At the end of test-run, utPLSQL does ...
X Description: Background Currently, when running tests from developer IDE (like SQLDeveloper/TOAD/SQLPlus/sqlcl etc.), utPLQL always runs tests in an autonomous transaction. At the end of test-run, utPLSQL does ...
Opengraph URL: https://github.com/utPLSQL/utPLSQL/issues/784
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Introduce a no-rollback option for utPLSQL.","articleBody":"# Background\r\nCurrently, when running tests from developer IDE (like SQLDeveloper/TOAD/SQLPlus/sqlcl etc.), utPLQL always runs tests in an autonomous transaction.\r\nAt the end of test-run, utPLSQL does an explicit rollback and closes the autonomous transaction, leaving the current session intact.\r\n\r\nThis behavior is OK, when you want to make sure that running tests does not affect your session state regardless of commits/rollback/DDL inside tests or tested code.\r\n\r\nThere are scenarios, where user might want to keep the modified state of the data after the test finishes without performing an explicit commit in their tests.\r\n\r\n\r\n# Proposed solution\r\n\r\n- Add parameter `a_force_manual_rollback` to `ut.run` procedures (not functions)\r\n- Make sure that with `a_force_manual_rollback=true` the following happens:\r\n - Run is executed in current transaction\r\n - The rollback is not performed\r\n - `--%rollback(manual)` is implicitly applied to the whole run, so automatic transaction control is disabled for all the tests getting executed.\r\n\r\nThe `a_force_manual_rollback=true` will have a side effect of leaving data changed between individual tests and therefore should be used with caution and awareness of side effects.\r\n\r\n ","author":{"url":"https://github.com/jgebal","@type":"Person","name":"jgebal"},"datePublished":"2018-11-17T17:55:06Z","url":"https://github.com/utPLSQL/utPLSQL/issues/784"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:33279773-5804-296d-426e-05fcad069c02 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CCCA:2FE7CE:3610E5:4A5333:6B04BCBD |
| html-safe-nonce | 1a46598af34902d2f06739c1baf441c6922ccf93100fd4a8057e1a0c24a37f8e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQ0NBOjJGRTdDRTozNjEwRTU6NEE1MzMzOjZCMDRCQ0JEIiwidmlzaXRvcl9pZCI6IjgzMzQzNjM3MTE2MDMyNjA2MDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 03a90063ca5a35d3d8bd554d8feb0898fa446e56e30f514e7a8fc77752607255 |
| hovercard-subject-tag | issue:381885149 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/utPLSQL/utPLSQL/784/issue_layout |
| twitter:image | https://opengraph.githubassets.com/78a02c83c00f6b4f535eef191826212a6cc047ce835041526608f7beee76363a/utPLSQL/utPLSQL/issues/784 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/78a02c83c00f6b4f535eef191826212a6cc047ce835041526608f7beee76363a/utPLSQL/utPLSQL/issues/784 |
| og:image:alt | Background Currently, when running tests from developer IDE (like SQLDeveloper/TOAD/SQLPlus/sqlcl etc.), utPLQL always runs tests in an autonomous transaction. At the end of test-run, utPLSQL does ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jgebal |
| hostname | github.com |
| expected-hostname | github.com |
| None | 85dd75377eb77313206b8fc108bcee6a3a029286d94bf32bf9b4426e4d92e0c4 |
| turbo-cache-control | no-preview |
| go-import | github.com/utPLSQL/utPLSQL git https://github.com/utPLSQL/utPLSQL.git |
| octolytics-dimension-user_id | 15661281 |
| octolytics-dimension-user_login | utPLSQL |
| octolytics-dimension-repository_id | 50728220 |
| octolytics-dimension-repository_nwo | utPLSQL/utPLSQL |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 50728220 |
| octolytics-dimension-repository_network_root_nwo | utPLSQL/utPLSQL |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 0d64fa748a2bab9a5b587a967ac4da1cfa8da6dd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width