Subject Re: Fb 2.1 and TYPE OF in PSQL
Author juarez_r
<adrianosf@...> wrote:
> Claudio Valderrama C. wrote:
> >> -----Original Message-----
> >> From: Firebird-Architect@yahoogroups.com
> >> [mailto:Firebird-Architect@yahoogroups.com]On Behalf Of Vlad Horsun
> >> I also like it. But without "%type" :) I.e.
> >> DECLARE <varname> TYPE OF <tablename>.<columnname>
> > But what happens when the table field is modified?
> > And what happens if the table field is dropped?
> >
> The operations you said is the same as domains have, and how we should
> handle it too.

This is the objetive for changing the dependency from the domain
to the table column: enforce the dependency of the procedure with the
table.
User should care about the changes needed by the procedure while
changing the table layout.
The dependency should exists by itself. In this way the programmer is
only expliciting it.