We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3fae07 commit 0d18021Copy full SHA for 0d18021
src/NHibernate/Driver/FirebirdClientDriver.cs
@@ -52,14 +52,11 @@ public override string NamedPrefix
52
53
protected override void InitializeParameter(IDbDataParameter dbParam, string name, SqlType sqlType)
54
{
55
- base.InitializeParameter(dbParam, name, sqlType);
+ var convertedSqlType = sqlType;
56
+ if (convertedSqlType.DbType == DbType.Currency)
57
+ convertedSqlType = new SqlType(DbType.Decimal);
58
- if (sqlType.DbType == DbType.Currency)
- {
59
- dbParam.DbType = DbType.Decimal;
60
- dbParam.Precision = 18;
61
- dbParam.Scale = 4;
62
- }
+ base.InitializeParameter(dbParam, name, convertedSqlType);
63
}
64
65
public override void AdjustCommand(IDbCommand command)
0 commit comments