I do not even know where to start ... .net-ovsky program works with oracle. Named parameters are used to transfer data. Work has been going on for several years. once everything worked clearly, but now it was discovered that the names of the parameters do not matter, but their order has. tell me where to dig
accessing to stored procedures, parameters are passed as standard:
using (OracleCommand cmd = GetConnection().CreateCommand()) { cmd.CommandType = System.Data.CommandType.StoredProcedure; cmd.CommandText = "Owner.Package.Procedure"; OracleParameter p1 = new OracleParameter(); p1.OracleDbType = OracleDbType.Decimal; p1.Direction = ParameterDirection.Input; p1.ParameterName = "param1"; OracleParameter p2 = new OracleParameter(); p2.OracleDbType = OracleDbType.Decimal; p2.Direction = ParameterDirection.Input; p2.ParameterName = "param2"; cmd.Prepare(); cmd.ExecuteNonQuery(); } how it should be performed: when changing the order of parameters, everything should work correctly.
as it is now: if you swap the parameters in places (and their type is the same), the procedure will be executed, but with incorrect data.
?then order is important. - nick_n_a