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
b793e834
Commit
b793e834
authored
Mar 26, 2009
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust phrasing of complaints about multi-byte COPY delimiter strings.
Per pgsql-hackers discussion of 2009-02-17.
parent
f38fbf31
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/backend/commands/copy.c
src/backend/commands/copy.c
+5
-5
No files found.
src/backend/commands/copy.c
View file @
b793e834
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/commands/copy.c,v 1.30
5 2009/02/06 21:15:11
tgl Exp $
* $PostgreSQL: pgsql/src/backend/commands/copy.c,v 1.30
6 2009/03/26 19:24:54
tgl Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -855,11 +855,11 @@ DoCopy(const CopyStmt *stmt, const char *queryString)
cstate
->
escape
=
cstate
->
quote
;
}
/* Only single-
character
delimiter strings are supported. */
/* Only single-
byte
delimiter strings are supported. */
if
(
strlen
(
cstate
->
delim
)
!=
1
)
ereport
(
ERROR
,
(
errcode
(
ERRCODE_FEATURE_NOT_SUPPORTED
),
errmsg
(
"COPY delimiter must be a single
ASCII
character"
)));
errmsg
(
"COPY delimiter must be a single
one-byte
character"
)));
/* Disallow end-of-line characters */
if
(
strchr
(
cstate
->
delim
,
'\r'
)
!=
NULL
||
...
...
@@ -906,7 +906,7 @@ DoCopy(const CopyStmt *stmt, const char *queryString)
if
(
cstate
->
csv_mode
&&
strlen
(
cstate
->
quote
)
!=
1
)
ereport
(
ERROR
,
(
errcode
(
ERRCODE_FEATURE_NOT_SUPPORTED
),
errmsg
(
"COPY quote must be a single
ASCII
character"
)));
errmsg
(
"COPY quote must be a single
one-byte
character"
)));
if
(
cstate
->
csv_mode
&&
cstate
->
delim
[
0
]
==
cstate
->
quote
[
0
])
ereport
(
ERROR
,
...
...
@@ -922,7 +922,7 @@ DoCopy(const CopyStmt *stmt, const char *queryString)
if
(
cstate
->
csv_mode
&&
strlen
(
cstate
->
escape
)
!=
1
)
ereport
(
ERROR
,
(
errcode
(
ERRCODE_FEATURE_NOT_SUPPORTED
),
errmsg
(
"COPY escape must be a single
ASCII
character"
)));
errmsg
(
"COPY escape must be a single
one-byte
character"
)));
/* Check force_quote */
if
(
!
cstate
->
csv_mode
&&
force_quote
!=
NIL
)
...
...
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