mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-01-18 04:58:51 +02:00
Simply return in pgVersionToStr().
This commit is contained in:
parent
34e4835ff3
commit
596c62c54e
@ -549,10 +549,10 @@ pgVersionToStr(unsigned int version)
|
|||||||
FUNCTION_LOG_PARAM(UINT, version);
|
FUNCTION_LOG_PARAM(UINT, version);
|
||||||
FUNCTION_LOG_END();
|
FUNCTION_LOG_END();
|
||||||
|
|
||||||
String *result = version >= PG_VERSION_10 ?
|
FUNCTION_LOG_RETURN(
|
||||||
strNewFmt("%u", version / 10000) : strNewFmt("%u.%u", version / 10000, version % 10000 / 100);
|
STRING,
|
||||||
|
version >= PG_VERSION_10 ?
|
||||||
FUNCTION_LOG_RETURN(STRING, result);
|
strNewFmt("%u", version / 10000) : strNewFmt("%u.%u", version / 10000, version % 10000 / 100));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**********************************************************************************************************************************/
|
/**********************************************************************************************************************************/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user