Open
Description
Oracle provides the DBMS_OUTPUT.PUT_LINE
procedure, allowing users to write a line to the buffer.
Goal
Implement the new CYAR
rule that transpiles DBMS_OUTPUT.PUT_LINE
usages with RAISE NOTICE
.
Example
-- Oracle
DBMS_OUTPUT.PUT_LINE('foo');
DBMS_OUTPUT.PUT_LINE(rpad('Product Name', 51) || 'Demand Status');
-- PostgreSQL
RAISE NOTICE '%', 'foo';
RAISE NOTICE '%', rpad('Product Name', 51) || 'Demand Status';
How to demo
At least one Rust unit test exists demo-ing the rule functionality.