mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-24 18:55:04 +08:00
Fix pg_stat_statements build on 32-bit systems
Peter Geoghegan
This commit is contained in:
parent
d6ca510d9d
commit
33d3f5594a
@ -1160,6 +1160,7 @@ pg_stat_statements(PG_FUNCTION_ARGS)
|
||||
bool nulls[PG_STAT_STATEMENTS_COLS];
|
||||
int i = 0;
|
||||
Counters tmp;
|
||||
int64 queryid = entry->key.queryid;
|
||||
|
||||
memset(values, 0, sizeof(values));
|
||||
memset(nulls, 0, sizeof(nulls));
|
||||
@ -1172,7 +1173,7 @@ pg_stat_statements(PG_FUNCTION_ARGS)
|
||||
char *qstr;
|
||||
|
||||
if (detected_version >= PGSS_V1_2)
|
||||
values[i++] = Int64GetDatumFast((int64) entry->key.queryid);
|
||||
values[i++] = Int64GetDatumFast(queryid);
|
||||
|
||||
qstr = (char *)
|
||||
pg_do_encoding_conversion((unsigned char *) entry->query,
|
||||
|
Loading…
Reference in New Issue
Block a user