Issue Details (XML | Word | Printable)

Key: CORE-646
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Pavel Cisar
Votes: 2
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Firebird Core

UDF with no return value

Created: 17/Sep/03 12:00 AM   Updated: 20/Sep/06 01:51 AM
Component/s: UDF
Affects Version/s: None
Fix Version/s: None

SF_ID: 807991


 Description  « Hide
SFID: 807991#
Submitted By: pcisar

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

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Alice F. Bird added a comment - 14/Jun/06 09:41 AM
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.

Umberto Masotti added a comment - 20/Sep/06 01:51 AM
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?