Subject Re: Fb 2.1 and TYPE OF in PSQL
Author Mauricio Longo
> I've this in my plan, add RDB$PARAMETER_MECHANISM and RDB$NULL_FLAG to
> RDB$PROCEDURE_PARAMETERS.
>
> RDB$NULL_FLAG was even added, but commented in the code.
>
> I didn't added yet because we currently don't use it, I'm not sure
if it
> should be added now or when more than one type exists.
>
>
> Adriano
>

Adriano,

It is probably better to add it now. If not, it will complicate
matters that you need to consider the version of the database when
checking to see if the type of is in use. I think that this is
exactly Martijn's point. Why complicate things in the future if you
know that this will be need and all it takes now is to have a field
which is always set to 1, say, and you've covered the future.

By the way... Can you tell me why "TYPE OF"? It seems bad English.
"OF TYPE" would actually convey the intended meaning which is to say
that you are using the data type. "TYPE OF" seems like a function
call which returns the type. :-)

All my best,

Mauricio