Adriano dos Santos Fernandes wrote:
> On 22/07/2016 02:49, Geoff Worboys wrote:
>>
>> Is this expected behaviour?

> No, I think. ttype_dynamic should not escape from the engine.

Okay, I'll raise a tracker item for it.

...

I'm wondering if there might be two issues items going on here.
One regarding by descriptor parameters to UDFs, the other
regarding EXECUTE BLOCK parameters:

This execute block:

    EXECUTE BLOCK (
        "Param1" TYPE OF NAME_D = ?
    ) RETURNS (
        "Result" TYPE OF NAME_D
    ) AS
    BEGIN
        "Result" = ReflectType("Param1");
        SUSPEND;
    END

According to the language update reference, the use of TYPE OF:
"Only the type itself is used; in the case of string types,
this includes the character set and the collation."

But it appears that this is not happening with EXECUTE BLOCK
parameters.

Can you think of a way I can set up to test the character set
of Param1 inside the execute block without a UDF?

-- 
Geoff Worboys
Telesis Computing Pty Ltd


------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to