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
8e80dbb8
Commit
8e80dbb8
authored
Aug 29, 2002
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rephrase 'Cannot insert into a view' and related messages, per
pghackers discussion around 31-Jul-02.
parent
bf59ccc7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
src/backend/rewrite/rewriteHandler.c
src/backend/rewrite/rewriteHandler.c
+7
-4
No files found.
src/backend/rewrite/rewriteHandler.c
View file @
8e80dbb8
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/rewrite/rewriteHandler.c,v 1.10
6 2002/08/26 17:53:58
tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/rewrite/rewriteHandler.c,v 1.10
7 2002/08/29 06:05:27
tgl Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -1237,13 +1237,16 @@ QueryRewrite(Query *parsetree)
...
@@ -1237,13 +1237,16 @@ QueryRewrite(Query *parsetree)
switch
(
query
->
commandType
)
switch
(
query
->
commandType
)
{
{
case
CMD_INSERT
:
case
CMD_INSERT
:
elog
(
ERROR
,
"Cannot insert into a view without an appropriate rule"
);
elog
(
ERROR
,
"Cannot insert into a view"
"
\n\t
You need an unconditional ON INSERT DO INSTEAD rule"
);
break
;
break
;
case
CMD_UPDATE
:
case
CMD_UPDATE
:
elog
(
ERROR
,
"Cannot update a view without an appropriate rule"
);
elog
(
ERROR
,
"Cannot update a view"
"
\n\t
You need an unconditional ON UPDATE DO INSTEAD rule"
);
break
;
break
;
case
CMD_DELETE
:
case
CMD_DELETE
:
elog
(
ERROR
,
"Cannot delete from a view without an appropriate rule"
);
elog
(
ERROR
,
"Cannot delete from a view"
"
\n\t
You need an unconditional ON DELETE DO INSTEAD rule"
);
break
;
break
;
default:
default:
elog
(
ERROR
,
"QueryRewrite: unexpected commandType %d"
,
elog
(
ERROR
,
"QueryRewrite: unexpected commandType %d"
,
...
...
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