diff --git a/src/flavors/mysql.ts b/src/flavors/mysql.ts index 4c260d1..aea78c6 100644 --- a/src/flavors/mysql.ts +++ b/src/flavors/mysql.ts @@ -19,13 +19,15 @@ export class MySQLFlavor implements ISQLFlavor { `${this.columnQuotes}${this.columnQuotes}` ) .split(".") - .join("`.`")}${this.columnQuotes}`; + .join(`${this.columnQuotes}.${this.columnQuotes}`)}${ + this.columnQuotes + }`; } return `${name}`; } - return `${this.columnQuotes}${name.split(".").join("`.`")}${ - this.columnQuotes - }`; + return `${this.columnQuotes}${name + .split(".") + .join(`${this.columnQuotes}.${this.columnQuotes}`)}${this.columnQuotes}`; } escapeTable(table: string): string {