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
c8cc45b2
Commit
c8cc45b2
authored
May 12, 1999
by
Jan Wieck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed small bug in ruleutils and added output of pg_views and
pg_rules to rules regression test. Jan
parent
b7a86e40
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
68 additions
and
2 deletions
+68
-2
src/backend/utils/adt/ruleutils.c
src/backend/utils/adt/ruleutils.c
+2
-2
src/test/regress/expected/rules.out
src/test/regress/expected/rules.out
+57
-0
src/test/regress/sql/rules.sql
src/test/regress/sql/rules.sql
+9
-0
No files found.
src/backend/utils/adt/ruleutils.c
View file @
c8cc45b2
...
...
@@ -3,7 +3,7 @@
* out of it's tuple
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/ruleutils.c,v 1.1
2 1999/05/12 15:01:58
wieck Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/ruleutils.c,v 1.1
3 1999/05/12 17:59:31
wieck Exp $
*
* This software is copyrighted by Jan Wieck - Hamburg.
*
...
...
@@ -788,7 +788,7 @@ make_viewdef(HeapTuple ruletup, TupleDesc rulettc)
query
=
(
Query
*
)
lfirst
(
actions
);
if
(
ev_type
!=
'1'
||
ev_attr
>=
0
||
!
is_instead
||
strcmp
(
ev_qual
,
""
))
if
(
ev_type
!=
'1'
||
ev_attr
>=
0
||
!
is_instead
||
strcmp
(
ev_qual
,
"
<>
"
))
return
"Not a view"
;
strcpy
(
buf
,
get_query_def
(
query
,
NULL
));
...
...
src/test/regress/expected/rules.out
View file @
c8cc45b2
This diff is collapsed.
Click to expand it.
src/test/regress/sql/rules.sql
View file @
c8cc45b2
...
...
@@ -681,3 +681,12 @@ DELETE FROM shoelace WHERE EXISTS
WHERE
sl_name
=
shoelace
.
sl_name
);
SELECT
*
FROM
shoelace
ORDER
BY
sl_name
;
--
-- Check that ruleutils are working
--
SELECT
*
FROM
pg_views
ORDER
BY
viewname
;
SELECT
*
FROM
pg_rules
ORDER
BY
tablename
,
rulename
;
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