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
66e9ee79
Commit
66e9ee79
authored
May 21, 2001
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Print error on SELECT tab FROM tab:
You can't use relation names alone in the target list, try relation.*
parent
984bf07a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
6 deletions
+11
-6
doc/TODO
doc/TODO
+1
-1
src/backend/parser/parse_expr.c
src/backend/parser/parse_expr.c
+4
-1
src/backend/parser/parse_target.c
src/backend/parser/parse_target.c
+4
-1
src/include/nodes/parsenodes.h
src/include/nodes/parsenodes.h
+2
-3
No files found.
doc/TODO
View file @
66e9ee79
TODO list for PostgreSQL
========================
Last updated: Mon May 21 14:
36:45
EDT 2001
Last updated: Mon May 21 14:
40:08
EDT 2001
Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
...
...
src/backend/parser/parse_expr.c
View file @
66e9ee79
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/parse_expr.c,v 1.9
5 2001/05/19 00:33:20
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/parse_expr.c,v 1.9
6 2001/05/21 18:42:08
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -585,7 +585,10 @@ transformIdent(ParseState *pstate, Ident *ident, int precedence)
Node
*
var
=
colnameToVar
(
pstate
,
ident
->
name
);
if
(
var
!=
NULL
)
{
ident
->
isRel
=
FALSE
;
result
=
transformIndirection
(
pstate
,
var
,
ident
->
indirection
);
}
}
if
(
result
==
NULL
)
...
...
src/backend/parser/parse_target.c
View file @
66e9ee79
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/parse_target.c,v 1.6
6 2001/03/22 03:59:41
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/parse_target.c,v 1.6
7 2001/05/21 18:42:08
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -55,6 +55,9 @@ transformTargetEntry(ParseState *pstate,
if
(
expr
==
NULL
)
expr
=
transformExpr
(
pstate
,
node
,
EXPR_COLUMN_FIRST
);
if
(
IsA
(
expr
,
Ident
)
&&
((
Ident
*
)
expr
)
->
isRel
)
elog
(
ERROR
,
"You can't use relation names alone in the target list, try relation.*."
);
type_id
=
exprType
(
expr
);
type_mod
=
exprTypmod
(
expr
);
...
...
src/include/nodes/parsenodes.h
View file @
66e9ee79
...
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: parsenodes.h,v 1.12
8 2001/05/20 20:28:20 tgl
Exp $
* $Id: parsenodes.h,v 1.12
9 2001/05/21 18:42:08 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -1081,8 +1081,7 @@ typedef struct Ident
NodeTag
type
;
char
*
name
;
/* its name */
List
*
indirection
;
/* array references */
bool
isRel
;
/* is a relation - filled in by
* transformExpr() */
bool
isRel
;
/* is this a relation or a column? */
}
Ident
;
/*
...
...
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