Commit Graph
51 Commits
Author SHA1 Message Date
Neale Ferguson 0b26afc182 Fix memory leaks in Oracle Client. The largest leaks come from the cursors being created but never freed in OracleParameter.cs. The size of the memory used by these cursors varies from tens to thousands of bytes depending on the statement being executed. Several hours of transactions can lead to OOM errors. The other fixes are relatively minor but they do clean up other unmanaged memory not being returned. 2013-10-10 13:17:17 -04:00
Neale 66c4520fa2 Correct marshalling of size variables used in CharSetToUnicode (and vice-versa). They were specified as integers but for these calls they are, in C parlance, size_t so use SysUInt instead. 2013-04-16 22:48:58 -04:00
Veerapuram Varadhan 1239b13d1a [bugfix]667855 - Fix handling of oracle raw data types sanely. 2011-02-15 01:30:56 +05:30
Veerapuram Varadhan 1012ab0bbc Fixes 667236 - Handle numeric types appropriately 2011-01-31 01:15:55 +05:30
Daniel Morgan e58afa6bd2 2009-11-25 Daniel Morgan <[email protected]>
* System.Data.OracleClient/OracleParameter.cs: add
	parameter support for LONG RAW and RAW data types

	* System.Data.OracleClient.Oci/OciDefineHandle.cs: flush
	extra assigning of types

svn path=/trunk/mcs/; revision=146885
2009-11-25 05:51:06 +00:00
Daniel Morgan 63a239db57 2009-11-21 Daniel Morgan <[email protected]>
* System.Data.OracleClient/OracleParameter.cs: clean up

svn path=/trunk/mcs/; revision=146684
2009-11-22 03:58:37 +00:00
Daniel Morgan 7e234e0af7 2009-11-21 Daniel Morgan <[email protected]>
* System.Data.OracleClient/OracleParameter.cs:
		- if programmer explicitly sets the Size property,
		do not override the size later if the Value property
		is set for character data.
		- for character and numeric data types, output and 
		return parameters were not allocated memory.  Also,
		input/output parameters need to allocate memory 
		based on Size because the output can be bigger than
		the input after an execute.

	* Test/TestOracleClient.cs: Data Adapter Test 2 is failing 
	for NET_2_0 profile.

svn path=/trunk/mcs/; revision=146683
2009-11-22 02:58:05 +00:00
Veerapuram Varadhan 687d544e01 2009-10-29 Veerapuram Varadhan <[email protected]>
** Fixes #322695
	* OracleParameter.cs: Use oracle returned rsize instead of
	MAXBYTECOUNT.  Reduces the size of allocated buffer.

svn path=/trunk/mcs/; revision=145054
2009-10-29 18:32:14 +00:00
Veerapuram Varadhan 790b52755b 2009-10-29 Veerapuram Varadhan <[email protected]>
** Fixes #321718
	* OciCalls.cs: Add stub for OCILobCharSetForm to get the charset
        form associated with a CLOB/NCLOB.

        * OciLobLocator.cs: Add Environment handle property that is
        required to call OCILobCharSetForm and pass the output value to
	OCILobRead.

        * OciDefineHandler.cs: Update Environment property of
        OCILobLocator.

svn path=/trunk/mcs/; revision=144980
2009-10-29 02:02:12 +00:00
Veerapuram Varadhan c55e49254e 2009-09-30 Veerapuram Varadhan <[email protected]>
** Fixes #543207
	* OracleParameter.cs (Bind): Do not remove the trailing-null-byte.

svn path=/trunk/mcs/; revision=143693
2009-10-07 17:38:09 +00:00
Veerapuram Varadhan 7bd9e4a1c3 2009-09-25 Veerapuram Varadhan <[email protected]>
** Fixes #535889
	* OracleParameter.cs: In case of OUT param, update sizeSet even if
	value is null or DBNull.  Also, use rsize instead of bindSize to
	avoid extra allocation.

svn path=/trunk/mcs/; revision=142608
2009-09-25 00:29:14 +00:00
Veerapuram Varadhan 51879b7558 2009-06-04 Veerapuram Varadhan <[email protected]>
* OracleParameter.cs: Infer size only for 2.0 profile when only
	value is passed.  Fixes test failure under 1.1 profile.

svn path=/trunk/mcs/; revision=135427
2009-06-04 15:12:40 +00:00
Veerapuram Varadhan dcd2eb9f91 2009-06-03 Veerapuram Varadhan <[email protected]>
* OracleParameter.cs:  If a non-zero size is passed, update
	the size member but sizeSet is updated only when a non-null
	value is passed.

