Skip to content

Commit

Permalink
Removed unnecessary decimal cast that was causing exceptions with nul…
Browse files Browse the repository at this point in the history
…l values - Convert.ToInt64 will handle that already. (issue chucknorris#58)
  • Loading branch information
rdingwall authored and ferventcoder committed Sep 7, 2012
1 parent 96a68d2 commit ccbfa75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion product/roundhouse.databases.oracle/OracleDatabase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public override long insert_version_and_get_version_id(string repository_path, s
run_sql(insert_version_script(), ConnectionType.Default, insert_parameters);

var select_parameters = new List<IParameter<IDbDataParameter>> { create_parameter("repository_path", DbType.AnsiString, repository_path, 255) };
return Convert.ToInt64((decimal)run_sql_scalar(get_version_id_script(), ConnectionType.Default, select_parameters));
return Convert.ToInt64(run_sql_scalar(get_version_id_script(), ConnectionType.Default, select_parameters));
}

public override void run_sql(string sql_to_run, ConnectionType connection_type)
Expand Down

0 comments on commit ccbfa75

Please sign in to comment.