dbrueckmann1
Member
Hi,
for my non-DOA-projects(BDE/DBExpress) I want to replace the error-position-feature using the following stored procedure:
CREATE OR REPLACE PROCEDURE dbr_error_pos(I_SQL_TEXT in varchar2,
O_ERROR_POS out NUMBER,O_ERROR_TEXT out varchar2)
AUTHID CURRENT_USER
IS
cur1 integer;
BEGIN
O_ERROR_POS := -1;
O_ERROR_TEXT := '?';
cur1:=dbms_sql.open_cursor;
dbms_sql.parse(cur1, I_SQL_TEXT,dbms_sql.native);
dbms_sql.close_cursor(cur1);
EXCEPTION
when others then
O_ERROR_POS := dbms_sql.LAST_ERROR_POSITION;
O_ERROR_TEXT := SQLERRM;
if dbms_sql.is_open(cur1) then
dbms_sql.close_cursor(cur1);
end if;
END;
/
My idea is to code the above in a TOracleQuery to avoid granting the procedure dbr_error_pos to all users. Is this psossible?
for my non-DOA-projects(BDE/DBExpress) I want to replace the error-position-feature using the following stored procedure:
CREATE OR REPLACE PROCEDURE dbr_error_pos(I_SQL_TEXT in varchar2,
O_ERROR_POS out NUMBER,O_ERROR_TEXT out varchar2)
AUTHID CURRENT_USER
IS
cur1 integer;
BEGIN
O_ERROR_POS := -1;
O_ERROR_TEXT := '?';
cur1:=dbms_sql.open_cursor;
dbms_sql.parse(cur1, I_SQL_TEXT,dbms_sql.native);
dbms_sql.close_cursor(cur1);
EXCEPTION
when others then
O_ERROR_POS := dbms_sql.LAST_ERROR_POSITION;
O_ERROR_TEXT := SQLERRM;
if dbms_sql.is_open(cur1) then
dbms_sql.close_cursor(cur1);
end if;
END;
/
My idea is to code the above in a TOracleQuery to avoid granting the procedure dbr_error_pos to all users. Is this psossible?