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
c2284489
Commit
c2284489
authored
Apr 18, 2007
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update docs/error message for CSV quote/escape --- must be ASCII.
Backpatch doc change to 8.2.X.
parent
4029a5af
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
doc/src/sgml/ref/copy.sgml
doc/src/sgml/ref/copy.sgml
+3
-3
src/backend/commands/copy.c
src/backend/commands/copy.c
+3
-3
No files found.
doc/src/sgml/ref/copy.sgml
View file @
c2284489
<!--
<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/copy.sgml,v 1.
79 2007/04/18 00:17:56
momjian Exp $
$PostgreSQL: pgsql/doc/src/sgml/ref/copy.sgml,v 1.
80 2007/04/18 02:28:22
momjian Exp $
PostgreSQL documentation
PostgreSQL documentation
-->
-->
...
@@ -225,7 +225,7 @@ COPY { <replaceable class="parameter">tablename</replaceable> [ ( <replaceable c
...
@@ -225,7 +225,7 @@ COPY { <replaceable class="parameter">tablename</replaceable> [ ( <replaceable c
<term><replaceable class="parameter">quote</replaceable></term>
<term><replaceable class="parameter">quote</replaceable></term>
<listitem>
<listitem>
<para>
<para>
Specifies the quotation character in <literal>CSV</> mode.
Specifies the
ASCII
quotation character in <literal>CSV</> mode.
The default is double-quote.
The default is double-quote.
</para>
</para>
</listitem>
</listitem>
...
@@ -235,7 +235,7 @@ COPY { <replaceable class="parameter">tablename</replaceable> [ ( <replaceable c
...
@@ -235,7 +235,7 @@ COPY { <replaceable class="parameter">tablename</replaceable> [ ( <replaceable c
<term><replaceable class="parameter">escape</replaceable></term>
<term><replaceable class="parameter">escape</replaceable></term>
<listitem>
<listitem>
<para>
<para>
Specifies the character that should appear before a
Specifies the
ASCII
character that should appear before a
<literal>QUOTE</> data character value in <literal>CSV</> mode.
<literal>QUOTE</> data character value in <literal>CSV</> mode.
The default is the <literal>QUOTE</> value (usually double-quote).
The default is the <literal>QUOTE</> value (usually double-quote).
</para>
</para>
...
...
src/backend/commands/copy.c
View file @
c2284489
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/commands/copy.c,v 1.28
1 2007/04/18 00:38:57
momjian Exp $
* $PostgreSQL: pgsql/src/backend/commands/copy.c,v 1.28
2 2007/04/18 02:28:22
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -893,7 +893,7 @@ DoCopy(const CopyStmt *stmt, const char *queryString)
...
@@ -893,7 +893,7 @@ DoCopy(const CopyStmt *stmt, const char *queryString)
if
(
cstate
->
csv_mode
&&
strlen
(
cstate
->
quote
)
!=
1
)
if
(
cstate
->
csv_mode
&&
strlen
(
cstate
->
quote
)
!=
1
)
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errcode
(
ERRCODE_FEATURE_NOT_SUPPORTED
),
(
errcode
(
ERRCODE_FEATURE_NOT_SUPPORTED
),
errmsg
(
"COPY quote must be a single character"
)));
errmsg
(
"COPY quote must be a single
ASCII
character"
)));
/* Check escape */
/* Check escape */
if
(
!
cstate
->
csv_mode
&&
cstate
->
escape
!=
NULL
)
if
(
!
cstate
->
csv_mode
&&
cstate
->
escape
!=
NULL
)
...
@@ -904,7 +904,7 @@ DoCopy(const CopyStmt *stmt, const char *queryString)
...
@@ -904,7 +904,7 @@ DoCopy(const CopyStmt *stmt, const char *queryString)
if
(
cstate
->
csv_mode
&&
strlen
(
cstate
->
escape
)
!=
1
)
if
(
cstate
->
csv_mode
&&
strlen
(
cstate
->
escape
)
!=
1
)
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errcode
(
ERRCODE_FEATURE_NOT_SUPPORTED
),
(
errcode
(
ERRCODE_FEATURE_NOT_SUPPORTED
),
errmsg
(
"COPY escape must be a single character"
)));
errmsg
(
"COPY escape must be a single
ASCII
character"
)));
/* Check force_quote */
/* Check force_quote */
if
(
!
cstate
->
csv_mode
&&
force_quote
!=
NIL
)
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