Commit Graph
233 Commits
Author SHA1 Message Date
Veerapuram Varadhan 1239b13d1a [bugfix]667855 - Fix handling of oracle raw data types sanely. 2011-02-15 01:30:56 +05:30
Miguel de Icaza 38253abf8c Add solution files 2011-02-12 22:09:49 -05:00
Veerapuram Varadhan 1012ab0bbc Fixes 667236 - Handle numeric types appropriately 2011-01-31 01:15:55 +05:30
Raja R Harinath cd51491631 Fix a few cases of mixed line-endings
This is a scripted conversion of mixed line-ending files to LF-only or CRLF-only
based on which patch is smaller.  I used a threshold of upto a quarter of the
lines to determine whether to keep the patch or not.
2010-07-26 02:20:13 +05:30
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 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
Daniel Morgan 70f4be0bce svn path=/trunk/mcs/; revision=146672 2009-11-21 05:45:47 +00:00
Daniel Morgan 147d957068 2009-11-19 Daniel Morgan <[email protected]>
* System.Data.OracleClient/OracleConnection.cs
	* System.Data.OracleClient/OciGlue.cs
	* System.Data.OracleClient.Oci/OciCalls.cs
	* System.Data.OracleClient.Oci/OciServiceHandle.cs
	* System.Data.OracleClient.Oci/OciSessionHandle.cs: add method
		OpenWithNewPassword to OracleConnection for
		Oracle.DataAccess

svn path=/trunk/mcs/; revision=146595
2009-11-20 05:03:02 +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
Joerg Rosenkranz 29a70ee7f9 2009-10-27 Joerg Rosenkranz <[email protected]>
* OciCalls.cs: Wrong function name in trace.

svn path=/trunk/mcs/; revision=144931
2009-10-28 08:36:34 +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
Daniel Morgan 6f918d0c77 2009-09-20 Daniel Morgan <[email protected]>
* OracleConnection.cs: implement GetSchema methods

svn path=/trunk/mcs/; revision=142299
2009-09-21 03:18:37 +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
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 90a2705cf5 2009-03-29 Veerapuram Varadhan <[email protected]>
* Fixes #480377
		* OciCalls.cs:
		* OciDataType.cs:
		* OciDefineHandle.cs:
		* OciHandle.cs:
		* OciIntervalDescriptor.cs:
		* OciParameterDescriptor.cs: Implement INTERVAL_YEAR_TO_MONTH and
		INTERVAL_DAY_TO_SECOND OCI types.

svn path=/trunk/mcs/; revision=130490
2009-03-29 03:48:36 +00:00
Veerapuram Varadhan 0cff3be341 New: IntervalDescriptor implementation file
Implements OCI calls that are required for basic OciInterval types handling

svn path=/trunk/mcs/; revision=130489
2009-03-29 03:48:15 +00:00
Veerapuram Varadhan d5d4cf26ee INTERVAL_DAY_TO_SECOND and INTERVAL_YEAR_TO_MONTH implementations
svn path=/trunk/mcs/; revision=130488
2009-03-29 03:47:56 +00:00
Veerapuram Varadhan 256eaefdb3 OciInterval implementation
svn path=/trunk/mcs/; revision=130487
2009-03-29 03:47:35 +00:00
Daniel Morgan a5de0a51df 2009-03-20 Daniel Morgan <[email protected]>
* OracleCommand.cs: fix suggested by Thracx <[email protected]>
	where the parameter was always item zero for an out parameter.

svn path=/trunk/mcs/; revision=129864
2009-03-20 11:11:57 +00:00
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