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

[FB4] Description of RDB$FUNCTION_ARGUMENTS::RDB$MECHANISM #192

Closed
dmitry-lipetsk opened this issue Nov 13, 2023 · 6 comments
Closed

[FB4] Description of RDB$FUNCTION_ARGUMENTS::RDB$MECHANISM #192

dmitry-lipetsk opened this issue Nov 13, 2023 · 6 comments
Assignees

Comments

@dmitry-lipetsk
Copy link

This column can also contain the following values:

  • 4 for SCALAR_ARRAY
  • 5 for REFERENCE_WITH_NULL
@mrotteveel mrotteveel self-assigned this Nov 13, 2023
@mrotteveel
Copy link
Member

Thanks, I'll add it when I have time.

@mrotteveel
Copy link
Member

BTW: Is this only for Firebird 4+ or also for older versions?

@dmitry-lipetsk
Copy link
Author

dmitry-lipetsk commented Nov 13, 2023

These constants were added in FB v2.0, if I understand correctly.

FB2 source (types.h):

	TYPE("BY_VALUE", 0, nam_mechanism)
	TYPE("BY_REFERENCE", 1, nam_mechanism)
	TYPE("BY_VMS_DESCRIPTOR", 2, nam_mechanism)
	TYPE("BY_ISC_DESCRIPTOR", 3, nam_mechanism)
	TYPE("BY_SCALAR_ARRAY_DESCRIPTOR", 4, nam_mechanism)
	TYPE("BY_REFERENCE_WITH_NULL", 5, nam_mechanism)

FB1.5.4.4910 source (types.h):

	TYPE("BY_VALUE", 0, nam_mechanism)
	TYPE("BY_REFERENCE", 1, nam_mechanism)
	TYPE("BY_VMS_DESCRIPTOR", 2, nam_mechanism)
	TYPE("BY_ISC_DESCRIPTOR", 3, nam_mechanism)
	TYPE("BY_SCALAR_ARRAY_DESCRIPTOR", 4, nam_mechanism)

Although FB1.5 has SCALAR_ARRAY-constant, it does not support the creation of UDF with such arguments (I tested this):

image

@mrotteveel
Copy link
Member

Given the language references only start at 2.5, the behaviour for Firebird 1.5 is not important :)

@dmitry-lipetsk
Copy link
Author

dmitry-lipetsk commented Nov 13, 2023 via email

@mrotteveel
Copy link
Member

Added to fblangref25 - fblangref50; this will be published at a later time (hoping/waiting for more changes to accumulate).

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