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
05cdb99b
Commit
05cdb99b
authored
Sep 01, 1997
by
Thomas G. Lockhart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add detection and warnings for UNION and HAVING clauses.
Generate non-fatal warning only and proceed by ignoring clauses.
parent
05eb6328
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
src/backend/parser/analyze.c
src/backend/parser/analyze.c
+15
-2
No files found.
src/backend/parser/analyze.c
View file @
05cdb99b
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.3
5 1997/08/22 00:02:04 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.3
6 1997/09/01 05:56:34 thomas
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -429,6 +429,14 @@ transformSelectStmt(ParseState *pstate, RetrieveStmt *stmt)
...
@@ -429,6 +429,14 @@ transformSelectStmt(ParseState *pstate, RetrieveStmt *stmt)
/* fix where clause */
/* fix where clause */
qry
->
qual
=
transformWhereClause
(
pstate
,
stmt
->
whereClause
);
qry
->
qual
=
transformWhereClause
(
pstate
,
stmt
->
whereClause
);
/* check subselect clause */
if
(
stmt
->
selectClause
)
elog
(
NOTICE
,
"UNION not yet supported; using first SELECT only"
,
NULL
);
/* check subselect clause */
if
(
stmt
->
havingClause
)
elog
(
NOTICE
,
"HAVING not yet supported; ignore clause"
,
NULL
);
/* fix order clause */
/* fix order clause */
qry
->
sortClause
=
transformSortClause
(
pstate
,
qry
->
sortClause
=
transformSortClause
(
pstate
,
stmt
->
sortClause
,
stmt
->
sortClause
,
...
@@ -1494,6 +1502,11 @@ find_targetlist_entry(ParseState *pstate, SortGroupBy *sortgroupby, List *tlist)
...
@@ -1494,6 +1502,11 @@ find_targetlist_entry(ParseState *pstate, SortGroupBy *sortgroupby, List *tlist)
char
*
resname
=
resnode
->
resname
;
char
*
resname
=
resnode
->
resname
;
int
test_rtable_pos
=
var
->
varno
;
int
test_rtable_pos
=
var
->
varno
;
#ifdef PARSEDEBUG
printf
(
"find_targetlist_entry- target name is %s, position %d, resno %d
\n
"
,
(
sortgroupby
->
name
?
sortgroupby
->
name
:
"(null)"
),
target_pos
+
1
,
sortgroupby
->
resno
);
#endif
if
(
!
sortgroupby
->
name
)
{
if
(
!
sortgroupby
->
name
)
{
if
(
sortgroupby
->
resno
==
++
target_pos
)
{
if
(
sortgroupby
->
resno
==
++
target_pos
)
{
target_result
=
target
;
target_result
=
target
;
...
@@ -1534,7 +1547,7 @@ any_ordering_op(int restype)
...
@@ -1534,7 +1547,7 @@ any_ordering_op(int restype)
/*
/*
* transformGroupClause -
* transformGroupClause -
* transform a
n
Group By clause
* transform a Group By clause
*
*
*/
*/
static
List
*
static
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