Skip to content

Commit

Permalink
fix: prevent using absolute table path in migrations unless required (t…
Browse files Browse the repository at this point in the history
  • Loading branch information
sagentac authored Jan 2, 2024
1 parent 4329996 commit dd59524
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/driver/sap/SapQueryRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3313,7 +3313,7 @@ export class SapQueryRunner extends BaseQueryRunner implements QueryRunner {
protected escapePath(target: Table | View | string): string {
const { schema, tableName } = this.driver.parseTableName(target)

if (schema) {
if (schema && schema !== this.driver.schema) {
return `"${schema}"."${tableName}"`
}

Expand Down

0 comments on commit dd59524

Please sign in to comment.