File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
src/NHibernate/Dialect/Schema Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -161,18 +161,17 @@ private static string Normalize(string typeName)
161
161
{
162
162
return typeName . Replace ( "character varying" , "varchar" ) . Replace ( "character" , "char" ) ;
163
163
}
164
-
165
- if ( typeName . EndsWith ( "with timezone " ) )
164
+
165
+ if ( typeName . EndsWith ( "with time zone " ) )
166
166
{
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 ( ) ;
171
170
}
172
171
173
- if ( typeName . EndsWith ( "without timezone " ) )
172
+ if ( typeName . EndsWith ( "without time zone " ) )
174
173
{
175
- return typeName . Replace ( "without timezone " , "" ) . Trim ( ) ;
174
+ return typeName . Replace ( "without time zone " , "" ) . Trim ( ) ;
176
175
}
177
176
178
177
return typeName ;
You can’t perform that action at this time.
0 commit comments