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
11b274f0
Commit
11b274f0
authored
Sep 21, 2003
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some ill-considered ifdefs, per report from Hans-JÏrgen SchÎnig.
parent
58ad65ec
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
4 deletions
+0
-4
src/interfaces/ecpg/pgtypeslib/common.c
src/interfaces/ecpg/pgtypeslib/common.c
+0
-2
src/interfaces/ecpg/pgtypeslib/extern.h
src/interfaces/ecpg/pgtypeslib/extern.h
+0
-2
No files found.
src/interfaces/ecpg/pgtypeslib/common.c
View file @
11b274f0
...
@@ -88,12 +88,10 @@ pgtypes_fmt_replace(union un_fmt_comb replace_val, int replace_type, char **outp
...
@@ -88,12 +88,10 @@ pgtypes_fmt_replace(union un_fmt_comb replace_val, int replace_type, char **outp
i
=
snprintf
(
t
,
PGTYPES_FMT_NUM_MAX_DIGITS
,
i
=
snprintf
(
t
,
PGTYPES_FMT_NUM_MAX_DIGITS
,
"%0.0g"
,
replace_val
.
double_val
);
"%0.0g"
,
replace_val
.
double_val
);
break
;
break
;
#ifdef HAVE_INT64
case
PGTYPES_TYPE_INT64
:
case
PGTYPES_TYPE_INT64
:
i
=
snprintf
(
t
,
PGTYPES_FMT_NUM_MAX_DIGITS
,
i
=
snprintf
(
t
,
PGTYPES_FMT_NUM_MAX_DIGITS
,
INT64_FORMAT
,
replace_val
.
int64_val
);
INT64_FORMAT
,
replace_val
.
int64_val
);
break
;
break
;
#endif
case
PGTYPES_TYPE_UINT
:
case
PGTYPES_TYPE_UINT
:
i
=
snprintf
(
t
,
PGTYPES_FMT_NUM_MAX_DIGITS
,
i
=
snprintf
(
t
,
PGTYPES_FMT_NUM_MAX_DIGITS
,
"%u"
,
replace_val
.
uint_val
);
"%u"
,
replace_val
.
uint_val
);
...
...
src/interfaces/ecpg/pgtypeslib/extern.h
View file @
11b274f0
...
@@ -29,9 +29,7 @@ union un_fmt_comb
...
@@ -29,9 +29,7 @@ union un_fmt_comb
char
char_val
;
char
char_val
;
unsigned
long
int
luint_val
;
unsigned
long
int
luint_val
;
double
double_val
;
double
double_val
;
#ifdef HAVE_INT64_TIMESTAMP
int64
int64_val
;
int64
int64_val
;
#endif
};
};
int
pgtypes_fmt_replace
(
union
un_fmt_comb
,
int
,
char
**
,
int
*
);
int
pgtypes_fmt_replace
(
union
un_fmt_comb
,
int
,
char
**
,
int
*
);
...
...
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