Skip to content

Conversion exception thrown for OracleDynamicParameters.Get<int>() on an output parameter with a NUMBER (OracleDecimal) db type. #40

@Havagan

Description

@Havagan

Conversion exception thrown when calling OracleDynamicParameters.Get() on an output parameter with a NUMBER (OracleDecimal) db type.

var params = new OracleDynamicParameters();
...
params.Add(name: "paramName", dbType: OracleMappingType.Int32, direction: ParameterDirection.Output);
... execute non-query ...
var output = params.Get<int>("paramName"); // throws an Exception.

Calling params.Get<decimal>() worked fine but is clunky to then have to convert to an int.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions