diff options
author | Peter Eisentraut | 2018-03-07 19:38:35 +0000 |
---|---|---|
committer | Peter Eisentraut | 2018-03-13 13:41:30 +0000 |
commit | 377b5ac4845c5ffbf992ee95c32d7d16d38b9081 (patch) | |
tree | 1db979dde0c8843cd2c1bebbedf345744595edf8 /src/common/string.c | |
parent | 1f8a3327a9db9a8a662fb39fdcde2337acffa68c (diff) |
Fix CREATE TABLE / LIKE with bigint identity column
CREATE TABLE / LIKE with a bigint identity column would fail on
platforms where long is 32 bits. Copying the sequence values used
makeInteger(), which would truncate the 64-bit sequence data to 32 bits.
To fix, use makeFloat() instead, like the parser. (This does not
actually make use of floats, but stores the values as strings.)
Bug: #15096
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Diffstat (limited to 'src/common/string.c')
0 files changed, 0 insertions, 0 deletions