Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
e08fdf13
Commit
e08fdf13
authored
Apr 14, 2013
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add serial comma
parent
87306184
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/backend/rewrite/rewriteHandler.c
src/backend/rewrite/rewriteHandler.c
+1
-1
src/test/regress/expected/updatable_views.out
src/test/regress/expected/updatable_views.out
+1
-1
No files found.
src/backend/rewrite/rewriteHandler.c
View file @
e08fdf13
...
@@ -1989,7 +1989,7 @@ view_is_auto_updatable(Relation view)
...
@@ -1989,7 +1989,7 @@ view_is_auto_updatable(Relation view)
return
gettext_noop
(
"Views containing HAVING are not automatically updatable."
);
return
gettext_noop
(
"Views containing HAVING are not automatically updatable."
);
if
(
viewquery
->
setOperations
!=
NULL
)
if
(
viewquery
->
setOperations
!=
NULL
)
return
gettext_noop
(
"Views containing UNION, INTERSECT or EXCEPT are not automatically updatable."
);
return
gettext_noop
(
"Views containing UNION, INTERSECT
,
or EXCEPT are not automatically updatable."
);
if
(
viewquery
->
cteList
!=
NIL
)
if
(
viewquery
->
cteList
!=
NIL
)
return
gettext_noop
(
"Views containing WITH are not automatically updatable."
);
return
gettext_noop
(
"Views containing WITH are not automatically updatable."
);
...
...
src/test/regress/expected/updatable_views.out
View file @
e08fdf13
...
@@ -155,7 +155,7 @@ DETAIL: Views that return columns that are not columns of their base relation a
...
@@ -155,7 +155,7 @@ DETAIL: Views that return columns that are not columns of their base relation a
HINT: To make the view updatable, provide an unconditional ON DELETE DO INSTEAD rule or an INSTEAD OF DELETE trigger.
HINT: To make the view updatable, provide an unconditional ON DELETE DO INSTEAD rule or an INSTEAD OF DELETE trigger.
DELETE FROM ro_view6;
DELETE FROM ro_view6;
ERROR: cannot delete from view "ro_view6"
ERROR: cannot delete from view "ro_view6"
DETAIL: Views containing UNION, INTERSECT or EXCEPT are not automatically updatable.
DETAIL: Views containing UNION, INTERSECT
,
or EXCEPT are not automatically updatable.
HINT: To make the view updatable, provide an unconditional ON DELETE DO INSTEAD rule or an INSTEAD OF DELETE trigger.
HINT: To make the view updatable, provide an unconditional ON DELETE DO INSTEAD rule or an INSTEAD OF DELETE trigger.
UPDATE ro_view7 SET a=a+1;
UPDATE ro_view7 SET a=a+1;
ERROR: cannot update view "ro_view7"
ERROR: cannot update view "ro_view7"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment