diff --git a/reconstruct/ast.py b/reconstruct/ast.py index 953981b..91e100f 100644 --- a/reconstruct/ast.py +++ b/reconstruct/ast.py @@ -426,7 +426,7 @@ class select_distinct(projection): super().consume(node) if self.has_postproc: self.context.emitc( - f'{self.out_table.table_name}->distinct();' + f'{self.out_table.contextname_cpp}->distinct();' ) self.finalize()