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

UDF with no return value [CORE646] #1011

Open
firebird-automations opened this issue Sep 17, 2003 · 5 comments
Open

UDF with no return value [CORE646] #1011

firebird-automations opened this issue Sep 17, 2003 · 5 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @pcisar

Votes: 2

SFID: 807991#⁠
Submitted By: pcisar

For some operation I prefer UDFs that no returns
value.
It is problem ?

@firebird-automations
Copy link
Collaborator Author

Commented by: Alice F. Bird (firebirds)

Date: 2006-01-17 14:27
Sender: dimitr
Logged In: YES
user_id=61270

This is called user-defined procedures. Or you may just call
UDF without using its return value.

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

issuetype: New Feature [ 2 ] => Improvement [ 4 ]

assignee: Dmitry Yemanov [ dimitr ]

SF_ID: 807991 =>

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

assignee: Dmitry Yemanov [ dimitr ] =>

@firebird-automations
Copy link
Collaborator Author

Commented by: Umberto Masotti (umasotti)

Which real problem this want to solve? I don't see.

Syntax for declaring UDF in IB6.0 is
DECLARE EXTERNAL FUNCTION name [ datatype | CSTRING (int)
[ , datatype | CSTRING (int) ...] ]
RETURNS { datatype [ BY VALUE ] | CSTRING (int) } [ FREE_IT ]
ENTRY_POINT 'entryname'
MODULE_NAME 'modulename';

and would be changed in
DECLARE EXTERNAL FUNCTION name [ datatype | CSTRING (int)
[ , datatype | CSTRING (int) ...] ]
[ RETURNS {datatype [ BY VALUE ] | CSTRING (int)} [ FREE_IT ] ]
ENTRY_POINT 'entryname'
MODULE_NAME 'modulename';

Also
ALTER EXTERNAL FUNCTION (Fb 2.0)
need to support it.

Or add a completely new (?)
DECLARE EXTERNAL PROCEDURE name [ datatype | CSTRING (int)
[ , datatype | CSTRING (int) ...] ]
ENTRY_POINT 'entryname'
MODULE_NAME 'modulename';
with its
ALTER EXTERNAL PROCEDURE

Does this worth while?

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Workflow: jira [ 10670 ] => Firebird [ 15010 ]

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

1 participant