svn path=/trunk/mcs/; revision=135234
2009-06-02 21:00:18 +00:00
Veerapuram Varadhan cdae12f3ef 2009-09-15 Veerapuram Varadhan <[email protected]>
* OracleParameter.cs: Consider DBNull.Value as null and
	update size and sizeSet accordingly.

svn path=/trunk/mcs/; revision=134192
2009-05-15 10:48:55 +00:00
Veerapuram Varadhan 4ee5391d7c 2009-05-15 Veerapuram Varadhan <[email protected]>
** Fixes #424908
	* OracleParameter.cs:  Make sure size and sizeSet are properly
	updated whenever value changes.

svn path=/trunk/mcs/; revision=134191
2009-05-15 10:47:55 +00:00
Veerapuram Varadhan 8565f9bfe4 * OracleParameter.cs (bind): Consider OciDataType.Float and
* .Integer as OciDataType.Number.  Patch provided by Russell
        <[email protected]>


svn path=/trunk/mcs/; revision=127379
2009-02-19 07:48:41 +00:00
Daniel Morgan 26d138f191 2008-09-24 Daniel Morgan <[email protected]>
* Test/testblob.cs
	* Test/TestOracleClient.cs: update tests for parameter type of blob

	* System.Data.OracleClient/OracleLob.cs: position was never
	being reset to the offset causing the reading of a Blob to
	be out of range

	* System.Data.OracleClient/OracleParameter.cs: fixes for 
	character and blob types

svn path=/trunk/mcs/; revision=114050
2008-09-25 01:46:57 +00:00
Daniel Morgan 5bac14c9b0 2008-09-16 Daniel Morgan <[email protected]>
* Test/TestOracleClient.cs: add tests
	for TIMESTAMP Input, Output, InputOutput, Return 
	parameters and handle DBNull.Value too

	* System.Data.OracleClient/OracleCommandBuilder.cs
	* System.Data.OracleClient/OracleDataAdapter.cs: cleanup warnings
	for default profile

	* System.Data.OracleClient.Oci/OciDateTimeDescriptor.cs
	* System.Data.OracleClient/OracleParameter.cs: fix parameters
	for TIMESTAMP Input, Output, InputOutput, Return
	parameters and handle DBNUll.Value via indicator = -1
	However, TIMESTAMP WITH TIMEZONE and TIMESTAMP WITH LOCAL TIMESTAMP
	not tested.

svn path=/trunk/mcs/; revision=113244
2008-09-17 00:35:36 +00:00
Daniel Morgan ef62c8ca6b 2008-09-14 Daniel Morgan <[email protected]>
* System.Data.OracleClient/OracleParameter.cs: fixes
	for OracleType.Blob parameters.  Also some case statements
	not properly tabbed.

svn path=/trunk/mcs/; revision=113121
2008-09-16 03:07:51 +00:00
Daniel Morgan ebcefe02af 2008-09-14 Daniel Morgan <[email protected]>
* Test/TestOracleClient.cs: add tests for parameters
	of oracle type CLOB, add tests for setting oracle type
	directly or inferred via the value, and 
	clean up compile warnings

	* System.Data.OracleClient/OracleParameter.cs: fix
	for handling parameters of oracle type CLOB for
	Input, Output, and Return.  InputOutput is not supported.
	And handle CLOB parameters that are DBNull.Value or
	their value length is zero.

svn path=/trunk/mcs/; revision=112948
2008-09-14 04:06:00 +00:00
Daniel Morgan b575dfd355 2008-09-13 Daniel Morgan <[email protected]>
* System.Data.OracleClient/OracleConnection.cs: add stubs
	for method GetSchema which is part of NET_2_0, and clean up warnings

	* System.Data.OracleClient/OracleCommand.cs
	* ystem.Data.OracleClient/OracleParameter.cs
	* System.Data.OracleClient/OracleBFile.cs
	* System.Data.OracleClient.Oci/OciHandle.cs: clean up warnings

	* System.Data.OracleClient.Oci/OciDescriptorHandle.cs
	* System.Data.OracleClient.Oci/OciDefineHandle.cs: make methods internal

