npm node-red-contrib-oracledb-mod 0.7.6
PL/SQL Block Fix & Dependency Updates

one day ago

๐ŸŽ‰ Major Fix: ORA-06550 Error Resolution

This release resolves the persistent ORA-06550 compilation errors that users experienced when executing PL/SQL blocks containing BEGIN...END; statements.

๐Ÿ› Issue Fixed

  • #126: Constant Oracle query error: ORA-06550 when using a BEGIN/END; block

๐Ÿ”ง Root Cause & Solution

Problem: The query processing logic automatically removed trailing semicolons from ALL queries to prevent ORA-00933 errors with regular SQL statements. However, PL/SQL blocks require semicolons for proper compilation.

Solution: Implemented intelligent PL/SQL block detection that:

  • โœ… Preserves semicolons for PL/SQL blocks (required for compilation)
  • โœ… Removes semicolons for regular SQL statements (prevents ORA-00933)
  • โœ… Maintains full backward compatibility

๐Ÿš€ What's Fixed

Now works perfectly with all PL/SQL scenarios:

-- โœ… Simple anonymous blocks
BEGIN 
    NULL; 
END;

-- โœ… Blocks with procedures
BEGIN 
    DBMS_OUTPUT.PUT_LINE('Hello World'); 
END;

-- โœ… Blocks with bind variables
BEGIN 
    :result := 'Success'; 
END;

-- โœ… DECLARE blocks
DECLARE 
    v_count NUMBER; 
BEGIN 
    SELECT COUNT(*) INTO v_count FROM dual; 
END;

-- โœ… Stored procedure calls
BEGIN 
    get_employee_name(:emp_id, :emp_name); 
END;

๐Ÿ“ฆ Dependency Updates

Updated to latest stable versions for improved security and performance:

  • oracledb: ^6.9.0 โ†’ ^6.10.0 (latest Oracle driver)
  • @typescript-eslint/eslint-plugin: ^7.13.0 โ†’ ^8.46.2
  • @typescript-eslint/parser: ^7.13.0 โ†’ ^8.46.2
  • @types/jquery: ^3.5.32 โ†’ ^3.5.33
  • del: ^8.0.0 โ†’ ^8.0.1
  • dotenv: ^17.2.1 โ†’ ^17.2.3
  • gulp-eslint-new: ^2.1.0 โ†’ ^2.5.0

๐Ÿงช Enhanced Testing

  • Added 4 comprehensive PL/SQL-specific test cases
  • All 10 tests passing with 100% success rate
  • Verified compatibility with updated dependencies

๐Ÿ“š Documentation Improvements

  • Integrated troubleshooting section in README
  • Updated documentation with fix information and examples
  • Comprehensive error resolution guidance

โšก Performance & Quality

  • Clean build with zero ESLint errors
  • Optimized package size: 13.2 kB compressed (47.6 kB unpacked)
  • Production-ready with proper file exclusions

๐Ÿ”„ Migration Guide

If you were experiencing ORA-06550 errors:

  1. Update to v0.7.6: npm update node-red-contrib-oracledb-mod
  2. Restore proper semicolons to your PL/SQL blocks if you removed them as a workaround
  3. Use "single-meta" result action for blocks with OUT parameters
  4. Test your flows - they should now work without errors

๐Ÿ›ก๏ธ Backward Compatibility

โœ… Fully backward compatible - all existing flows continue to work exactly as before.


Full Changelog: v0.7.5...v0.7.6

Issues Resolved: #126

๐Ÿš€ Installation

npm install node-red-contrib-oracledb-mod@0.7.6

Or update via Node-RED Palette Manager.

Full Changelog: v0.7.5...v0.7.6

Don't miss a new node-red-contrib-oracledb-mod release

NewReleases is sending notifications on new releases.