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
f4ad5e8d
Commit
f4ad5e8d
authored
Aug 19, 2002
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up leftover bugs from recent COPY feature patch --- missed
required changes to copyfuncs/equalfuncs.
parent
5f6a27f8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
6 deletions
+9
-6
src/backend/commands/copy.c
src/backend/commands/copy.c
+2
-2
src/backend/nodes/copyfuncs.c
src/backend/nodes/copyfuncs.c
+2
-1
src/backend/nodes/equalfuncs.c
src/backend/nodes/equalfuncs.c
+3
-1
src/include/nodes/parsenodes.h
src/include/nodes/parsenodes.h
+2
-2
No files found.
src/backend/commands/copy.c
View file @
f4ad5e8d
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.16
3 2002/08/15 16:36:02 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.16
4 2002/08/19 00:40:14 tgl
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -1513,7 +1513,7 @@ CopyGetAttnums(Relation rel, List *attnamelist)
...
@@ -1513,7 +1513,7 @@ CopyGetAttnums(Relation rel, List *attnamelist)
foreach
(
l
,
attnamelist
)
foreach
(
l
,
attnamelist
)
{
{
char
*
name
=
strVal
(
lfirst
(
l
))
;
char
*
name
=
((
Ident
*
)
lfirst
(
l
))
->
name
;
int
attnum
;
int
attnum
;
/* Lookup column name, elog on failure */
/* Lookup column name, elog on failure */
...
...
src/backend/nodes/copyfuncs.c
View file @
f4ad5e8d
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.20
2 2002/08/19 00:11:53
tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.20
3 2002/08/19 00:40:14
tgl Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -2016,6 +2016,7 @@ _copyCopyStmt(CopyStmt *from)
...
@@ -2016,6 +2016,7 @@ _copyCopyStmt(CopyStmt *from)
CopyStmt
*
newnode
=
makeNode
(
CopyStmt
);
CopyStmt
*
newnode
=
makeNode
(
CopyStmt
);
Node_Copy
(
from
,
newnode
,
relation
);
Node_Copy
(
from
,
newnode
,
relation
);
Node_Copy
(
from
,
newnode
,
attlist
);
newnode
->
is_from
=
from
->
is_from
;
newnode
->
is_from
=
from
->
is_from
;
if
(
from
->
filename
)
if
(
from
->
filename
)
newnode
->
filename
=
pstrdup
(
from
->
filename
);
newnode
->
filename
=
pstrdup
(
from
->
filename
);
...
...
src/backend/nodes/equalfuncs.c
View file @
f4ad5e8d
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/nodes/equalfuncs.c,v 1.15
1 2002/08/19 00:11:53
tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/nodes/equalfuncs.c,v 1.15
2 2002/08/19 00:40:14
tgl Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -801,6 +801,8 @@ _equalCopyStmt(CopyStmt *a, CopyStmt *b)
...
@@ -801,6 +801,8 @@ _equalCopyStmt(CopyStmt *a, CopyStmt *b)
{
{
if
(
!
equal
(
a
->
relation
,
b
->
relation
))
if
(
!
equal
(
a
->
relation
,
b
->
relation
))
return
false
;
return
false
;
if
(
!
equal
(
a
->
attlist
,
b
->
attlist
))
return
false
;
if
(
a
->
is_from
!=
b
->
is_from
)
if
(
a
->
is_from
!=
b
->
is_from
)
return
false
;
return
false
;
if
(
!
equalstr
(
a
->
filename
,
b
->
filename
))
if
(
!
equalstr
(
a
->
filename
,
b
->
filename
))
...
...
src/include/nodes/parsenodes.h
View file @
f4ad5e8d
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* $Id: parsenodes.h,v 1.
199 2002/08/15 16:36:07 momjian
Exp $
* $Id: parsenodes.h,v 1.
200 2002/08/19 00:40:15 tgl
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -869,7 +869,7 @@ typedef struct CopyStmt
...
@@ -869,7 +869,7 @@ typedef struct CopyStmt
{
{
NodeTag
type
;
NodeTag
type
;
RangeVar
*
relation
;
/* the relation to copy */
RangeVar
*
relation
;
/* the relation to copy */
List
*
attlist
;
List
*
attlist
;
/* List of Ident nodes, or NIL for all */
bool
is_from
;
/* TO or FROM */
bool
is_from
;
/* TO or FROM */
char
*
filename
;
/* if NULL, use stdin/stdout */
char
*
filename
;
/* if NULL, use stdin/stdout */
List
*
options
;
/* List of DefElem nodes */
List
*
options
;
/* List of DefElem nodes */
...
...
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