Merge pull request #37 from kjaenicke/mssql-timestamp-cols
Adds handling for mssql timestamp cols
This commit is contained in:
commit
1533c34944
@ -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 =
|
||||
|
@ -105,6 +105,9 @@ export class Post {
|
||||
@Column("time")
|
||||
timeObj: Date;
|
||||
|
||||
@Column("timestamp")
|
||||
timestamp: Date;
|
||||
|
||||
// @Column("time")
|
||||
// time: string;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user