Author: danmorg
Date: 2005-04-06 22:01:25 -0400 (Wed, 06 Apr 2005)
New Revision: 42620
Modified:
trunk/mcs/class/System.Data.OracleClient/System.Data.OracleClient/ChangeLog
trunk/mcs/class/System.Data.OracleClient/System.Data.OracleClient/OracleParameter.cs
Log:
2005-03-06 Daniel Morgan <[EMAIL PROTECTED]>
- Applied patch by Hubert FONGARNAND
<[EMAIL PROTECTED]>
Modified:
trunk/mcs/class/System.Data.OracleClient/System.Data.OracleClient/ChangeLog
===================================================================
--- trunk/mcs/class/System.Data.OracleClient/System.Data.OracleClient/ChangeLog
2005-04-07 00:22:49 UTC (rev 42619)
+++ trunk/mcs/class/System.Data.OracleClient/System.Data.OracleClient/ChangeLog
2005-04-07 02:01:25 UTC (rev 42620)
@@ -1,3 +1,8 @@
+2005-04-06 Daniel Morgan <[EMAIL PROTECTED]>
+
+ * OracleParameter.cs: implement IClonable.Clone()
+ patch from [EMAIL PROTECTED] (Curtis)
+
2005-02-21 Sureshkumar T <[EMAIL PROTECTED]>
* OracleCommand.cs: set behavior for execute reader.
Modified:
trunk/mcs/class/System.Data.OracleClient/System.Data.OracleClient/OracleParameter.cs
===================================================================
---
trunk/mcs/class/System.Data.OracleClient/System.Data.OracleClient/OracleParameter.cs
2005-04-07 00:22:49 UTC (rev 42619)
+++
trunk/mcs/class/System.Data.OracleClient/System.Data.OracleClient/OracleParameter.cs
2005-04-07 02:01:25 UTC (rev 42620)
@@ -55,6 +55,25 @@
#region Constructors
+ // constructor for cloning the object
+ internal OracleParameter (OracleParameter value) {
+ this.name = value.name;
+ this.oracleType = value.oracleType;
+ this.ociType = value.ociType;
+ this.size = value.size;
+ this.direction = value.direction;
+ this.isNullable = value.isNullable;
+ this.precision = value.precision;
+ this.scale = value.scale;
+ this.srcColumn = value.srcColumn;
+ this.srcVersion = value.srcVersion;
+ this.dbType = value.dbType;
+ this.offset = value.offset;
+ this.sizeSet = value.sizeSet;
+ this.value = value.value;
+ this.lobLocator = value.lobLocator;
+ }
+
public OracleParameter ()
: this (String.Empty, OracleType.VarChar, 0,
ParameterDirection.Input, false, 0, 0, String.Empty, DataRowVersion.Current,
null)
{
@@ -348,10 +367,9 @@
bindHandle.SetHandle (tmpHandle);
}
- [MonoTODO]
object ICloneable.Clone ()
{
- throw new NotImplementedException ();
+ return new OracleParameter(this);
}
private void InferOracleType (object value)
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches