(self)
| 111 | return f"Reference([{col1}] {self.type} [{col2}]" |
| 112 | |
| 113 | def _validate(self): |
| 114 | table1 = self.col1[0].table |
| 115 | if any(c.table != table1 for c in self.col1): |
| 116 | raise DBMLError('Columns in col1 are from different tables') |
| 117 | |
| 118 | table2 = self.col2[0].table |
| 119 | if any(c.table != table2 for c in self.col2): |
| 120 | raise DBMLError('Columns in col2 are from different tables') |