File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/NHibernate/Dialect/Schema Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -157,21 +157,21 @@ private static string NormalizeTypeNames(string typeName)
157
157
return "int8" ;
158
158
}
159
159
160
- if ( typeName . StartsWith ( "character" ) )
160
+ if ( typeName . StartsWith ( "character" , StringComparison . Ordinal ) )
161
161
{
162
162
return typeName . Replace ( "character varying" , "varchar" ) . Replace ( "character" , "char" ) ;
163
163
}
164
164
165
- if ( typeName . EndsWith ( "with time zone" ) )
165
+ if ( typeName . EndsWith ( " with time zone" , StringComparison . Ordinal ) )
166
166
{
167
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 ( ) ;
168
+ ? typeName . Replace ( " with time zone" , string . Empty ) . Replace ( "timestamp" , "timestamptz" )
169
+ : typeName . Replace ( " with time zone" , string . Empty ) . Replace ( "time" , "timetz" ) ;
170
170
}
171
171
172
- if ( typeName . EndsWith ( "without time zone" ) )
172
+ if ( typeName . EndsWith ( " without time zone" , StringComparison . Ordinal ) )
173
173
{
174
- return typeName . Replace ( "without time zone" , "" ) . Trim ( ) ;
174
+ return typeName . Replace ( " without time zone" , string . Empty ) ;
175
175
}
176
176
177
177
return typeName ;
You can’t perform that action at this time.
0 commit comments