OracleCommand.Clone - Several properties stay default

OracleCommand.Clone - Several properties stay default

Postby klaus linzner » Mon 23 Sep 2013 06:56

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;
klaus linzner
 
Posts: 28
Joined: Thu 16 May 2013 09:18

Re: OracleCommand.Clone - Several properties stay default

Postby Pinturiccio » Tue 24 Sep 2013 15:13

We have reproduced the issue. We will investigate it and post here about the results as soon as possible.
Pinturiccio
Devart Team
 
Posts: 1997
Joined: Wed 02 Nov 2011 09:44

Re: OracleCommand.Clone - Several properties stay default

Postby Pinturiccio » Fri 04 Oct 2013 11:02

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.
Pinturiccio
Devart Team
 
Posts: 1997
Joined: Wed 02 Nov 2011 09:44

Re: OracleCommand.Clone - Several properties stay default

Postby Pinturiccio » Fri 18 Oct 2013 08:51

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.
Pinturiccio
Devart Team
 
Posts: 1997
Joined: Wed 02 Nov 2011 09:44


Return to dotConnect for Oracle