Browse Source

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

pull/5690/head
mike12345567 4 years ago
parent
commit
a7fe15244b
  1. 4
      packages/server/src/integrations/utils.ts

4
packages/server/src/integrations/utils.ts

@ -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 }
}

Loading…
Cancel
Save