Skip to content

Commit a3fae07

Browse files
committed
change parameter type from currency to decimal
1 parent b434f83 commit a3fae07

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/NHibernate/Driver/FirebirdClientDriver.cs

+12
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,18 @@ public override string NamedPrefix
5050
get { return "@"; }
5151
}
5252

53+
protected override void InitializeParameter(IDbDataParameter dbParam, string name, SqlType sqlType)
54+
{
55+
base.InitializeParameter(dbParam, name, sqlType);
56+
57+
if (sqlType.DbType == DbType.Currency)
58+
{
59+
dbParam.DbType = DbType.Decimal;
60+
dbParam.Precision = 18;
61+
dbParam.Scale = 4;
62+
}
63+
}
64+
5365
public override void AdjustCommand(IDbCommand command)
5466
{
5567
var expWithParams = GetStatementsWithCastCandidates(command.CommandText);

0 commit comments

Comments
 (0)