Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
11b274f0
Commit
11b274f0
authored
21 years ago
by
Tom Lane
Browse files
Options
Downloads
Patches
Plain Diff
Fix some ill-considered ifdefs, per report from Hans-JÏrgen SchÎnig.
parent
58ad65ec
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/interfaces/ecpg/pgtypeslib/common.c
+0
-2
0 additions, 2 deletions
src/interfaces/ecpg/pgtypeslib/common.c
src/interfaces/ecpg/pgtypeslib/extern.h
+0
-2
0 additions, 2 deletions
src/interfaces/ecpg/pgtypeslib/extern.h
with
0 additions
and
4 deletions
src/interfaces/ecpg/pgtypeslib/common.c
+
0
−
2
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
);
...
...
This diff is collapsed.
Click to expand it.
src/interfaces/ecpg/pgtypeslib/extern.h
+
0
−
2
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
*
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment