mirror of
https://github.com/postgres/postgres.git
synced 2025-06-27 23:21:58 +03:00
SELECT FOR UPDATE is implemented...
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/rewrite/rewriteHandler.c,v 1.30 1999/01/24 00:28:30 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/rewrite/rewriteHandler.c,v 1.31 1999/01/25 12:01:14 vadim Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -1787,6 +1787,7 @@ apply_RIR_view(Node **nodePtr, int rt_index, RangeTblEntry *rte, List *tlist, in
|
||||
}
|
||||
}
|
||||
|
||||
extern void CheckSelectForUpdate(Query *rule_action); /* in analyze.c */
|
||||
|
||||
static void
|
||||
ApplyRetrieveRule(Query *parsetree,
|
||||
@ -1847,6 +1848,7 @@ ApplyRetrieveRule(Query *parsetree,
|
||||
Index rti = 1;
|
||||
List *l2;
|
||||
|
||||
CheckSelectForUpdate(rule_action);
|
||||
/*
|
||||
* We believe that rt_index is VIEW - nothing should be
|
||||
* marked for VIEW, but ACL check must be done.
|
||||
|
Reference in New Issue
Block a user