Subject | Re: Parser messes up SQL containing FIRST |
---|---|
Author | aleksander_oven |
Post date | 2003-10-14T13:17:41Z |
Helen,
This is worth to remember. I also noticed that automatically generated
update/insert/delete SQL statements tend to use RDB$DB_KEY on joined
views, rather then actual PK. So I guess this is related then?
I never really thought about this, because IBX for example didn't
treat views any differently than tables. At least from the outside view.
Kind regards,
Aleksander Oven
> >Invalid custom DML column reference: RDB$DB_KEY.Bull's eye! Thanks! :)
>
> It's probably a relic in one or more of your ***SQL properties from
> the previous bad Keylinks setting. Just inspect them and take them
> out.
> Automatic keylinks only works if you have a primary key on thetable. > It doesn't work with joined sets or views, either.
This is worth to remember. I also noticed that automatically generated
update/insert/delete SQL statements tend to use RDB$DB_KEY on joined
views, rather then actual PK. So I guess this is related then?
I never really thought about this, because IBX for example didn't
treat views any differently than tables. At least from the outside view.
Kind regards,
Aleksander Oven