Commit Graph
67 Commits
Author SHA1 Message Date
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
Boris Kirzner 9d1a40e587 Batch fixes, solution and project files for NET_2_0 tests run.
svn path=/trunk/mcs/; revision=64142
2006-08-21 13:28:10 +00:00
Boris Kirzner 1e669c2fe0 Fix test scripts for TARGET_JVM
svn path=/trunk/mcs/; revision=58060
2006-03-16 13:09:24 +00:00
Boris Kirzner af2cdd468c Added automated testing support for TARGET_JVM
svn path=/trunk/mcs/; revision=57892
2006-03-13 13:07:35 +00:00
Konstantin Triger a3e50c9b61 correcting named parameters
svn path=/trunk/mcs/; revision=57300
2006-02-26 13:26:55 +00:00
Konstantin Triger 7b3bf7942c Port OleDb invocation style to that of OracleClient
svn path=/trunk/mcs/; revision=57299
2006-02-26 12:53:26 +00:00
Konstantin Triger e9a5df6c6f Added Mainsoft OracleClient testsuite
svn path=/trunk/mcs/; revision=56701
2006-02-09 14:29:35 +00:00
Daniel Morgan 857f2b5d74 2006-01-02 Daniel Morgan <[email protected]>
* System.Data.OracleClient/OracleConnection.cs: dispose of the
	connection string and other fields
	
	* Test/TestOracleClient.cs: tests for Intergrated Security
	and Persist Secuirty Info connection string parameters

svn path=/trunk/mcs/; revision=54951
2006-01-02 05:30:07 +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
Sebastien Pouliot d40934303c 2005-09-22 Sebastien Pouliot <[email protected]>
* OraclePermissionAttributeTest.cs: Removed *Choice security actions.


svn path=/trunk/mcs/; revision=50471
2005-09-22 13:21:11 +00:00
Daniel Morgan f6db44ab96 2005-07-17 Daniel Morgan <[email protected]>
* System.Data.OracleClient/OracleDataReader.cs:
	should allow getting RecordsAffected property
	after Close

svn path=/trunk/mcs/; revision=47371
2005-07-17 23:04:04 +00:00
Daniel Morgan dc0406b44d 2005-07-17 Daniel Morgan <[email protected]>
* System.Data.OracleClient/OracleCommandBuilder.cs:
    implemented a working OracleCommandBuilder based on
    current SqlCommandBuilder	

	* System.Data.OracleClient/OracleCommand.cs: added 
	placeholder for DeriveParamters

	* System.Data.OracleClient/OracleDataReader.cs:
		- sometimes trying to get records affected 
		  throws an exception
		- set BaseColumnName to the ColumnName 
		  in the Schema table
		  if the command behavior is KeyInfo
		- only try to Read if there are rows to read

	* Test/OracleAdapterTest.cs: removed file
	because adapter tests added to TestOracleClient.cs
		  
	* Test/TestOracleClient.cs: added tests
		- test ExecuteReader and records affected
		  executing a Non-Query
		- test Inserts/Updates/Deletes with a
		  DataSet, Data Adapter, and Command Builder

svn path=/trunk/mcs/; revision=47362
2005-07-17 08:23:27 +00:00
Daniel Morgan bf25ad7058 2005-07-10 Daniel Morgan <[email protected]>
* System.Data.OracleClient/OracleCommand.cs: support
	CommandBehavior of SchemaOnly

	* System.Data.OracleClient/OracleCommandBuilder.cs:
	implement OracleCommandBuilder.  Does not work yet.

	* System.Data.OracleClient/OracleDataReader.cs:
	implement CommandBehavior of KeyInfo which is required
	for OracleCommandBuilder.  Correct data retreived via
	GetSchemaTable()

	* System.Data.OracleClient.Oci/OciParameterDescriptor.cs: add
	method to convert a OciDataType enum to OracleDataType enum
	
	* System.Data.OracleClient.Oci/OciStatementHandle.cs: allow
	execute of DescribeOnly to support CommandBehavior.SchemaOnly

	* Test/OracleAdapterTest.cs: add file for adapter tests

svn path=/trunk/mcs/; revision=47156
2005-07-10 20:43:31 +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
Ben Maurer a68aa2eda4 remove executable bit from changelogs
svn path=/trunk/mcs/; revision=46563
2005-06-27 15:53:16 +00:00
Ben Maurer 0e8decdb37 remove svn:executable from .cs files
svn path=/trunk/mcs/; revision=46562
2005-06-27 15:51:40 +00:00
Daniel Morgan 733ebc1d7e 2005-03-06 Daniel Morgan <[email protected]>
- Applied patch by Hubert FONGARNAND 
	  <[email protected]>
	- Had to re-format according to mono style 
	  and remove Console.WriteLines
	- Made sure maxPoolSize and minPoolSize can be specified 
	  via the connection string, and that pooling can be disabled
	- if the next opened connection surpasses the max pool size, it waits
	  for a specified time in milliseconds, if it did not 
	  get another connection from the connection pool,
	  throw an InvalidOperationException for timeout expired
	  
	* System.Data.OracleClient.dll.sources: add 
	OracleConnectionPool.cs	to the build
	
	* System.Data.OracleClient/OracleConnection.cs: modified 
	  - add connection pooling to OracleClient
	  - GetNlsInfo () was not using the passed handle, it was always
	  a session handle
	
	* System.Data.OracleClient/OracleConnectionPoolManager.cs
	* System.Data.OracleClient/OracleConnectionPool.cs: added
	new file for connection pooling in OracleClient
	
	* System.Data.OracleClient/Test/TestOracleClient.cs: added tests
	for OracleClient connection pooling

svn path=/trunk/mcs/; revision=41480
2005-03-06 11:38:45 +00:00