Skip to content

Commit f11a687

Browse files
committed
Fix MS SQL timeStampCast
1 parent d8571d0 commit f11a687

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cubejs-schema-compiler/src/adapter/MssqlQuery.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export class MssqlQuery extends BaseQuery {
7171
}
7272

7373
public timeStampCast(value: string) {
74-
return this.dateTimeCast(value);
74+
return `CAST(${value} AS DATETIMEOFFSET)`;
7575
}
7676

7777
public dateTimeCast(value: string) {

0 commit comments

Comments
 (0)