Skip to content

Commit 713e9f1

Browse files
committed
Fix 'time zone' spelling
1 parent 2fc030c commit 713e9f1

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/NHibernate/Dialect/Schema/PostgreSQLMetadata.cs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -161,18 +161,17 @@ private static string Normalize(string typeName)
161161
{
162162
return typeName.Replace("character varying", "varchar").Replace("character", "char");
163163
}
164-
165-
if (typeName.EndsWith("with timezone"))
164+
165+
if (typeName.EndsWith("with time zone"))
166166
{
167-
return (typeName.StartsWith("timestamp")
168-
? typeName.Replace("timestamp", "timestamptz")
169-
: typeName.Replace("time", "timetz"))
170-
.Replace("with timezone", "").Trim();
167+
return typeName.StartsWith("timestamp")
168+
? typeName.Replace("with time zone", "").Replace("timestamp", "timestamptz").Trim()
169+
: typeName.Replace("with time zone", "").Replace("time", "timetz").Trim();
171170
}
172171

173-
if (typeName.EndsWith("without timezone"))
172+
if (typeName.EndsWith("without time zone"))
174173
{
175-
return typeName.Replace("without timezone", "").Trim();
174+
return typeName.Replace("without time zone", "").Trim();
176175
}
177176

178177
return typeName;

0 commit comments

Comments
 (0)