Commit Graph
257 Commits
Author SHA1 Message Date
Neale Ferguson 3f740f3d94 Fixes 19752 -
Users have been complaining about strange errors arising when using the OracleClient classes.
I have tracked it down to the OciDefineHandle and OciDefineByPos calls, and OracleParameter
handling of amanged objects by unmanaged code. Currently two of the parameters passed to the
above OCI  call are short variables. They are passed as "ref" fields as Oracle uses their
address to put size and indicator data once the data is fetched. However, being defined as
short means that they are eligible for being moved during garbage collection. Thus if that
field is moved between the OciDefineByPos call and the fetch of the data then what Oracle is
pointing to may no longer be variable. I'm thinking it may be better to define these fields as
IntPtr and allocate them and retrieve their values via Marshal.ReadInt16. As for OracleParameter,
it uses a managed object "indicator" that is also used in a similar way. This reference is replaced
by a IntPtr and a get/set method to access the contents.
2014-09-12 11:25:57 -04: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 c685b21764 [Cleanup] Removed files that imported Java namespaces
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
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
Alexander Köplinger 4165d879cd [Cleanup] Removed net_1_1_java from Makefiles
It was once part of a special Java target profile, but this is no longer used today.
2014-08-07 23:01:52 +02:00
Alexander Köplinger 31daf92e72 [Cleanup] Removed net_1_1_java*.sources files
They were once part of a special Java target profile, but this is no longer used today.
2014-08-07 23:01:52 +02:00
Alexander Köplinger 0450000dc4 [Cleanup] Removed a bunch of superfluous .csproj and .sln files
Most of these files weren't updated in the last >5 years and serve no purpose today, so they only clutter the repository.
2014-08-06 18:02:30 +02:00
Miguel de Icaza 60fa2525fb [build] the csproj files can now do a full class libraries build 2014-05-25 00:47:09 -04:00
Miguel de Icaza 3599b97b57 [build] Fresh new csproj files based on the updated build system. 2014-05-23 17:15:53 -04:00
Miguel de Icaza d79280674b Refreshed the CSProj files to use the new output build directory 2014-04-18 18:15:35 -04:00
Andrés G. Aragoneses 0eb40ad2da Fix very sticky typo in numerous places 2014-01-19 17:51:24 +01:00
Neale Ferguson d6a8d9880e Remove debug message 2013-10-10 14:37:43 -04:00
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
Marek Safar b888cf5f04 Update csproj files 2013-07-02 13:45:15 +02: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
Marek Safar cf650fb3fb Update 4.5 bcl solution files 2013-02-21 17:25:06 +01:00
Marek Safar 78318771d5 Update csproj files 2013-02-07 16:34:23 +01:00
Marek Safar 2d2796f07b Fix System.Core reference in VS projects 2012-06-26 13:26:56 +01:00
Marek Safar efd488911c Disable failing tests 2012-06-14 16:09:33 +01:00
Miguel de Icaza ae0feab435 Removal of NET_1_1 defines and some NET_2_0; Both defines are true these days in Mono, no versions prior to 2.0 are supported 2012-06-01 18:04:24 -04:00
Marek Safar 8074a7d31e Update csproj files 2012-04-05 15:46:25 +01:00
Marek Safar 76dac96b4b Cleanup some assembly attributes 2012-02-17 12:37:25 +00:00
Marek Safar 88fde5a568 Add VS project files for test project 2012-02-10 14:56:23 +00:00
Marek Safar 91d40d754d Update class library csproj files 2012-02-09 11:25:18 +00:00
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