svn path=/trunk/mcs/; revision=112925
2008-09-13 05:31:30 +00:00
Daniel Morgan bf9ee16b38 2008-09-13 Daniel Morgan <[email protected]>
* Test/TestOracleClient.cs: add test for LONG (long varchar)
	testing paramters for Input, Output, 
	InputOutput, and ReturnValue and
	situations when any of these could be DBNull.Value

	* System.Data.OracleClient/OracleParameter.cs: fix
	handling of parameters LONG (long varchar).  However,
	it probably would be better to implement LONG using
	piecewise operation.  Also, remove old code.

svn path=/trunk/mcs/; revision=112924
2008-09-13 04:14:29 +00:00
Daniel Morgan 55ffdd0ba3 2008-09-10 Daniel Morgan <[email protected]>
* Test/TestOracleClient.cs: fix typo,
	  enable more test,
          Tests pass for parameters for Character, Number, and Date
	  for Input, Output, InputOutput, and ReturnValue and
	  situations when any of these could be DBNull.Value

	* System.Data.OracleClient/OracleParameter.cs: fix
	handling of parameters for character, number, and date
	types.  Need to redo all the other types based on the above.

	* System.Data.OracleClient.Oci/OciDefineHandle.cs: rename private
	method DefineLong to DefineLongVarChar

svn path=/trunk/mcs/; revision=112641
2008-09-10 04:56:56 +00:00
Daniel Morgan 61c5bd311b 2008-09-06 Daniel Morgan <[email protected]>
* Test/TestOracleClient.cs: get oracle connected tests
	going again
	
	*  System.Data.OracleClient.Oci/OciDefineHandle.cs
	* System.Data.OracleClient/OracleDataReader.cs
	* System.Data.OracleClient/OracleCommand.cs: fix character
	field value for a reader that was retrieved from a REF CURSOR.
	It was failing due to OCI_INVALID_HANDLE - resolve the error
	by passing a connection object which has a valid environment
	handle.

	* System.Data.OracleClient.Oci/OciCalls.cs: correct 
	call to OCIDefineByPos

	* System.Data.OracleClient/OracleParameter.cs: better way to
	determine if the input value Is Null instead of using reflection.
	Flush - Re-arraning how variables are being bound.

	* System.Data.OracleClient/OciGlue.cs: add function
	to convert OCI Return / Error Status Code to a String Description
 
	* System.Data.OracleClient.Oci/OciErrorHandle.cs: better
	error handling

svn path=/trunk/mcs/; revision=112419
2008-09-06 09:45:42 +00:00
Daniel Morgan f8b34b4a56 2008-09-04 Daniel Morgan <[email protected]>
* System.Data.OracleClient/OracleCommand.cs: removed AssertNoDataReader
	because oracle allows multiple result sets and has since .NET 1.0,
	fix bug where REF CURSOR would not work for ExecuteReader or
	filling a DataSet via an OracleDataAdapter.  The REF CURSOR is used to
	populate the DataSet.

	* System.Data.OracleClient/OracleDataReader.cs: fix for getting
	next result set; implement NET_2_0 methods 
	GetProviderSpecificFieldType,
	GetProviderSpecificValuee, 
	GetProviderSpecificValue; and validate the reader is open
	before allowing a Read or NextResult, otherwise, throw
	an InvalidOperationException

	* System.Data.OracleClient/OracleParameter.cs: fix for
	getting one or more REF CURSOR out parameters if
	ExecuteReader was called. 

	* System.Data.OracleClient.Oci/OciErrorHandle.cs
	* System.Data.OracleClient.Oci/OciHandle.cs: add addiional method
	for getting error, such as, INVALID_HANDLE being passed to OCI

svn path=/trunk/mcs/; revision=112250
2008-09-04 07:12:49 +00:00
Daniel Morgan f9992d7537 2008-08-26 Daniel Morgan <[email protected]>
* System.Data.OracleClient/OracleParameter.cs
	* System.Data.OracleClient.Oci/OciStatementHandle.cs
	* System.Data.OracleClient.Oci/OciDefineHandle.cs: fix bug
	for GetOracleLob in OracleDataReader that was created
	via a REF CURSOR.  Bug occurred because the cursor when created
	did not have a ServiceContext - this was solved by passing
	the connection in which did.  Fixes bug#350408.  In OracleParameter, also
	show the data type that is not implemented.

	* Test/testblob.cs
	* Test/TestOracleClient.cs: updated tests

	* Test/refcursortest.cs: added ref cursor test with blob

