Skip to content

Fix select get owned#230

Merged
ytanimura merged 5 commits intomasterfrom
fix-select-get_owned
Feb 15, 2023
Merged

Fix select get owned#230
ytanimura merged 5 commits intomasterfrom
fix-select-get_owned

Conversation

@ytanimura
Copy link
Contributor

SCHEMA test_schema;
  ENTITY a;
    x: REAL;
  END_ENTITY;

  ENTITY b;
    y: INTEGER;
  END_ENTITY;

  ENTITY c;
    z: STRING;
  END_ENTITY;

  TYPE sup = SELECT (a, b);
  END_TYPE;

  TYPE sup_sup = SELECT (sup, c);
  END_TYPE;
END_SCHEMA;

With the current implementation, given the module defined in the express file above, sup_sup cannot get the proper value by EntityTable::get_owned. Instead of using rustep::tables::get_owned directly, EntityTable::get_owned must be used recursively.

@ytanimura ytanimura merged commit 1039c21 into master Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant