You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
It would be very useful to get the name of the savepoints, either savepoint declaration or rollback statements, inside of the PLSQL code. Currently, PMD don't parse this information as part of the XML.
Describe the solution you'd like
Parsing the name of the savepoints in PMD XML.
Describe alternatives you've considered
The only alternative may be to include the name of the savepoint in the XML generated by PMD.
Additional context
This is an example of a stored procedure. It has several definitions of savepoints in PLSQL code:
CREATE OR REPLACE PROCEDURE EXAMPLE_PROCEDURE IS
BEGIN
--
SAVEPOINT SP_EXAMPLE_1;
--
BEGIN
--
INSERT INTO EXAMPLE_TABLE
(id_column, description_column)
VALUES
(1, 'Example value - 1');
--
UPDATE EXAMPLE_TABLE
SET description_column = 'Example value'
WHERE id_column = 1;
--
EXCEPTION
WHEN OTHERS THEN
ROLLBACK TO SP_EXAMPLE_1;
RETURN;
END;
--
SAVEPOINT SP_EXAMPLE_2;
--
BEGIN
--
INSERT INTO EXAMPLE_TABLE
(id_column, description_column)
VALUES
(2, 'Example value');
--
EXCEPTION
WHEN OTHERS THEN
ROLLBACK TO SP_EXAMPLE_2;
RETURN;
END;
--
EXCEPTION
WHEN OTHERS THEN
ROLLBACK TO SP_EXAMPLE_1;
END EXAMPLE_PROCEDURE;
This is the current XML generated by PMD (It doesn't include SAVEPOINT information):
hgodinez89
changed the title
[plsql] Improve XML by adding NAME of the SAVEPOINT statement
[plsql] Improve XML by adding the NAME of the SAVEPOINT statement
Dec 29, 2021
Is your feature request related to a problem? Please describe.
It would be very useful to get the name of the
savepoints
, either savepoint declaration or rollback statements, inside of the PLSQL code. Currently, PMD don't parse this information as part of the XML.Describe the solution you'd like
Parsing the name of the
savepoints
in PMD XML.Describe alternatives you've considered
The only alternative may be to include the name of the savepoint in the XML generated by PMD.
Additional context
This is an example of a stored procedure. It has several definitions of savepoints in PLSQL code:
This is the current XML generated by PMD (It doesn't include SAVEPOINT information):
Please, pay attention to the following XML sections:
Declaration of savepoints
Rollback to a specific savepoint
The text was updated successfully, but these errors were encountered: