From 17110d669c5f2b27f800d8d4edc9e7289f6b8499 Mon Sep 17 00:00:00 2001 From: Kevin Guanche Darias Date: Tue, 6 Nov 2018 18:52:10 +0000 Subject: [PATCH] Fix problem reported in issue #123 with MySQL driver, in servers running MySQL server 5.7 and having complex schemas --- src/drivers/MysqlDriver.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/MysqlDriver.ts b/src/drivers/MysqlDriver.ts index b4ffe98..6777c78 100644 --- a/src/drivers/MysqlDriver.ts +++ b/src/drivers/MysqlDriver.ts @@ -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,