From b7b0f2b587422f13dc139d0c18ec9239e6338671 Mon Sep 17 00:00:00 2001 From: Livan Date: Sat, 12 Jan 2019 07:00:27 +0300 Subject: [PATCH] Add support for VARBINARY in MySQL --- src/drivers/MysqlDriver.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/drivers/MysqlDriver.ts b/src/drivers/MysqlDriver.ts index cd110cd..0753d75 100644 --- a/src/drivers/MysqlDriver.ts +++ b/src/drivers/MysqlDriver.ts @@ -141,6 +141,9 @@ export class MysqlDriver extends AbstractDriver { case "binary": colInfo.tsType = "Buffer"; break; + case "varbinary": + colInfo.tsType = "Buffer"; + break; case "geometry": colInfo.tsType = "string"; break;