83 Commits
Author SHA1 Message Date
Alexander Köplinger 77bcadb7dd [System.Data.OracleClient] Replace config file lookup of ConnectionString with env var
This is easier with the new nunitlite config file handling.
2016-10-29 14:09:36 +02:00
Alexander Köplinger b03e606287 Remove ChangeLog files from the repo
They weren't updated in the last 6 years and aren't helpful anymore (e.g. by causing unrelated matches during git grep searches).
2016-01-29 19:17:06 +01:00
Alexander Köplinger 746650d1b9 [bcl] Remove more NET_2_0 checks from class libs 2015-01-17 05:45:39 +01:00
Alexander Köplinger 48e112d652 [Cleanup] Removed TARGET_JVM
It was once part of a special Java target profile, but this is no longer used today.
2014-08-08 03:28:34 +02:00
Alexander Köplinger 5f4b8c2cf4 [Cleanup] Removed JavaEE csproj and sln files
They were once part of a special Java target profile, but this is no longer used today.
2014-08-07 23:01:53 +02:00
Andrés G. Aragoneses 0eb40ad2da Fix very sticky typo in numerous places 2014-01-19 17:51:24 +01:00
Marek Safar efd488911c Disable failing tests 2012-06-14 16:09:33 +01:00
Raja R Harinath b293948fb7 EOL handling
This set of .gitattributes was automatically generated from the list of files
that GIT tried to normalize when I enabled automatic EOL conversion.

With this set of attributes, we prevent automated EOL conversion on files that
we know will cause trouble down the road.
2010-07-25 20:17:39 +05:30
Jonathan Pobst e7f604e1fa 2010-01-15 Jonathan Pobst <[email protected]>
* OracleParameterTest.cs: Mark test ParamSize_424908_SizeNotSetError
	as not working.  Bug filed: #571218.

svn path=/trunk/mcs/; revision=149652
2010-01-15 22:35:08 +00:00
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 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 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 4530a2494e 2009-06-03 Veerapuram Varadhan <[email protected]>
* OracleParameterTest.cs: Mark tests for bug #424908 as NotWorking
        as it requires some more thorough debugging.

svn path=/trunk/mcs/; revision=135305
2009-06-03 15:28:59 +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
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 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 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 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 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
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
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
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
Konstantin Triger 25db39c86c Enable passing tests
svn path=/trunk/mcs/; revision=73705
2007-03-05 11:12:48 +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
Noam Lampert 5c697547f8 Grasshopper project system now uses csproj extension
svn path=/trunk/mcs/; revision=72704
2007-02-12 21:48:01 +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
Konstantin Triger e8715eef75 change GHROOT to VMW_HOME
svn path=/trunk/mcs/; revision=67983
2006-11-16 12:11:25 +00:00
Leszek 'skolima' Ciesielski 1e9ea27d78 Added check to avoid NullReferenceException failures in TearDown() on Assert.Ignore
svn path=/trunk/mcs/; revision=66815
2006-10-19 11:03:04 +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 a0b2ebd522 Enclosed NotWorking attribute with #if !TARGET_JVM
svn path=/trunk/mcs/; revision=66743
2006-10-17 13:00:04 +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
Raja R Harinath 9bdec12456 Kill all executable flags on *.cs and ChangeLog files.
AKA: fun with find(1)+xargs(1)
AKA: find . -name \*.cs -and -perm /a+x | xargs svk propdel svn:executable

svn path=/trunk/mcs/; revision=66131
2006-09-30 18:29:13 +00:00
Leszek 'skolima' Ciesielski 8a487c2183 Added missing 'using' statements.
svn path=/trunk/mcs/; revision=65344
2006-09-13 08:27:15 +00:00
Boris Kirzner 9be2f97501 Fix tests build for TARGET_JVM.
svn path=/trunk/mcs/; revision=65302
2006-09-12 12:46:54 +00:00
Boris Kirzner d876e484e7 Fixes for TARGET_JVM tests.
svn path=/trunk/mcs/; revision=65294
2006-09-12 11:07:39 +00:00
Leszek 'skolima' Ciesielski fdb030fd9e Fixed bug 78898 in OracleLob (index was 1-based instead of 0) and added regression test.
svn path=/trunk/mcs/; revision=65292
2006-09-12 10:31:25 +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
Kornél Pál 546a1134d2 Converted source files to UTF-8 (without byte order mark). Use UTF-8 as the default encoding for compilers.
svn path=/trunk/mcs/; revision=64941
2006-09-05 13:54:12 +00:00