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
7e6aeb50
Commit
7e6aeb50
authored
Mar 01, 1997
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Substitute defines for numeric constants in type ids.
Use INT4OID instead of 23.
parent
a4c18f55
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_dump.c
+5
-10
No files found.
src/bin/pg_dump/pg_dump.c
View file @
7e6aeb50
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.2
4 1997/02/13 08:31:27 scrappy
Exp $
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.2
5 1997/03/01 15:24:51 momjian
Exp $
*
*
* Modifications - 6/10/96 - dave@bensoft.com - version 1.13.dhb
* Modifications - 6/10/96 - dave@bensoft.com - version 1.13.dhb
*
*
...
@@ -53,6 +53,7 @@
...
@@ -53,6 +53,7 @@
#include "postgres.h"
#include "postgres.h"
#include "access/htup.h"
#include "access/htup.h"
#include "catalog/pg_type.h"
#include "libpq-fe.h"
#include "libpq-fe.h"
#ifndef HAVE_STRDUP
#ifndef HAVE_STRDUP
#include "strdup.h"
#include "strdup.h"
...
@@ -282,15 +283,9 @@ dumpClasses_dumpData(FILE *fout, const char *classname,
...
@@ -282,15 +283,9 @@ dumpClasses_dumpData(FILE *fout, const char *classname,
fprintf
(
fout
,
"NULL"
);
fprintf
(
fout
,
"NULL"
);
}
else
{
}
else
{
switch
(
PQftype
(
res
,
field
))
{
switch
(
PQftype
(
res
,
field
))
{
case
21
:
case
22
:
case
23
:
/* int types */
case
INT2OID
:
case
INT4OID
:
case
OIDOID
:
/* int types */
case
810
:
case
910
:
/* oldint types */
case
FLOAT4OID
:
case
FLOAT8OID
:
/* float types */
case
700
:
case
701
:
/* float types */
fprintf
(
fout
,
"%s"
,
fprintf
(
fout
,
"%s"
,
PQgetvalue
(
res
,
tuple
,
field
));
break
;
case
1005
:
case
1006
:
case
1007
:
/* _int types */
case
1021
:
case
1022
:
/* _float types */
fprintf
(
fout
,
"'%s'"
,
PQgetvalue
(
res
,
tuple
,
field
));
PQgetvalue
(
res
,
tuple
,
field
));
break
;
break
;
default:
{
default:
{
...
...
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