svn path=/trunk/mcs/; revision=111595
2008-08-26 06:33:55 +00:00
Gert Driesen 8ddf5beafd * OracleTransaction.cs: Corcompare fixes for 2.0 profile. Implemented
DbConnection and Dispose override. Code formatting.
* OracleLob.cs: Implemented Dispose overloads. Code formatting.
* OracleCommand.cs: Removed extra connection_timeout field. Fixed
DesignTimeVisible. Changed CommandText to return zero-length string
when underlying value is null. Fixed CommandTimeout to always
return 0. Implemented DbConnection, DbParameterCollection and
DbTransaction properties. Corcompare fixes for 2.0 profile.
* OracleTimeSpan.cs: In OracleTimeSpan ctor, throw NRE when from
is Null timespan. Fixed Hours property to actually return hours instead
of days. Modified Value to throw InvalidOperationException when
current instance is Null. Fixed explicit operator argument name.
* OracleRowUpdatingEventArgs.cs: Added missing BaseCommand override.
* OracleParameterCollection.cs: Removed extra internal ctor.
Corcompare fixes for 2.0 profile. On 1.0 profile, perform culture
sensitive and case-insensitive lookup. On 2.0 profile, first perform
case-sensitive lookup and fallback to case-insensitive lookup.
Set and remove Container where necessary, and perform checks for
ownership. Implemented AddRange overloads, and (Get/Set)Parameter.
Added several 2.0 overloads taking OracleParameter. Fixed exceptions
to match MS.
* OracleDataReader.cs: Corcompare fixes for 2.0 profile. Moved
disposing of schematable to Close, and invoke Close from Dispose.
Reduce casts. Stubbed methods introduced in 2.0 profile.
* OracleConnection.cs: Corcompare fixes for 2.0 profile. Changed
ConnectionString to return zero-length string when underlying value is
null. Removed explicit IDisposable implementation. Use string.Empty
instead of "". Code formatting.
* OracleMonthSpan.cs: Code formatting. Changed argument name of
explicit operator to match MS.
* OracleDataAdapter.cs: Code formatting. Fixed default ctor to use
null for SelectCommand. In 2.0 profile, set UpdateBatchSize to 1 and
throw AORE when setting it to negative value. Modified *Command setters
to throw InvalidCastException instead of ArgumentException. Removed
extra TableMappings property.
* OracleParameter.cs: Use zero-length string as default for
SourceColumn. Added missing 2.0 ctor. In ParameterName return zero
length string when name is null. Added SourceColumnNullMapping
property. Corcompare fixes for 2.0 profile. Code formatting.
* OracleBFile.cs: Added Dispose override for 2.0 profile.
* OracleDataAdapterTest.cs: Added ctor and basic property tests.
* OracleParameterCollectionTest.cs: Added tests for Clear,Count,Add,
Add,AddRange,Contains,indexers,IndexOf,Insert,Remove and RemoveAt.
* OracleCommandTest.cs: Added tests for ctors and CommandText,
CommandTimeout, ConnectionTimeout and Connection.
* OracleConnectionTest.cs: Added tests for ConnectionString and
ConnectionTimeout.
* OracleParameterTest.cs: Allow for disconnected tests. Added basic
ctor tests and test for ParameterName.
* OracleTimeSpanTest.cs: Added ctor tests. Added tests for IsNull,
MaxValue, MinValue, Null and ToString.
 * System.Data.OracleClient_test.dll.sources: Added
OracleConnectionTest.cs, OracleDataAdapterTest.cs and
OracleTimeSpanTest.cs.

svn path=/trunk/mcs/; revision=102756
2008-05-07 18:49:22 +00:00
Leszek 'skolima' Ciesielski 028297da96 Added handling of OracleDateTime, OracleString and OracleNumber as input parameters
svn path=/trunk/mcs/; revision=72742
2007-02-13 09:59:51 +00:00
Leszek 'skolima' Ciesielski bd7da4a3c1 Cleanup of unused variables and other compiler warnings.
svn path=/trunk/mcs/; revision=70505
2007-01-04 21:32:40 +00:00
Leszek 'skolima' Ciesielski d63b262fed Set svn:eol-style to native.
Added padding with 0's to buffers fed back to OCI.

svn path=/trunk/mcs/; revision=70467
2007-01-04 12:39:25 +00:00
Leszek 'skolima' Ciesielski 60b622ca84 Removed most of NotWorking from tests, and eliminated one of the causes for segfaults (it was, sadly, my own fault).
svn path=/trunk/mcs/; revision=66814
2006-10-19 10:35:01 +00:00
Leszek 'skolima' Ciesielski 2e3677ca91 Integrated the Mainsoft test suite into make run-test. Many tests still fail...
svn path=/trunk/mcs/; revision=66740
2006-10-17 08:04:07 +00:00
Leszek 'skolima' Ciesielski 137015f1b8 Fix for bug 77592 (memory leak in OracleParameter)
svn path=/trunk/mcs/; revision=65345
2006-09-13 08:38:24 +00:00
Leszek 'skolima' Ciesielski 117d0f42eb Fix for bug 79284, number handling now takes into consideration NLS from Oracle database.
svn path=/trunk/mcs/; revision=65243
2006-09-11 17:15:07 +00:00
Leszek 'skolima' Ciesielski 81ed9a5b7f Fixed bug 78509 in OracleParameter (trimming trailing spaces) and added regression test.
Fixed bug 78765 in OracleCommand (nulling the Connection/Transaction) and added regression test.

svn path=/trunk/mcs/; revision=65232
2006-09-11 14:46:12 +00:00
Gert Driesen 4cb4c3d175 * OracleLob.cs: Explicitly implement IDisposable interface. Fixes
API signature warning for Dispose () method.
* OracleParameterCollection.cs: Removed explicit interface implemenation
of IList.IsFixedSize, IList.IsReadOnbly, IList.IsSynchronized and
IList.SyncRoot. Fixes API signature mismatches.
* OracleBFile.cs: Explicit implemenat IDisposable interface. Fixed
API signature warning for Dispose () method.
* OracleCommand.cs: Fixed line endings.
* OracleConnection.cs: Removed destructor, as the destructor in
System.ComponentModel.Component already calls the Dispose (bool) method.
* OracleDataReader.cs: Fixed line endings.
* OracleDateTime.cs: Fixed line endings.
* OracleParameter.cs: Fixed line endings.

svn path=/trunk/mcs/; revision=61297
2006-05-31 08:09:48 +00:00
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
Daniel Morgan 623727e08d REF CURSOR support. See ChangeLog for 2005-12-11 Daniel Morgan <[email protected]>
svn path=/trunk/mcs/; revision=54216
2005-12-11 22:38:21 +00:00
Daniel Morgan 8970063146 2005-08-10 Daniel Morgan <[email protected]>
* System.Data.OracleClient/OracleCommandBuilder.cs: update 
	based on changes Suresh did to OdbcCommandBuilder, SqlCommandBuilder, 
	and DbDataAdapter
	
	* System.Data.OracleClient/OracleParameter.cs
	* System.Data.OracleClient.Oci/OciHandle.cs
	* System.Data.OracleClient.Oci/OciCalls.cs
	* System.Data.OracleClient.Oci/OciDataType.cs
	* System.Data.OracleClient.Oci/OciParameterDescriptor.cs
	* System.Data.OracleClient.Oci/OciStatementHandle.cs
	* System.Data.OracleClient.Oci/OciDefineHandle.cs: with help
	from Hubert FONGARNAND <[email protected]>
	implement TIMESTAMP support via OciDateTime descriptor
	
	* System.Data.OracleClient.dll.sources: add
	OciDateTimeDescriptor.cs to build
	
	* System.Data.OracleClient.Oci/OciDateTimeDescriptor.cs: add new
	file to support Oracle TIMESTAMP using OciDateTime descriptor

svn path=/trunk/mcs/; revision=48254
2005-08-11 02:06:06 +00:00
Daniel Morgan 9b7d2979c6 2005-07-25 Daniel Morgan <[email protected]>
* System.Data.OracleClient/OracleParameter.cs: apply
	patch from 
	Hubert FONGARNAND <[email protected]>
	to tranmit an input paramter that is a date in a binary format
	instead of a character format to avoid culture 
	dependent problems

svn path=/trunk/mcs/; revision=47677
2005-07-26 03:37:18 +00:00
Daniel Morgan 586b31fa86 2005-07-08 Daniel Morgan <[email protected]>
* System.Data.OracleClient/OracleParameter.cs
	* System.Data.OracleClient/OracleCommand.cs
	* System.Data.OracleClient/OracleDataReader.cs: support
	Output parameters.  Return and InputOutput are TODO.  Input
	already supported.  TODO for handling NULL indicator on Output params.

	* System.Data.OracleClient/OracleConnection.cs: remove
	compile warning

	* Test/TestOracleClient.cs: add tests for out parameters

