|
|
|
Update read only view
|
|||
|---|---|---|---|
|
#18+
Помогите плиз есть view CREATE VIEW V_GROUP_OBJECT_RIGHTS( ROLES_ID, GROUPS_ID, OBJECT_ID, CANVIEW, CANEDIT, CANDELETE) AS select distinct gr.roles_id, gr.groups_id, gr.object_id, (select 1 from acc_rights ar where ar.roles_id=gr.roles_id and ar.groups_id=gr.groups_id and ar.object_id=gr.object_id and ar.RIGHTS=1) as canView, (select 1 from acc_rights ar where ar.roles_id=gr.roles_id and ar.groups_id=gr.groups_id and ar.object_id=gr.object_id and ar.RIGHTS=2) as canEdit, (select 1 from acc_rights ar where ar.roles_id=gr.roles_id and ar.groups_id=gr.groups_id and ar.object_id=gr.object_id and ar.RIGHTS=3) as canDelete from v_group_object_roles gr; формируется из разных таблиц хочу на апдэйт этой view вызвать тригер а система ругается This column cannot be updated because it is derived from an SQL function or expression. attempted update of read-only column. Кас в IB реализовать instead как в Оракле ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 10.01.2004, 13:07 |
|
||
|
Update read only view
|
|||
|---|---|---|---|
|
#18+
Используй FB 1.5 RC7 или выше, вместо IB. Тогда наверняка заработает. Триггер может быть либо BEFORE, либо AFTER - это без разницы, в отношение вьюшек оба ведут себя аналогично оракловому INSTEAD OF. Если вьюха необновляемая сама по себе, конечно. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 10.01.2004, 15:49 |
|
||
|
|

start [/forum/topic.php?fid=40&gotonew=1&tid=1579404]: |
0ms |
get settings: |
6ms |
get forum list: |
14ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
159ms |
get topic data: |
7ms |
get first new msg: |
4ms |
get forum data: |
2ms |
get page messages: |
34ms |
get tp. blocked users: |
1ms |
| others: | 210ms |
| total: | 441ms |

| 0 / 0 |
