Skip to content
This repository was archived by the owner on Mar 18, 2022. It is now read-only.

Commit d8f1c81

Browse files
roman-acumenpleerock
authored andcommitted
fix: sqlite connections don't ignore the schema property (typeorm#4599)
1 parent 0094f61 commit d8f1c81

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/metadata/EntityMetadata.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -839,8 +839,10 @@ export class EntityMetadata {
839839
*/
840840
protected buildTablePath(): string {
841841
let tablePath = this.tableName;
842-
if (this.schema)
842+
if (this.schema && ((this.connection.driver instanceof PostgresDriver) || (this.connection.driver instanceof SqlServerDriver))) {
843843
tablePath = this.schema + "." + tablePath;
844+
}
845+
844846
if (this.database && !(this.connection.driver instanceof PostgresDriver)) {
845847
if (!this.schema && this.connection.driver instanceof SqlServerDriver) {
846848
tablePath = this.database + ".." + tablePath;

0 commit comments

Comments
 (0)