Fix key->strategy

This commit is contained in:
yuzupy 2018-04-23 04:41:34 +00:00
parent 9182368a06
commit a395ecd1a0

View file

@ -743,11 +743,13 @@ hypo_generate_partkey(CreateStmt *stmt, Oid parentid, hypoTable *entry)
*/
stmt->partspec = transformPartitionSpec(rel, stmt->partspec,
&strategy);
key->strategy = strategy;
ComputePartitionAttrs(rel, stmt->partspec->partParams,
partattrs, &partexprs, partopclass,
partcollation, strategy);
/*--- Adapted from RelationBuildPartitionKey ---*/
{
ListCell *partexprs_item;