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
0d5364fd
Commit
0d5364fd
authored
May 26, 2004
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix problem with doing 7.0.X dumps on character varying[] fields.
Christopher Kings-Lynne
parent
48076192
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_dump.c
+13
-1
No files found.
src/bin/pg_dump/pg_dump.c
View file @
0d5364fd
...
...
@@ -12,7 +12,7 @@
* by PostgreSQL
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.37
1 2004/05/25 01:00:24
momjian Exp $
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.37
2 2004/05/26 18:24:22
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -7722,8 +7722,16 @@ static char *
myFormatType
(
const
char
*
typname
,
int32
typmod
)
{
char
*
result
;
bool
isarray
=
false
;
PQExpBuffer
buf
=
createPQExpBuffer
();
/* Handle array types */
if
(
typname
[
0
]
==
'_'
)
{
isarray
=
true
;
typname
++
;
}
/* Show lengths on bpchar and varchar */
if
(
!
strcmp
(
typname
,
"bpchar"
))
{
...
...
@@ -7767,6 +7775,10 @@ myFormatType(const char *typname, int32 typmod)
else
appendPQExpBuffer
(
buf
,
"%s"
,
fmtId
(
typname
));
/* Append array qualifier for array types */
if
(
isarray
)
appendPQExpBuffer
(
buf
,
"[]"
);
result
=
strdup
(
buf
->
data
);
destroyPQExpBuffer
(
buf
);
...
...
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