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
2618fcdf
Commit
2618fcdf
authored
Aug 29, 1998
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix scanner name length trimming.
parent
53916cab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
src/backend/commands/copy.c
src/backend/commands/copy.c
+3
-1
src/backend/parser/scan.l
src/backend/parser/scan.l
+5
-5
No files found.
src/backend/commands/copy.c
View file @
2618fcdf
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.5
5 1998/08/29 04:09:23
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.5
6 1998/08/29 05:27:15
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -146,6 +146,7 @@ DoCopy(char *relname, bool binary, bool oids, bool from, bool pipe,
...
@@ -146,6 +146,7 @@ DoCopy(char *relname, bool binary, bool oids, bool from, bool pipe,
}
}
else
else
{
{
/* if we elog() out, the file stays open */
fp
=
AllocateFile
(
filename
,
"r"
);
fp
=
AllocateFile
(
filename
,
"r"
);
if
(
fp
==
NULL
)
if
(
fp
==
NULL
)
elog
(
ERROR
,
"COPY command, running in backend with "
elog
(
ERROR
,
"COPY command, running in backend with "
...
@@ -173,6 +174,7 @@ DoCopy(char *relname, bool binary, bool oids, bool from, bool pipe,
...
@@ -173,6 +174,7 @@ DoCopy(char *relname, bool binary, bool oids, bool from, bool pipe,
mode_t
oumask
;
/* Pre-existing umask value */
mode_t
oumask
;
/* Pre-existing umask value */
oumask
=
umask
((
mode_t
)
0
);
oumask
=
umask
((
mode_t
)
0
);
/* if we elog() out, the file stays open */
fp
=
AllocateFile
(
filename
,
"w"
);
fp
=
AllocateFile
(
filename
,
"w"
);
umask
(
oumask
);
umask
(
oumask
);
if
(
fp
==
NULL
)
if
(
fp
==
NULL
)
...
...
src/backend/parser/scan.l
View file @
2618fcdf
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.4
1 1998/08/29 02:36:18
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.4
2 1998/08/29 05:27:17
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -323,8 +323,8 @@ other .
...
@@ -323,8 +323,8 @@ other .
if (isascii((unsigned char)yytext[i]) &&
if (isascii((unsigned char)yytext[i]) &&
isupper(yytext[i]))
isupper(yytext[i]))
yytext[i] = tolower(yytext[i]);
yytext[i] = tolower(yytext[i]);
if (i > NAMEDATALEN)
if (i >
=
NAMEDATALEN)
yytext[NAMEDATALEN] = '\0';
yytext[NAMEDATALEN
-1
] = '\0';
keyword = ScanKeywordLookup((char*)yytext);
keyword = ScanKeywordLookup((char*)yytext);
if (keyword != NULL) {
if (keyword != NULL) {
...
@@ -402,8 +402,8 @@ other .
...
@@ -402,8 +402,8 @@ other .
if (isascii((unsigned char)yytext[i]) &&
if (isascii((unsigned char)yytext[i]) &&
isupper(yytext[i]))
isupper(yytext[i]))
yytext[i] = tolower(yytext[i]);
yytext[i] = tolower(yytext[i]);
if (i > NAMEDATALEN)
if (i >
=
NAMEDATALEN)
yytext[NAMEDATALEN] = '\0';
yytext[NAMEDATALEN
-1
] = '\0';
keyword = ScanKeywordLookup((char*)yytext);
keyword = ScanKeywordLookup((char*)yytext);
if (keyword != NULL) {
if (keyword != NULL) {
...
...
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