Page 1 of 1

OracleCommand.Clone - Several properties stay default

Posted: Mon 23 Sep 2013 06:56
by klaus linzner
Hi,
Several properties on OracleCommand are not taken when cloning an OracleCommand. While CommandText and CommandType seem well, PassParametersByName as well as CommandTimeout remain on their default values

Code: Select all

            OracleCommand templateCommand = new OracleCommand();
            templateCommand.CommandText = "ASD";
            templateCommand.CommandType = CommandType.StoredProcedure;
            templateCommand.CommandTimeout = 50;
            templateCommand.PassParametersByName = true;

            OracleCommand clonedCommand = (OracleCommand)templateCommand.Clone();
            Assert.AreEqual(templateCommand.CommandText, clonedCommand.CommandText);
            Assert.AreEqual(templateCommand.CommandType, clonedCommand.CommandType);
            Assert.AreEqual(templateCommand.PassParametersByName, clonedCommand.PassParametersByName);
            Assert.AreEqual(templateCommand.CommandTimeout, clonedCommand.CommandTimeout);
Tests were run against Devart 7.8.287;

Re: OracleCommand.Clone - Several properties stay default

Posted: Tue 24 Sep 2013 15:13
by Pinturiccio
We have reproduced the issue. We will investigate it and post here about the results as soon as possible.

Re: OracleCommand.Clone - Several properties stay default

Posted: Fri 04 Oct 2013 11:02
by Pinturiccio
We have fixed the bug with not copied values of CommandTimeout and PassParametersByName properties of an OracleCommand object, when cloning it. We will post here when the corresponding build of dotConnect for Oracle is available for download.

Re: OracleCommand.Clone - Several properties stay default

Posted: Fri 18 Oct 2013 08:51
by Pinturiccio
New version of dotConnect for Oracle 8.0 is released!
It can be downloaded from http://www.devart.com/dotconnect/oracle/download.html (trial version) or from Registered Users' Area (for users with active subscription only).
For more information, please refer to http://forums.devart.com/viewtopic.php?t=28131.