This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 243351 - Please provide basic PL SQL variable support
Summary: Please provide basic PL SQL variable support
Status: NEW
Alias: None
Product: db
Classification: Unclassified
Component: PL SQL (show other bugs)
Version: 8.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Libor Fischmeistr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-28 11:43 UTC by tomzi
Modified: 2014-03-28 14:56 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
IDE log (402.11 KB, text/plain)
2014-03-28 11:43 UTC, tomzi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tomzi 2014-03-28 11:43:06 UTC
EG in 
CREATE OR REPLACE Procedure UpdateCourse
   ( name_in IN varchar2 )
   
IS
   cnumber number;

   cursor c1 is
   SELECT course_number
    FROM courses_tbl
    WHERE course_name = name_in;

BEGIN

   open c1;
   fetch c1 into cnumber;

   if c1%notfound then
      cnumber := 9999;
   end if;
   
   INSERT INTO student_courses
   ( course_name,
     course_number )
   VALUES
   ( name_in,
     cnumber );

   commit;

   close c1;

EXCEPTION
WHEN OTHERS THEN
   raise_application_error(-20001,'An error was encountered - '||SQLCODE||' -ERROR- '||SQLERRM);
END;

It would be nice to have basic support for 
- variables and types (varchar,%TYPE...)
- refactoring for variables
- STRG-space support for variables and types



Product Version = NetBeans IDE 8.0 (Build 201403101706)
Operating System = Linux version 3.5.0-47-generic running on amd64
Java; VM; Vendor = 1.7.0_51
Runtime = Java HotSpot(TM) 64-Bit Server VM 24.51-b03
Comment 1 tomzi 2014-03-28 11:43:11 UTC
Created attachment 146376 [details]
IDE log