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
c01a56da
Commit
c01a56da
authored
Jan 07, 1998
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for views and outnodes.
parent
56466049
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
src/backend/nodes/read.c
src/backend/nodes/read.c
+6
-4
src/backend/nodes/readfuncs.c
src/backend/nodes/readfuncs.c
+1
-3
src/backend/rewrite/rewriteDefine.c
src/backend/rewrite/rewriteDefine.c
+3
-3
No files found.
src/backend/nodes/read.c
View file @
c01a56da
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/nodes/read.c,v 1.
7 1998/01/06 18:52:1
8 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/nodes/read.c,v 1.
8 1998/01/07 08:07:5
8 momjian Exp $
*
*
* HISTORY
* HISTORY
* AUTHOR DATE MAJOR EVENT
* AUTHOR DATE MAJOR EVENT
...
@@ -94,7 +94,9 @@ nodeTokenType(char *token, int length)
...
@@ -94,7 +94,9 @@ nodeTokenType(char *token, int length)
retval
=
(
*
token
!=
'.'
)
?
T_Integer
:
T_Float
;
retval
=
(
*
token
!=
'.'
)
?
T_Integer
:
T_Float
;
}
}
else
if
(
isalpha
(
*
token
)
||
*
token
==
'_'
)
/* make "" == NULL, not T_String. Is this a problem? 1998/1/7 bjm */
else
if
(
isalpha
(
*
token
)
||
*
token
==
'_'
||
(
token
[
0
]
==
'\"'
&&
token
[
1
]
==
'\"'
))
retval
=
ATOM_TOKEN
;
retval
=
ATOM_TOKEN
;
else
if
(
*
token
==
'('
)
else
if
(
*
token
==
'('
)
retval
=
LEFT_PAREN
;
retval
=
LEFT_PAREN
;
...
@@ -147,8 +149,8 @@ lsptok(char *string, int *length)
...
@@ -147,8 +149,8 @@ lsptok(char *string, int *length)
{
{
for
(
local_str
++
;
*
local_str
!=
'\"'
;
(
*
length
)
++
,
local_str
++
)
for
(
local_str
++
;
*
local_str
!=
'\"'
;
(
*
length
)
++
,
local_str
++
)
;
;
if
(
*
length
==
2
)
if
(
*
length
==
1
)
*
length
-=
2
;
/* if "", return zero length */
*
length
=
0
;
/* if "", return zero length */
else
else
(
*
length
)
++
;
(
*
length
)
++
;
local_str
++
;
local_str
++
;
...
...
src/backend/nodes/readfuncs.c
View file @
c01a56da
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/nodes/readfuncs.c,v 1.1
5 1998/01/06 23:19:49
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/nodes/readfuncs.c,v 1.1
6 1998/01/07 08:08:02
momjian Exp $
*
*
* NOTES
* NOTES
* Most of the read functions for plan nodes are tested. (In fact, they
* Most of the read functions for plan nodes are tested. (In fact, they
...
@@ -187,7 +187,6 @@ _readSortClause()
...
@@ -187,7 +187,6 @@ _readSortClause()
local_node
=
makeNode
(
SortClause
);
local_node
=
makeNode
(
SortClause
);
token
=
lsptok
(
NULL
,
&
length
);
/* skip the :resdom */
token
=
lsptok
(
NULL
,
&
length
);
/* skip the :resdom */
token
=
lsptok
(
NULL
,
&
length
);
/* get resdom */
local_node
->
resdom
=
nodeRead
(
true
);
local_node
->
resdom
=
nodeRead
(
true
);
token
=
lsptok
(
NULL
,
&
length
);
/* skip :opoid */
token
=
lsptok
(
NULL
,
&
length
);
/* skip :opoid */
...
@@ -211,7 +210,6 @@ _readGroupClause()
...
@@ -211,7 +210,6 @@ _readGroupClause()
local_node
=
makeNode
(
GroupClause
);
local_node
=
makeNode
(
GroupClause
);
token
=
lsptok
(
NULL
,
&
length
);
/* skip the :entry */
token
=
lsptok
(
NULL
,
&
length
);
/* skip the :entry */
token
=
lsptok
(
NULL
,
&
length
);
/* get entry */
local_node
->
entry
=
nodeRead
(
true
);
local_node
->
entry
=
nodeRead
(
true
);
token
=
lsptok
(
NULL
,
&
length
);
/* skip :grpOpoid */
token
=
lsptok
(
NULL
,
&
length
);
/* skip :grpOpoid */
...
...
src/backend/rewrite/rewriteDefine.c
View file @
c01a56da
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/rewrite/rewriteDefine.c,v 1.1
0 1998/01/05 03:32:44
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/rewrite/rewriteDefine.c,v 1.1
1 1998/01/07 08:08:08
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -115,7 +115,7 @@ InsertRule(char *rulname,
...
@@ -115,7 +115,7 @@ InsertRule(char *rulname,
is_instead
=
"t"
;
is_instead
=
"t"
;
if
(
evqual
==
NULL
)
if
(
evqual
==
NULL
)
evqual
=
"
nil
"
;
evqual
=
"
\"\"
"
;
if
(
IsDefinedRewriteRule
(
rulname
))
if
(
IsDefinedRewriteRule
(
rulname
))
elog
(
ABORT
,
"Attempt to insert rule '%s' failed: already exists"
,
elog
(
ABORT
,
"Attempt to insert rule '%s' failed: already exists"
,
...
@@ -245,7 +245,7 @@ DefineQueryRewrite(RuleStmt *stmt)
...
@@ -245,7 +245,7 @@ DefineQueryRewrite(RuleStmt *stmt)
eslot_string
,
eslot_string
,
event_qualP
,
event_qualP
,
true
,
true
,
"
nil
"
);
"
\"\"
"
);
prs2_addToRelation
(
ev_relid
,
ruleId
,
event_type
,
event_attno
,
TRUE
,
prs2_addToRelation
(
ev_relid
,
ruleId
,
event_type
,
event_attno
,
TRUE
,
event_qual
,
NIL
);
event_qual
,
NIL
);
...
...
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