Files
mono/mcs/class/System.Data.OracleClient/System.Data.OracleClient.Oci/OciDescriptorHandle.cs
T
Daniel Morgan 919c473487 2005-12-13 Daniel Morgan <[email protected]>
* System.Data.OracleClient/OracleParameter.cs: free
	unmanaged resources after update of values

2005-12-13  Daniel Morgan <[email protected]>

	* System.Data.OracleClient.Oci/OciErrorHandle.cs patch
	from  "Hubert FONGARNAND" <[email protected]>
	- fix error handling for non-English locales.  Bug# 76623.

2005-12-13  Daniel Morgan <[email protected]>

	* System.Data.OracleClient/OracleParameter.cs: patch
	from  "Hubert FONGARNAND" <[email protected]>
	- fix Timestamp when filling a DataSet.  Bug# 76437.

2005-12-13  Daniel Morgan <[email protected]>

	* System.Data.OracleClient/OracleParameter.cs: patch
	from "Hubert FONGARNAND" <[email protected]>
	- problems with OracleClob as input parameters 
	  (when the input parameter is an OracleString, 
	  mono crashes with a invalidcastexception)
    - problems with OracleDateTime.Null, OracleString.Null 
      as input parameters (it works with DBNull.Value, 
      but it fails with those parameters)

svn path=/trunk/mcs/; revision=54271
2005-12-13 05:06:34 +00:00

57 lines
1.2 KiB
C#

//
// OciDescriptorHandle.cs
//
// Part of managed C#/.NET library System.Data.OracleClient.dll
//
// Part of the Mono class libraries at
// mcs/class/System.Data.OracleClient/System.Data.OracleClient.Oci
//
// Assembly: System.Data.OracleClient.dll
// Namespace: System.Data.OracleClient.Oci
//
// Author:
// Tim Coleman <[email protected]>
//
// Copyright (C) Tim Coleman, 2003
//
using System;
using System.Runtime.InteropServices;
namespace System.Data.OracleClient.Oci {
internal abstract class OciDescriptorHandle : OciHandle
{
#region Constructors
public OciDescriptorHandle (OciHandleType type, OciHandle parent, IntPtr newHandle)
: base (type, parent, newHandle)
{
}
#endregion // Constructors
#region Methods
protected override void FreeHandle ()
{
// Parameter handles are disposed implicitely
if (HandleType >= OciHandleType.LobLocator) {
switch(HandleType) {
case OciHandleType.Parameter:
case OciHandleType.TimeStamp:
break;
default:
if (Handle != IntPtr.Zero) {
OciCalls.OCIDescriptorFree (this, HandleType);
SetHandle (IntPtr.Zero);
}
break;
}
}
}
#endregion // Methods
}
}