Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot create packaged routines with [VAR]CHAR parameters [CORE4203] #4528

Closed
firebird-automations opened this issue Sep 3, 2013 · 2 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @asfernandes

If the connection charset is different from NONE and the package header is created there, then it's impossible to create the package body.

If the package header is created in the NONE connection charset, then it becomes possible to create its body in any other connection charset.

In order to reproduce you need to connect with any non-NONE charset. Then:

CREATE PACKAGE TEST1 AS
BEGIN
FUNCTION F1(X CHAR(3)) RETURNS CHAR(6) ;
END

runs fine. Commit. Then:

CREATE PACKAGE BODY TEST1 AS
BEGIN
FUNCTION F1(X CHAR(3)) RETURNS CHAR(6)
AS
BEGIN
RETURN X;
END
END

returns the error:

Unsuccessful metadata update.
CREATE PACKAGE BODY TEST1 failed.
Function F1 has a signature mismatch on package body TEST1

If both parts are done with the NONE connection charset, there's no error.

Commits: 7c0ce8c FirebirdSQL/fbt-repository@d2c7f43

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 3.0 Alpha 2 [ 10560 ]

assignee: Adriano dos Santos Fernandes [ asfernandes ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

status: Resolved [ 5 ] => Resolved [ 5 ]

QA Status: Done successfully

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants