Fix problem reported in issue #123 with MySQL driver, in servers running MySQL server 5.7 and having complex schemas

This commit is contained in:
Kevin Guanche Darias 2018-11-06 18:52:10 +00:00
parent f1e61e8bf7
commit 17110d669c

View File

@ -267,7 +267,7 @@ export class MysqlDriver extends AbstractDriver {
onDelete: "RESTRICT" | "CASCADE" | "SET NULL" | "NO_ACTION";
onUpdate: "RESTRICT" | "CASCADE" | "SET NULL" | "NO_ACTION";
object_id: string;
}>(`SELECT
}>(`SELECT DISTINCT
CU.TABLE_NAME TableWithForeignKey,
CU.ORDINAL_POSITION FK_PartNo,
CU.COLUMN_NAME ForeignKeyColumn,