1
0
Fork 0
mirror of synced 2024-08-13 00:51:22 +12:00

Fixing issue #5594 - allowing use of double underscores in table names for SQL.

This commit is contained in:
mike12345567 2022-04-29 16:22:11 +01:00
parent e07a590116
commit 9ea6199eba

View file

@ -85,9 +85,9 @@ export function breakExternalTableId(tableId: string | undefined) {
return {}
}
const parts = tableId.split(DOUBLE_SEPARATOR)
let tableName = parts.pop()
let datasourceId = parts.shift()
// if they need joined
let datasourceId = parts.join(DOUBLE_SEPARATOR)
let tableName = parts.join(DOUBLE_SEPARATOR)
return { datasourceId, tableName }
}