Title: Line numbers are wrong with source lines over 4000 bytes · Issue #1396 · utPLSQL/utPLSQL · GitHub
Open Graph Title: Line numbers are wrong with source lines over 4000 bytes · Issue #1396 · utPLSQL/utPLSQL
X Title: Line numbers are wrong with source lines over 4000 bytes · Issue #1396 · utPLSQL/utPLSQL
Description: Describe the bug When reading, scanning and referencing lines of code from (all|dba|user)_source there is a corner case that is not handled correctly right now in utPLSQL. When a line of source is more than 4000 bytes long, then the sour...
Open Graph Description: Describe the bug When reading, scanning and referencing lines of code from (all|dba|user)_source there is a corner case that is not handled correctly right now in utPLSQL. When a line of source is ...
X Description: Describe the bug When reading, scanning and referencing lines of code from (all|dba|user)_source there is a corner case that is not handled correctly right now in utPLSQL. When a line of source is ...
Opengraph URL: https://github.com/utPLSQL/utPLSQL/issues/1396
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Line numbers are wrong with source lines over 4000 bytes","articleBody":"**Describe the bug**\nWhen reading, scanning and referencing lines of code from `(all|dba|user)_source` there is a corner case that is not handled correctly right now in utPLSQL.\n\nWhen a line of source is more than 4000 bytes long, then the source line will actually be stored in two lines of the source view.\n\nThe problem was noticed and reported as a fix for `ut_metadata.get_source_definition_line` function.\n\nBut the fix proposed in #1394 only addresses one aspect of the issue.\nThe aspect that is visible in the expectation result.\n\n\n\n**To Reproduce**\n\nCreate the test package with a long line before the expectation result\n```sql\ncreate or replace package test_package1 is\n --%suite\n\n --%test\n procedure sp_test;\nend;\n\ncreate or replace package body test_package1 is\n procedure sp_test is\n begin\n /* [comment way over 4000 limit]*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/\n ut.expect(1).to_equal(2);\n end;\nend;\n```\n\nRun the tests\n```sql\nbegin\n ut.run('test_package1');\nend;\n```\n\nThe result shows:\n```\nFailures:\n\n 1) sp_test\n Actual: 1 (number) was expected to equal: 2 (number)\n at \"PMUSER.TEST_PACKAGE1.SP_TEST\", line 5 *****************************************************************************************************************************************************************************************************************************************/\n\nFinished in ,008209 seconds\n1 tests, 1 failed, 0 errored, 0 disabled, 0 warning(s)\n```\n\nThe problem is in the **at \"PMUSER.TEST_PACKAGE1.SP_TEST\", line 5*******...\n\n\n\n**Expected behavior**\n\nThe text should be **at \"PMUSER.TEST_PACKAGE1.SP_TEST\", line 5 ut.expect(1).to_equal(2);**\n\n\n","author":{"url":"https://github.com/jgebal","@type":"Person","name":"jgebal"},"datePublished":"2026-11-19T10:07:38Z","url":"https://github.com/utPLSQL/utPLSQL/issues/1396"}
| 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:286487fb-ebea-628c-a5c4-e3e058f5bdb4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DB3C:A12D8:86B507:B89B63:6B047E0E |
| html-safe-nonce | 88336552be03911e2d396c5f94dcc6f26a07c759e434b6d5c5ab241d3a0d0824 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQjNDOkExMkQ4Ojg2QjUwNzpCODlCNjM6NkIwNDdFMEUiLCJ2aXNpdG9yX2lkIjoiNDY3NTIwNDU3MDczNjI2MjY3MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a6c0658bc42ecc6d9f22899f06c917ec1e7b97a04ffff3c0fa9dccc2e0590f9f |
| hovercard-subject-tag | issue:6487163085 |
| 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/1396/issue_layout |
| twitter:image | https://opengraph.githubassets.com/31db38a35970c3c31a1937f4131159321885a63cb75f82af14c0ba17e6785e73/utPLSQL/utPLSQL/issues/1396 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/31db38a35970c3c31a1937f4131159321885a63cb75f82af14c0ba17e6785e73/utPLSQL/utPLSQL/issues/1396 |
| og:image:alt | Describe the bug When reading, scanning and referencing lines of code from (all|dba|user)_source there is a corner case that is not handled correctly right now in utPLSQL. When a line of source is ... |
| 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 | 0366ddfb372682a32e92a5d86155cb08fa83e5bbe79953a968789f2f7e24c511 |
| 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 | ed3f2e01f6b7672780c586c8af0e72726374d7b6 |
| 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