Skip to content

Commit

Permalink
Fix relational PCT setup - respect schema
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelbey committed Nov 19, 2024
1 parent 4c70249 commit 6b9d9f0
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,12 @@ function meta::relational::tests::pct::process::reprocess(f:Function<Any>[1], db
],
extraInstanceValueHandlers =
[
x:RelationStoreAccessor<Any>[1]|'#>{'+$x.store->elementToPath()+'.'+$x.sourceElement->cast(@Table).name->toOne()+'}#',
x:RelationStoreAccessor<Any>[1]|
let table = $x.sourceElement->cast(@Table);
let schema = $table.schema;
let schemaName = if ($schema.name == 'default', |'', |$schema.name + '.');
'#>{' + $x.store->elementToPath() + '.' + $schemaName + $table.name->toOne() + '}#';
,
t:meta::pure::metamodel::relation::TDS<Any>[1]|'#TDS\n'+$t.csv->replace(' ','')+'#'
]
)
Expand Down

0 comments on commit 6b9d9f0

Please sign in to comment.