svn path=/trunk/mcs/; revision=47076
2005-07-08 06:01:26 +00:00
Daniel Morgan b6813b98b1 2005-03-06 Daniel Morgan <[email protected]>
- Applied patch by Hubert FONGARNAND 
	  <[email protected]>

svn path=/trunk/mcs/; revision=42620
2005-04-07 02:01:25 +00:00
Daniel Morgan 571c39a720 2005-02-25 Daniel Morgan <[email protected]>
* System.Data.OracleClient/OracleParameter.cs: modified 
	  - fix for input parameters for strings, dates,
	    CLOBs, and other types 
	    to use OCIUnicodeToCharSet to convert
	    the string to bytes that are in Oracle's character set
	  - fix for input parameters for BLOBs to 
	    use OciDataType.LongRaw instead of Long
	  - fix for Raw data type 
	    thanks to [email protected] (Curtis) which fixes bug #72416
	    and also fix "System.DataType" 
	    to "System.DateTime" in InferOracleType
	    
	* Test/TestOracleClient.cs: handle byte[] from OracleDataReader.GetValue()

svn path=/trunk/mcs/; revision=41230
2005-02-26 03:44:49 +00:00
Daniel Morgan be424fd23b 2005-02-20 Daniel Morgan <[email protected]>
* System.Data.OracleClient/OracleDateTime.cs: modified -
	added functions for converting the date format strings between
	OracleDateTime and DateTime based on 
	the NLS_DATE_FORMAT on the Oracle server
	
	* System.Data.OracleClient/OracleConnection.cs: implement
	internal function GetNlsInfo to get NLS info from the Oracle server
	for the session or environment.  Also, implemented function
	GetSessionNlsDateFormat to get Oracle's NLS_DATE_FORMAT string
	
	* System.Data.OracleClient/OracleParameter.cs: for input parameters,
	fixed setting the parameter value to DBNull.Value and fixed the
	setting of a DateTime or OracleDateTime.  Tried to fix CLOBs/BLOBs, but
	it is still a TODO.
	
	* Test/TestOracleClient.cs: updated the parameters test
	
	* System.Data.OracleClient.Oci/OciHandle.cs: implement
	internal function SetAttributeString
	
	* System.Data.OracleClient.Oci/OciCalls.cs: add DllImport
	OCIBindByNameBytes so byte array can be passed instead of IntPtr
	for the value, add DllImport OCIDateTimeFromText, 
	and added DllImport for OCINlsGetInfo to get NLS info, 
	such as, NLS_DATE_FORMAT
	
	* System.Data.OracleClient.Oci/OciAttributeType.cs: added
	attribute for date format (not used)
	
	* System.Data.OracleClient.Oci/OciNlsServiceType.cs: added new file
	for an enum to hold NLS Service types which is to be used with GetNlsInfo()
	in OracleConnection
	
	* System.Data.OracleClient.dll.sources: added OciNlsServiceType.cs to
	the build

svn path=/trunk/mcs/; revision=40926
2005-02-20 10:52:16 +00:00
Joerg Rosenkranz 03f9ca4f63 Patch submitted by Gert Driesen:
2004-06-19  Gert Driesen <[email protected]>

        * Makefile: added references to System.EnterpriseServices and
        System.Drawing assemblies
        * System.Data.OracleClient.dll: added Assembly/Consts.cs and
        System.Data.OracleClient/OracleMonthSpan.cs
        * OracleCommand.cs: added missing attributes, marked class sealed,
        fixed signature of ExecuteOracleScalar method
        * OracleCommandBuilder.cs: added missing attributes
        * OracleConnection.cs: marked class sealed, added missing attributes,
        stubbed missing propertie, methods and events
        * OracleDataAdapter.cs: added missing attributes, removed extra
        stubbed Dispose method
        * OracleDataReader.cs: stubbed missing methods
        * OracleDataTime.cs: fixed signature and implementation of operator
        * OracleException.cs: marked serializable, added serialization ctor
        * OracleParameter.cs: added missing attributes, marked extra methods
        private
        * OracleParameterCollection.cs: marked class sealed, added missing
        attributes
        * OracleString.cs: added missing methods, added missing operators

svn path=/trunk/mcs/; revision=30112
2004-06-22 13:21:08 +00:00
Tim Coleman fe3197aa40 Submitted thanks to patch from Joerg Rosenkranz ...
2004-01-09  Joerg Rosenkranz  <[email protected]>

        * System.Data.OracleClient.Oci/OciCalls.cs:
                Added. It contains all external OCI calls which are
                removed from all other files.
        * System.Data.OracleClient/OciGlue.cs:
                Fix for #52699 (OCI not thread safe).
        * System.Data.OracleClient.Oci/OciHandle.cs:
                Introduced special handling for Bind, Define and
                Environment handles in FreeHandle. Revised the handling for
                other types. Minor change in Dispose.
                Replaced OCI calls.
        * System.Data.OracleClient.Oci/OciDescriptorHandle.cs:
                Special handling for Parameter handles in FreeHandle.
                Replaced OCI calls.
        * System.Data.OracleClient.Oci/OciDefineHandle.cs:
                Character types are converted using the DefaultEncoding.
                Replaced OCI calls.
        * System.Data.OracleClient/OracleCommand.cs:
                Dispose created OciStatementHandles.
        * System.Data.OracleClient/OracleDataReader.cs:
                Dispose used OciStatementHandle.
        * System.Data.OracleClient/OracleTransaction.cs:
                Dispose transaction handle.
        * System.Data.OracleClient.Oci/OciStatementHandle.cs:
                OCI_INVALID_HANDLE results in exception "Invalid handle."
                Replaced OCI calls.
        * System.Data.OracleClient.Oci/OciTransactionHandle.cs:
                Introduced DetachFromServiceContext which is called in Commit
                and Rollback (Fix for #52702).
        * System.Data.OracleClient/OracleParameter.cs:
        * System.Data.OracleClient.Oci/OciEnvironmentHandle.cs:
        * System.Data.OracleClient.Oci/OciErrorHandle.cs:
        * System.Data.OracleClient.Oci/OciLobLocator.cs:
        * System.Data.OracleClient.Oci/OciServerHandle.cs:
        * System.Data.OracleClient.Oci/OciServiceHandle.cs:
        * System.Data.OracleClient.Oci/OciSessionHandle.cs:
                Replaced OCI calls.

svn path=/trunk/mcs/; revision=21877
2004-01-09 14:52:39 +00:00
Tim Coleman 0657be2d9c 2003-03-08 Tim Coleman <[email protected]>
* System.Data.OracleClient.Oci/OciRowIdDescriptor.cs:
        * list:
                New class added
        * System.Data.OracleClient/OciGlue.cs:
        * System.Data.OracleClient/OracleDataReader.cs:
        * System.Data.OracleClient/OracleLob.cs:
        * System.Data.OracleClient.Oci/OciBindHandle.cs:
        * System.Data.OracleClient.Oci/OciDataType.cs:
        * System.Data.OracleClient.Oci/OciDefineHandle.cs:
        * System.Data.OracleClient.Oci/OciDescriptorHandle.cs:
        * System.Data.OracleClient.Oci/OciErrorHandle.cs:
        * System.Data.OracleClient.Oci/OciHandle.cs:
        * System.Data.OracleClient.Oci/OciLobLocator.cs:
        * System.Data.OracleClient.Oci/OciParameterDescriptor.cs:
        * System.Data.OracleClient.Oci/OciServerHandle.cs:
        * System.Data.OracleClient.Oci/OciServiceHandle.cs:
        * System.Data.OracleClient.Oci/OciSessionHandle.cs:
                Small changes
        * System.Data.OracleClient/OracleBoolean.cs:
                Change Null definition
        * System.Data.OracleClient/OracleCommand.cs:
                More implementation, more toward getting ExecuteOracle*
        * System.Data.OracleClient/OracleConnection.cs:
                Add new handle properties
        * System.Data.OracleClient/OracleParameter.cs:
        * System.Data.OracleClient.Oci/OciStatementHandle.cs:
                Move binding operation to oracle parameter.

svn path=/trunk/mcs/; revision=12356
2003-03-08 22:37:09 +00:00
Tim Coleman 8c246fd3c7 2003-03-04 Tim Coleman <[email protected]>
* System.Data.OracleClient.Oci/IOciDescriptorHandle.cs:
	* System.Data.OracleClient.Oci/IOciHandle.cs:
	* System.Data.OracleClient.Oci/OciDescriptorType.cs:
		Removed. These are no longer used.
	* System.Data.OracleClient.Oci/OciParameterDescriptor.cs:
		Add new class
	* list:
		Add System.Data.OracleClient.Oci/OciParameterDescriptor.cs
		Rem System.Data.OracleClient.Oci/IOciDescriptorHandle.cs
		Rem System.Data.OracleClient.Oci/IOciHandle.cs
		Rem System.Data.OracleClient.Oci/OciDescriptorType.cs
	* System.Data.OracleClient/OciGlue.cs:
		Move the OCIAttrGet* methods into OciHandle
	* System.Data.OracleClient/OracleDataReader.cs:
	* System.Data.OracleClient/OracleParameter.cs:
		Change the way that columns are bound and described
	* System.Data.OracleClient.Oci/OciBindHandle.cs:
	* System.Data.OracleClient.Oci/OciDefineHandle.cs:
	* System.Data.OracleClient.Oci/OciDescriptorHandle.cs:
	* System.Data.OracleClient.Oci/OciEnvironmentHandle.cs:
	* System.Data.OracleClient.Oci/OciErrorHandle.cs:
	* System.Data.OracleClient.Oci/OciHandle.cs:
	* System.Data.OracleClient.Oci/OciLobLocator.cs:
	* System.Data.OracleClient.Oci/OciServerHandle.cs:
	* System.Data.OracleClient.Oci/OciServiceHandle.cs:
	* System.Data.OracleClient.Oci/OciSessionHandle.cs:
	* System.Data.OracleClient.Oci/OciStatementHandle.cs:
	* System.Data.OracleClient.Oci/OciTransactionHandle.cs:
		All handles now derive from OciHandle, and these classes
		have been rewritten as such.  Also attempted to implement
		the Dispose () methods for these classes.
	* System.Data.OracleClient.Oci/OciHandleType.cs:
		Add descriptor types into here because handles and
		descriptors are used in many of the same OCI functions.

svn path=/trunk/mcs/; revision=12176
2003-03-04 13:50:35 +00:00
Tim Coleman 7aa6feb8b4 2003-02-18 Tim Coleman <[email protected]>
* System.Data.OracleClient/OciBindHandle.cs:
        * list:
                Add new class
        * System.Data.OracleClient/OracleCommand.cs:
                Add transaction logic for rollback/commit,
                attaching to oracle service context, and a
                couple of test cases.
                Add Parameter handling
        * System.Data.OracleClient/OracleDataReader.cs:
                Change GetValue call
        * System.Data.OracleClient/OracleParameter.cs:
                Make this work
        * System.Data.OracleClient/OracleType.cs:
                Add values to enum
        * System.Data.OracleClient.Oci/OciDefineHandle.cs:
                Add GetValue call which is used by data reader
        * System.Data.OracleClient.Oci/OciStatementHandle.cs:
                Add parameter logic
        * Test/TestOracleClient.cs:
                Add some new test cases.

svn path=/trunk/mcs/; revision=11709
2003-02-19 02:46:22 +00:00
Tim Coleman 57718c3451 2003-02-11 Tim Coleman <[email protected]>
* System.Data.OracleClient.Oci/OciAttributeType.cs:
	* System.Data.OracleClient.Oci/OciCredentialType.cs:
	* System.Data.OracleClient.Oci/OciDescriptorType.cs:
	* System.Data.OracleClient.Oci/OciEnvironmentMode.cs:
	* System.Data.OracleClient.Oci/OciExecuteMode.cs:
	* System.Data.OracleClient.Oci/OciHandleType.cs:
	* System.Data.OracleClient.Oci/OciLobType.cs:
	* System.Data.OracleClient.Oci/OciPointerType.cs:
	* System.Data.OracleClient.Oci/OciSessionMode.cs:
	* System.Data.OracleClient.Oci/OciStatementLanguage.cs:
	* System.Data.OracleClient.Oci/OciStatementMode.cs:
	* System.Data.OracleClient.Oci/OciStatementType.cs:
	* System.Data.OracleClient.Oci/OciTransactionFlags.cs:
		New files for Oci namespace
	* list:
	* makefile.gnu:
		Update these files to fix linux build
	* System.Data.OracleClient/OciGlue.cs:
		Use OCI through P/Invoke directly, rename namespace
	* System.Data.OracleClient/OracleCommand.cs:
	* System.Data.OracleClient/OracleConnection.cs:
	* System.Data.OracleClient/OracleDataReader.cs:
	* System.Data.OracleClient/OracleParameter.cs:
	* System.Data.OracleClient/OracleParameterCollection.cs:
	* System.Data.OracleClient/OracleTransaction.cs:
		Retrofit these files for the changes in OciGlue.cs

svn path=/trunk/mcs/; revision=11516
2003-02-12 03:57:47 +00:00