-
-
Couldn't load subscription status.
- Fork 155
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
There is a check method as follows in BaseTable.kt. Suppose the condition schema == root.catalog is a mistake. From my understanding, it should be schema == root.schema.
Please check out and fix it if it was wrong.
private fun checkCircularReference(root: BaseTable<*>, stack: LinkedList<String> = LinkedList()) {
stack.push(root.toString(withAlias = false))
if (tableName == root.tableName && catalog == root.catalog && schema == root.catalog) {
throw IllegalStateException(
"Circular reference detected, current table: '$this', reference route: ${stack.asReversed()}"
)
}
for (column in root.columns) {
val ref = column.referenceTable
if (ref != null) {
checkCircularReference(ref, stack)
}
}
stack.pop()
}
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working