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
348c10ef
Commit
348c10ef
authored
Apr 27, 2011
by
Andrew Dunstan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Remove hard coded formats for INT64 and use configured settings instead."
This reverts commit
9b1508af
. As requested by Tom.
parent
9b1508af
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
src/backend/postmaster/postmaster.c
src/backend/postmaster/postmaster.c
+1
-1
src/interfaces/ecpg/ecpglib/execute.c
src/interfaces/ecpg/ecpglib/execute.c
+4
-4
No files found.
src/backend/postmaster/postmaster.c
View file @
348c10ef
...
...
@@ -3795,7 +3795,7 @@ internal_forkexec(int argc, char *argv[], Port *port)
/* Insert temp file name after --fork argument */
#ifdef _WIN64
sprintf
(
paramHandleStr
,
UINT64_FORMAT
,
(
LONG_PTR
)
paramHandle
);
sprintf
(
paramHandleStr
,
"%llu"
,
(
LONG_PTR
)
paramHandle
);
#else
sprintf
(
paramHandleStr
,
"%lu"
,
(
DWORD
)
paramHandle
);
#endif
...
...
src/interfaces/ecpg/ecpglib/execute.c
View file @
348c10ef
...
...
@@ -689,12 +689,12 @@ ecpg_store_input(const int lineno, const bool force_indicator, const struct vari
strcpy
(
mallocedval
,
"array ["
);
for
(
element
=
0
;
element
<
asize
;
element
++
)
sprintf
(
mallocedval
+
strlen
(
mallocedval
),
INT64_FORMAT
"
,"
,
((
long
long
int
*
)
var
->
value
)[
element
]);
sprintf
(
mallocedval
+
strlen
(
mallocedval
),
"%lld
,"
,
((
long
long
int
*
)
var
->
value
)[
element
]);
strcpy
(
mallocedval
+
strlen
(
mallocedval
)
-
1
,
"]"
);
}
else
sprintf
(
mallocedval
,
INT64_FORMAT
,
*
((
long
long
int
*
)
var
->
value
));
sprintf
(
mallocedval
,
"%lld"
,
*
((
long
long
int
*
)
var
->
value
));
*
tobeinserted_p
=
mallocedval
;
break
;
...
...
@@ -708,12 +708,12 @@ ecpg_store_input(const int lineno, const bool force_indicator, const struct vari
strcpy
(
mallocedval
,
"array ["
);
for
(
element
=
0
;
element
<
asize
;
element
++
)
sprintf
(
mallocedval
+
strlen
(
mallocedval
),
UINT64_FORMAT
"
,"
,
((
unsigned
long
long
int
*
)
var
->
value
)[
element
]);
sprintf
(
mallocedval
+
strlen
(
mallocedval
),
"%llu
,"
,
((
unsigned
long
long
int
*
)
var
->
value
)[
element
]);
strcpy
(
mallocedval
+
strlen
(
mallocedval
)
-
1
,
"]"
);
}
else
sprintf
(
mallocedval
,
UINT64_FORMAT
,
*
((
unsigned
long
long
int
*
)
var
->
value
));
sprintf
(
mallocedval
,
"%llu"
,
*
((
unsigned
long
long
int
*
)
var
->
value
));
*
tobeinserted_p
=
mallocedval
;
break
;
...
...
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