Skip to content

Commit

Permalink
added NUMERIC type to typa mapping source
Browse files Browse the repository at this point in the history
  • Loading branch information
Camel-RD committed Sep 22, 2024
1 parent b8e4a3f commit 53fccb6
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public class FbTypeMappingSource : RelationalTypeMappingSource
readonly FloatTypeMapping _float = new FloatTypeMapping("FLOAT");
readonly DoubleTypeMapping _double = new DoubleTypeMapping("DOUBLE PRECISION");
readonly DecimalTypeMapping _decimal = new DecimalTypeMapping($"DECIMAL({DefaultDecimalPrecision},{DefaultDecimalScale})");
readonly DecimalTypeMapping _numeric = new DecimalTypeMapping($"NUMERIC({DefaultDecimalPrecision},{DefaultDecimalScale})");

readonly FbDateTimeTypeMapping _timestamp = new FbDateTimeTypeMapping("TIMESTAMP", FbDbType.TimeStamp);
readonly FbDateTimeTypeMapping _date = new FbDateTimeTypeMapping("DATE", FbDbType.Date);
Expand Down Expand Up @@ -77,6 +78,7 @@ public FbTypeMappingSource(TypeMappingSourceDependencies dependencies, Relationa
{ "FLOAT", _float },
{ "DOUBLE PRECISION", _double },
{ "DECIMAL", _decimal },
{ "NUMERIC", _numeric },
{ "TIMESTAMP", _timestamp },
{ "DATE", _date },
{ "TIME", _timeSpan },
Expand Down

0 comments on commit 53fccb6

Please sign in to comment.