Skip to content

Commit

Permalink
Fix the char type
Browse files Browse the repository at this point in the history
  • Loading branch information
fredericDelaporte committed May 26, 2024
1 parent 0eacaf3 commit f1b0013
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/NHibernate/Type/AbstractCharType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ public override void Set(DbCommand cmd, object value, int index, ISessionImpleme
}

public override string ObjectToSQLString(object value, Dialect.Dialect dialect)
{
return '\'' + value.ToString() + '\'';
}
=> dialect.ToStringLiteral(value.ToString(), SqlType);

// 6.0 TODO: rename "xml" parameter as "value": it is not a xml string. The fact it generally comes from a xml
// attribute value is irrelevant to the method behavior.
Expand Down

0 comments on commit f1b0013

Please sign in to comment.