Subject | Re: [Firebird-Architect] FB 2.0 Road Map |
---|---|
Author | Martijn Tonies |
Post date | 2004-09-20T08:53:37Z |
Hi Claudio,
Aha, so that's where TYPE comes from!
Martijn Tonies
Database Workbench - developer tool for InterBase, Firebird, MySQL & MS SQL
Server.
Upscene Productions
http://www.upscene.com
> >> Oracle way of adding built-in functions seems like better idea to me.return
> >> Something like MODIFIED(A, B) returning TRUE if A differs from B
> >> considering null as a special value seems to look better.
> >
> > Now, this could easily be done if we had Stored Functions and
> > typeless parameters ;-)
>
> Do you know who can do this? UDF's, of course. No joke. They can emulate
> typeless input parameters without any engine modification. But their
> param type is fixed, although intermediate conversions can happen.Interesting. How would you do typeless input parameters?
> Problem: there were two types of UDF: value and boolean. The second neversystem
> was implemented but only documented and a "type" field assigned in a
> table (for different, prospective UDF types). The parser knows nothingabout
Aha, so that's where TYPE comes from!
> boolean UDF's, too. People would have to live witha
> if CHANGED(x, y) = 1
> then ...
> until we implement the boolean type.
>
> The functionality probably can be implemented by an internal UDF, although
> good dose of *** code duplication would happen. There would be limitationsWith regards,
> that would make the feature incomplete, unless the engine is told to
> distinguish between built-in UDF's and typical external functions.
Martijn Tonies
Database Workbench - developer tool for InterBase, Firebird, MySQL & MS SQL
Server.
Upscene Productions
http://www.upscene.com