Skip to content

Commit

Permalink
fixup! Versioning using oid
Browse files Browse the repository at this point in the history
  • Loading branch information
mlt committed Aug 31, 2017
1 parent 82720cd commit 95461af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion versioning.c
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ fill_versioning_hash_entry(VersioningHashEntry *hash_entry,
oldcontext = MemoryContextSwitchTo(TopMemoryContext);

hash_entry->history_relid = RelationGetRelid(history_relation);
memcpy(hash_entry->history_relname, NameStr(history_relation->rd_rel->relname), NAMEDATALEN);
strncpy_s(hash_entry->history_relname, NAMEDATALEN, NameStr(history_relation->rd_rel->relname), _TRUNCATE);
hash_entry->tupdesc = CreateTupleDescCopyConstr(tupdesc);
hash_entry->history_tupdesc = CreateTupleDescCopyConstr(history_tupdesc);

Expand Down

0 comments on commit 95461af

Please sign in to comment.