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
0858ed20
Commit
0858ed20
authored
May 26, 2004
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A couple other cosmetic cleanups in new List stuff.
parent
437063bd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
10 deletions
+5
-10
src/backend/utils/adt/ruleutils.c
src/backend/utils/adt/ruleutils.c
+4
-7
src/include/nodes/pg_list.h
src/include/nodes/pg_list.h
+1
-3
No files found.
src/backend/utils/adt/ruleutils.c
View file @
0858ed20
...
...
@@ -3,7 +3,7 @@
* back to source text
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/adt/ruleutils.c,v 1.16
7 2004/05/26 04:41:38 neilc
Exp $
* $PostgreSQL: pgsql/src/backend/utils/adt/ruleutils.c,v 1.16
8 2004/05/26 19:30:12 tgl
Exp $
*
* This software is copyrighted by Jan Wieck - Hamburg.
*
...
...
@@ -2274,17 +2274,14 @@ static void
get_names_for_var
(
Var
*
var
,
deparse_context
*
context
,
char
**
schemaname
,
char
**
refname
,
char
**
attname
)
{
ListCell
*
nslist_item
=
list_head
(
context
->
namespaces
);
int
sup
=
var
->
varlevelsup
;
deparse_namespace
*
dpns
;
RangeTblEntry
*
rte
;
/* Find appropriate nesting depth */
while
(
sup
--
>
0
&&
nslist_item
!=
NULL
)
nslist_item
=
lnext
(
nslist_item
);
if
(
nslist_item
==
NULL
)
if
(
var
->
varlevelsup
>=
list_length
(
context
->
namespaces
))
elog
(
ERROR
,
"bogus varlevelsup: %d"
,
var
->
varlevelsup
);
dpns
=
(
deparse_namespace
*
)
lfirst
(
nslist_item
);
dpns
=
(
deparse_namespace
*
)
list_nth
(
context
->
namespaces
,
var
->
varlevelsup
);
/* Find the relevant RTE */
if
(
var
->
varno
>=
1
&&
var
->
varno
<=
length
(
dpns
->
rtable
))
...
...
src/include/nodes/pg_list.h
View file @
0858ed20
...
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $PostgreSQL: pgsql/src/include/nodes/pg_list.h,v 1.4
4 2004/05/26 04:41:45 neilc
Exp $
* $PostgreSQL: pgsql/src/include/nodes/pg_list.h,v 1.4
5 2004/05/26 19:30:17 tgl
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -49,8 +49,6 @@
* always be so; try to be careful to maintain the distinction.)
*/
#define LIST_CELL_TYPE ListCell
typedef
struct
ListCell
ListCell
;
typedef
struct
List
List
;
...
...
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