We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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
The text was updated successfully, but these errors were encountered:
status: Open [ 1 ] => Resolved [ 5 ]
resolution: Fixed [ 1 ]
Fix Version: 3.0 Alpha 2 [ 10560 ]
assignee: Adriano dos Santos Fernandes [ asfernandes ]
Sorry, something went wrong.
status: Resolved [ 5 ] => Resolved [ 5 ]
QA Status: Done successfully
asfernandes
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: