diff --git a/src/drivers/MssqlDriver.ts b/src/drivers/MssqlDriver.ts index 237c05a..fb337e2 100644 --- a/src/drivers/MssqlDriver.ts +++ b/src/drivers/MssqlDriver.ts @@ -130,6 +130,9 @@ export class MssqlDriver extends AbstractDriver { case "datetime": colInfo.ts_type = "Date"; break; + case "timestamp": + colInfo.ts_type = "Date"; + break; case "char": colInfo.ts_type = "string"; colInfo.char_max_lenght = diff --git a/test/integration/entityTypes/mssql/entity/Post.ts b/test/integration/entityTypes/mssql/entity/Post.ts index 39311cf..923be11 100644 --- a/test/integration/entityTypes/mssql/entity/Post.ts +++ b/test/integration/entityTypes/mssql/entity/Post.ts @@ -105,6 +105,9 @@ export class Post { @Column("time") timeObj: Date; + @Column("timestamp") + timestamp: Date; + // @Column("time") // time: string;