mirror of
https://github.com/postgres/postgres.git
synced 2025-05-02 11:44:50 +03:00
Fix for change timeline field of IDENTIFY_SYSTEM to int8
Amendment to ec40f3422412cfdc140b5d3f67db7fd2dac0f1e2: We also need to change the way the datum is supplied to int8. Otherwise, the value is still cut off as an int4, and it will crash on 32-bit platforms.
This commit is contained in:
parent
ec40f34224
commit
8ba3cb2f18
@ -457,7 +457,7 @@ IdentifySystem(void)
|
|||||||
values[0] = CStringGetTextDatum(sysid);
|
values[0] = CStringGetTextDatum(sysid);
|
||||||
|
|
||||||
/* column 2: timeline */
|
/* column 2: timeline */
|
||||||
values[1] = Int32GetDatum(currTLI);
|
values[1] = Int64GetDatum(currTLI);
|
||||||
|
|
||||||
/* column 3: wal location */
|
/* column 3: wal location */
|
||||||
values[2] = CStringGetTextDatum(xloc);
|
values[2] = CStringGetTextDatum(xloc);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user