mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-21 08:29:39 +08:00
Revert "Remove hard coded formats for INT64 and use configured settings instead."
This reverts commit 9b1508af89
.
As requested by Tom.
This commit is contained in:
parent
9b1508af89
commit
348c10efe0
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user