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
FB3 vs FB2.5. Different metadata for UDF return argument [CORE4237] #4561
Comments
Modified by: @asfernandesassignee: Adriano dos Santos Fernandes [ asfernandes ] |
Modified by: @asfernandesstatus: Open [ 1 ] => Resolved [ 5 ] resolution: Fixed [ 1 ] Fix Version: 3.0 Alpha 2 [ 10560 ] |
Commented by: @ibprovider Hi At first look - all is ok. Thanks. |
Commented by: @ibprovider Hi [Test UDF] Different "RDB$MECHANISM" for argument #2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Function UDF_DUMMY2_BD__BLOB: select * from rdb$functions x where x.rdb$function_name='UDF_DUMMY2_BD__BLOB' ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ SQL> show function UDF_DUMMY2_BD__BLOB; External function UDF_DUMMY2_BD__BLOB: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ If this is real problem, please, reopen this ticket. |
Commented by: @ibprovider Although, seems (in second case with UDF_DUMMY2_BD__BLOB) the problem present in FB2.5 and in FB3.0 :) Example for other UDF: DECLARE EXTERNAL FUNCTION UDF_DUMMY2_BD__VCH32BIG5 Note to number of return argument. Now is 0, not 2 (as in UDF_DUMMY2_BD__BLOB). [FB 2.5.3.26708] +++++++++++++++++++++++++++++++++++++++++++++++++++++++ select * from rdb$functions x where x.rdb$function_name='UDF_DUMMY2_BD__VCH32BIG5' ----------- [FB 3.0.0.30676] ++++++++++++++++++++++++++++++++++++++++++++++ select * from rdb$functions x where x.rdb$function_name='UDF_DUMMY2_BD__VCH32BIG5' ----------- |
Commented by: Sean Leyne (seanleyne) Dmitry, Can we edit the details of the case to focus on the key issue/differences? There are a lot of details which are not required to highlight/show the problem. |
Commented by: @ibprovider >Can we edit the details of the case to focus on the key issue/differences? Yes, of course. |
Commented by: @asfernandes Commited a fix for the "Different RDB$MECHANISM for argument #2" case. |
Commented by: Sean Leyne (seanleyne) By "we" I meant you. ;-] I can edit the item, but you may not like how much I trim from the details. |
Modified by: @ibproviderdescription: [TEST UDF] +++++++++++++++++++++++++++++++++++++++++++++++ Function UDF_TEST2: ----------- +++++++++++++++++++++++++++++++++++++++++++++++ Function UDF_TEST2: ----------- +++++++++++++++++++++++++++++++++++++++++++++++ => [TEST UDF] +++++++++++++++++++++++++++++++++++++++++++++++ Function UDF_TEST2: ----------- +++++++++++++++++++++++++++++++++++++++++++++++ Function UDF_TEST2: ----------- ----------- +++++++++++++++++++++++++++++++++++++++++++++++ |
Commented by: @ibprovider FB 3.0.0.30680 Now all is ok. Thanks. |
Modified by: @pcisarstatus: Resolved [ 5 ] => Closed [ 6 ] |
Submitted by: @ibprovider
[TEST UDF]
DECLARE EXTERNAL FUNCTION UDF_TEST2 RETURNS BLOB ENTRY_POINT 'IB_UDF_abs' MODULE_NAME 'ib_udf';
+++++++++++++++++++++++++++++++++++++++++++++++
[FB2.5]
ISQL> show function UDF_TEST2;
Function UDF_TEST2:
Function library is ib_udf
Entry point is IB_UDF_abs
Returns BLOB
-----------
select * from rdb$functions x where x.rdb$function_name='UDF_TEST2'
...
RDB$RETURN_ARGUMENT: 1
...
-----------
select * from rdb$function_arguments x where x.rdb$function_name='UDF_TEST2'
RDB$FUNCTION_NAME: UDF_TEST2
RDB$ARGUMENT_POSITION: 1
RDB$MECHANISM: 3
RDB$FIELD_TYPE: 261
RDB$FIELD_SCALE: 0
RDB$FIELD_LENGTH: 8
...
+++++++++++++++++++++++++++++++++++++++++++++++
[FB3]
ISQL> show FUNCTION UDF_TEST2;
Function UDF_TEST2:
Function library is ib_udf
Entry point is IB_UDF_abs
Argument 0: BLOB
-----------
select * from rdb$functions x where x.rdb$function_name='UDF_TEST2'
....
RDB$RETURN_ARGUMENT: 1
....
-----------
select * from rdb$function_arguments x where x.rdb$function_name='UDF_TEST2'
RDB$FUNCTION_NAME: UDF_TEST2
RDB$ARGUMENT_POSITION: 0 //<-------------- !!!
RDB$MECHANISM: 3
RDB$FIELD_TYPE: 261
RDB$FIELD_SCALE: 0
RDB$FIELD_LENGTH: 0 //<-------------- !!!
+++++++++++++++++++++++++++++++++++++++++++++++
It seems that FB3 works incorrectly.
Commits: 5296e61 56c2a5f FirebirdSQL/fbt-repository@c8ae900 FirebirdSQL/fbt-repository@a0c263c
The text was updated successfully, but these errors were encountered: