Commit Graph
206 Commits
Author SHA1 Message Date
Veerapuram Varadhan 725f21290b * OracleException: 2.0 changes - patch submitted by
Jay Wren <[email protected]>


svn path=/trunk/mcs/; revision=127839
2009-02-24 05:18:07 +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
Veerapuram Varadhan 175f56c90f * OciDefineHandle.cs (GetValue): Use connection's environment
handle instead of Parent handle.


svn path=/trunk/mcs/; revision=121735
2008-12-17 23:13:03 +00:00
Miguel de Icaza 8e07acf772 Multiple files:
Deals with the extension to Environment.OSVersion.Platform that might return a new
value MacOSX (6) on .NET
 

svn path=/trunk/mcs/; revision=121711
2008-12-17 17:56:25 +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 f9e93def34 2008-09-16 Daniel Morgan <[email protected]>
* System.Data.OracleClient/OracleBFile.cs: do not
	throw a NotImplementedException in internal constructor

svn path=/trunk/mcs/; revision=113246
2008-09-17 02:18:27 +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 c207abbc88 2008-09-08 Daniel Morgan <[email protected]>
* TestOracleClient.cs: remove some warnings
	and improve OracleParameter tests 
	for VARCHAR2, NUMBER, DATE types
	for Input, Output, InputOutput, and ReturnValue and
	handle DBNull.Value for various situations.
	These parameter tests work on .net 2.0 but fail on mono 2.0.

svn path=/trunk/mcs/; revision=112488
2008-09-08 05:14:35 +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 83a78ab159 2008-09-04 Daniel Morgan <[email protected]>
* System.Data.OracleClient/OracleDataReader.cs: return true
	in NextResult if another result	

svn path=/trunk/mcs/; revision=112252
2008-09-04 07:51:04 +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 2e88c7aa20 2008-08-27 Daniel Morgan <[email protected]>
* System.Data.OracleClient/OracleConnectionStringBuilder.cs: modified -
	add missing connection options, correct case of some connection options,
	added dictionary for mapping
	defaults, for Item this indexer needs to return a default
	for a valid keyword if it does not exist in the dictionary,
	must override the Keys and Values collection to return all keys
	and values whether or not they exist in the dictionary and if
	they do not then return a default value for Values

svn path=/trunk/mcs/; revision=111783
2008-08-28 03:33:19 +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
Daniel Morgan 001708d523 2008-08-25 Daniel Morgan <[email protected]>
* System.Data.OracleClient/OracleCommand.cs
	* System.Data.OracleClient.Oci/OciHandle.cs
	* System.Data.OracleClient.Oci/OciRowIdDescriptor.cs: fix
	bug 378470 by fixing method ExecuteOracleNonQuery 
        by getting the Universal ROWID and
	returning it as an output parameter OracleString.
        This will only work for Oracle 9i clients and above.

svn path=/trunk/mcs/; revision=111525
2008-08-25 04:56:38 +00:00
Daniel Morgan dec1eccd89 2008-08-23 Daniel Morgan <[email protected]>
* System.Data.OracleClient.dll.sources: added 
	files to build: 
           OracleClientFactory.cs
           OracleConnectionStringBuilder.cs

	* System.Data.OracleClient/OracleClientFactory.cs: added
	method to file: DbConnectionStringBuilder and modified
	CreateDataSourceEnumerator to return a null

	* System.Data.OracleClient/OracleConnectionStringBuilder.cs: add
	new file

svn path=/trunk/mcs/; revision=111478
2008-08-23 19:32:07 +00:00
Daniel Morgan 5ac698cfe5 2008-08-20 Daniel Morgan <[email protected]>
* System.Data.OracleClient/OracleConnection.cs: allow 
	the use of a connection string which allows a
	TNS network description that is parentheses delimited
	like the following which has the hostname, port, and
	service name without requiring use of a TNSNAMES.ORA
	file.

User ID=SCOTT;Password=TIGER;Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.101)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=TESTDB)))

svn path=/trunk/mcs/; revision=111079
2008-08-20 05:59:33 +00:00
Gert Driesen 99e8519833 * OracleDataReader_GetDateTime.cs: Moved initialization of
connectionString to a setup method, as workaround for NUnit 2.2.0
bug with Assert.Ignore in ctor.
* OracleDataReader_NextResult.cs: Moved initialization of connection
to setup method, as workaround for NUnit 2.2.0 bug with Assert.Ignore
in ctor.

svn path=/trunk/mcs/; revision=108067
2008-07-16 17:29:02 +00:00
Gert Driesen 83938e0ff7 * OracleDataAdapter_FillSchema_DsSt.cs: Moved initialization of
connectionString to a setup method, as workaround for NUNit 2.2.0
bug with Assert.Ignore in ctor.

svn path=/trunk/mcs/; revision=108066
2008-07-16 17:25:00 +00:00
Sebastien Pouliot 43f672b02f 2008-07-06 Sebastien Pouliot <[email protected]>
* OracleDataReader.cs: Replace a few Type.GetType by typeof
	[Found using Gendarme AvoidTypeGetTypeForConstantStringsRule]


svn path=/trunk/mcs/; revision=107346
2008-07-06 18:06:42 +00:00
Sebastien Pouliot df804b5b94 svn path=/trunk/mcs/; revision=107345 2008-07-06 18:06:25 +00:00
Gert Driesen 18f42f6172 * OracleDataAdapter_FillSchema_DsSt.cs: Ignore tests when not compiled
for JVM. Fixes buildbot test failure.
* OracleDataAdapter_GetFillParameters.cs: Ignore tests when not
compiled for JVM. Fixes buildbot test failure.
* OracleDataReader_NextResult.cs: Ignore tests when not compiled for
JVM. Fixes buildbot test failures.

svn path=/trunk/mcs/; revision=106739
2008-06-27 15:43:02 +00:00
Noam Lampert 5a43e30bfa Remove all vmwcproj files from old Grasshopper version
svn path=/trunk/mcs/; revision=104227
2008-05-28 09:28:24 +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
Andreas N 2c3be624d0 fix attribute
svn path=/trunk/mcs/; revision=101771
2008-04-25 08:06:07 +00:00
Andreas N ccff1df446 remove extra Attribute
svn path=/trunk/mcs/; revision=101653
2008-04-24 07:33:22 +00:00
Andreas N 0b944535bd 2008-04-23 Andreas Nahr <[email protected]>
* AssemblyInfo.cs: Added missing attributes

svn path=/trunk/mcs/; revision=101601
2008-04-23 19:16:41 +00:00
Noam Lampert 078bfb7274 Build java configuration using RT of JRE 1.4.2 for support of older java systems
svn path=/trunk/mcs/; revision=91221
2007-12-13 12:01:56 +00:00
Leszek 'skolima' Ciesielski 4c551e6f7f Fix for bingind procedure parameters by name rather than position contributed by Gary Thomas
svn path=/trunk/mcs/; revision=89427
2007-11-11 18:36:36 +00:00
Marek Safar c67dc1e171 2007-11-01 Marek Safar <[email protected]>
* OracleCommand.cs,
	* OracleConnection.cs,
	* OracleTransaction.cs: 2.0 profile updates.
	

svn path=/trunk/mcs/; revision=88635
2007-11-01 10:51:50 +00:00
Noam Lampert c1498b1027 Update Java build system
svn path=/trunk/mcs/; revision=85398
2007-09-06 10:20:49 +00:00
Noam Lampert 84ed9dda20 Remove reference to uncomitted code
svn path=/trunk/mcs/; revision=81131
2007-06-30 22:35:29 +00:00
Nagappan Alagappan f27cb6d543 2007-06-06 Nagappan A <[email protected]>
* System.Data.OracleClient_test.dll.sources: Added
	System.Data.OracleClient/OracleParameterCollectionTest.cs


svn path=/trunk/mcs/; revision=78722
2007-06-06 11:20:07 +00:00
Nagappan Alagappan bb2c742fc5 2007-05-25 Amit Biswas <[email protected]>
* OracleParameterCollectionTest.cs: Created the class OracleParameterCollectionTest and added
	tests for the properties IsFixedSize, IsReadOnly and IsSynchronized.


svn path=/trunk/mcs/; revision=78721
2007-06-06 11:19:20 +00:00
Nagappan Alagappan a29d3d60ea 2007-05-25 Nidhi Rawal <[email protected]>
* OracleDateTime.cs: Wrote the methods CompareTo (object) and Equals (object).
	* OracleClientFactory.cs: Wrote methods CreatePermission (PermissionState) and CreateDataSourceEnumerator ().
	* OracleString.cs: Wrote methods GreaterThan (OracleString, OracleString) and 
	GreaterThanOrEqual (OracleString, OracleString).
	* OracleDataAdapter.cs: Wrote the property UpdateBatchSize.

2007-05-25 Amit Biswas <[email protected]>
	* OracleParameterCollection.cs: Fixed the bugs in properties IsFixedSize, IsReadOnly and IsSynchronized.
	* OracleTimeSpan.cs: Implemented methods CompareTo (object) and Equals (object).
	* OracleMonthSpan.cs: Implemented methods CompareTo (object) and Equals (object).


svn path=/trunk/mcs/; revision=78720
2007-06-06 11:18:19 +00:00
Leszek 'skolima' Ciesielski a4504b68df fix for bug 81258
svn path=/trunk/mcs/; revision=75122
2007-03-29 07:19:37 +00:00
Noam Lampert af316aaf0e Convert jgac to java_refs, and jre6 to jre
svn path=/trunk/mcs/; revision=74770
2007-03-21 21:37:46 +00:00
Noam Lampert 37d205f16b rename jgac/vmw4j2ee_110 to jcag/framework
svn path=/trunk/mcs/; revision=74280
2007-03-14 17:29:33 +00:00
Noam Lampert 8a1219f1d1 switch to jre6
svn path=/trunk/mcs/; revision=73720
2007-03-05 15:17:33 +00:00
Konstantin Triger 25db39c86c Enable passing tests
svn path=/trunk/mcs/; revision=73705
2007-03-05 11:12:48 +00:00
Konstantin Triger 1ec22092d8 TARGET_JVM: run all fixtures
svn path=/trunk/mcs/; revision=73430
2007-02-26 14:52:01 +00:00
Konstantin Triger 64ea87db4f Added OracleClientFactory implementation
svn path=/trunk/mcs/; revision=73181
2007-02-20 16:09:46 +00:00
Leszek 'skolima' Ciesielski 17f2d67a38 Added regression test for passing parameters by position instead of by name (currently fails).
svn path=/trunk/mcs/; revision=72815
2007-02-14 09:31:21 +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
Konstantin Triger 683e24b4a8 Implemented respective AddWithValue methods
svn path=/trunk/mcs/; revision=72731
2007-02-13 07:08:17 +00:00
Noam Lampert 5c697547f8 Grasshopper project system now uses csproj extension
svn path=/trunk/mcs/; revision=72704
2007-02-12 21:48:01 +00:00