/*
- * Firebird ADO.NET Data provider for .NET and Mono
+ * Firebird ADO.NET Data provider for .NET and Mono
*
* The contents of this file are subject to the Initial
* Developer's Public License Version 1.0 (the "License");
return DbDataType.Text;
case IscCodes.blr_short:
- if (scale < 0)
- {
- return DbDataType.Decimal;
- }
+ if (subType == 2)
+ {
+ return DbDataType.Decimal;
+ }
+ else if (subType == 1)
+ {
+ return DbDataType.Numeric;
+ }
else
{
return DbDataType.SmallInt;
}
case IscCodes.blr_long:
- if (scale < 0)
- {
- return DbDataType.Decimal;
- }
+ if (subType == 2)
+ {
+ return DbDataType.Decimal;
+ }
+ else if (subType == 1)
+ {
+ return DbDataType.Numeric;
+ }
else
{
return DbDataType.Integer;
case IscCodes.blr_quad:
case IscCodes.blr_int64:
case IscCodes.blr_blob_id:
- if (scale < 0)
- {
- return DbDataType.Decimal;
- }
+ if (subType == 2)
+ {
+ return DbDataType.Decimal;
+ }
+ else if (subType == 1)
+ {
+ return DbDataType.Numeric;
+ }
else
{
return DbDataType.BigInt;