Skip to content

Commit 9bec52a

Browse files
Use actual type name for datetimeoffset
1 parent da7513e commit 9bec52a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/NHibernate/Dialect/SybaseSQLAnywhere12Dialect.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ protected override void RegisterKeywords()
7171
protected override void RegisterDateTimeTypeMappings()
7272
{
7373
base.RegisterDateTimeTypeMappings();
74-
RegisterColumnType(DbType.DateTimeOffset, "DATETIMEOFFSET");
74+
// Do not use the alias DATETIMEOFFSET here, as the database will translate it to its actual type name,
75+
// causing schema validator failures.
76+
RegisterColumnType(DbType.DateTimeOffset, "TIMESTAMP WITH TIME ZONE");
7577
}
7678

7779
protected override void RegisterDateFunctions()

0 commit comments

Comments
 (0)