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
mrotteveel
changed the title
Impossible drop function in package with name of PSQL-function
Impossible to drop function in package with name of PSQL-function
Sep 21, 2023
Firebird 4.0.2.2770.
CREATE OR ALTER FUNCTION SOME_FUNC
RETURNS INTEGER
AS
BEGIN
RETURN 1;
END
SET TERM ^ ;
CREATE OR ALTER PACKAGE TEST_PKG
AS
BEGIN
FUNCTION SOME_FUNC() RETURNS INTEGER;-- Same name of real function, but in package
END^
RECREATE PACKAGE BODY TEST_PKG
AS
BEGIN
FUNCTION SOME_FUNC() RETURNS INTEGER
AS
BEGIN
END
END^
SET TERM ; ^
CREATE OR ALTER PROCEDURE TEST_PROC
AS
DECLARE VARIABLE NEW_INT INTEGER;
BEGIN
:NEW_INT = SOME_FUNC();
END
CREATE OR ALTER PACKAGE TEST_PKG
AS
BEGIN
-- FUNCTION SOME_FUNC() RETURNS INTEGER;
END
Error:
This operation is not defined for system tables.
unsuccessful metadata update.
cannot delete.
Function SOME_FUNC.
there are 1 dependencies.
SQLCODE: -607
SQLSTATE: 38000
GDSCODE: 335544351
The text was updated successfully, but these errors were encountered: