* 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
* 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
** Fixes#322695
* OracleParameter.cs: Use oracle returned rsize instead of
MAXBYTECOUNT. Reduces the size of allocated buffer.
svn path=/trunk/mcs/; revision=145054
** 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
** 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
* 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
* 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
* 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
* 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
* System.Data.OracleClient/OracleParameter.cs: fixes
for OracleType.Blob parameters. Also some case statements
not properly tabbed.
svn path=/trunk/mcs/; revision=113121
* 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
* 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
* 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
* 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
* 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
* 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
* 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
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
API signature warning for Dispose () method.
* OracleParameterCollection.cs: Removed explicit interface implemenation
of IList.IsFixedSize, IList.IsReadOnbly, IList.IsSynchronized and
IList.SyncRoot. Fixes API signature mismatches.
* OracleBFile.cs: Explicit implemenat IDisposable interface. Fixed
API signature warning for Dispose () method.
* OracleCommand.cs: Fixed line endings.
* OracleConnection.cs: Removed destructor, as the destructor in
System.ComponentModel.Component already calls the Dispose (bool) method.
* OracleDataReader.cs: Fixed line endings.
* OracleDateTime.cs: Fixed line endings.
* OracleParameter.cs: Fixed line endings.
svn path=/trunk/mcs/; revision=61297
* System.Data.OracleClient/OracleParameter.cs: free
unmanaged resources after update of values
2005-12-13 Daniel Morgan <[email protected]>
* System.Data.OracleClient.Oci/OciErrorHandle.cs patch
from "Hubert FONGARNAND" <[email protected]>
- fix error handling for non-English locales. Bug# 76623.
2005-12-13 Daniel Morgan <[email protected]>
* System.Data.OracleClient/OracleParameter.cs: patch
from "Hubert FONGARNAND" <[email protected]>
- fix Timestamp when filling a DataSet. Bug# 76437.
2005-12-13 Daniel Morgan <[email protected]>
* System.Data.OracleClient/OracleParameter.cs: patch
from "Hubert FONGARNAND" <[email protected]>
- problems with OracleClob as input parameters
(when the input parameter is an OracleString,
mono crashes with a invalidcastexception)
- problems with OracleDateTime.Null, OracleString.Null
as input parameters (it works with DBNull.Value,
but it fails with those parameters)
svn path=/trunk/mcs/; revision=54271
* System.Data.OracleClient/OracleCommandBuilder.cs: update
based on changes Suresh did to OdbcCommandBuilder, SqlCommandBuilder,
and DbDataAdapter
* System.Data.OracleClient/OracleParameter.cs
* System.Data.OracleClient.Oci/OciHandle.cs
* System.Data.OracleClient.Oci/OciCalls.cs
* System.Data.OracleClient.Oci/OciDataType.cs
* System.Data.OracleClient.Oci/OciParameterDescriptor.cs
* System.Data.OracleClient.Oci/OciStatementHandle.cs
* System.Data.OracleClient.Oci/OciDefineHandle.cs: with help
from Hubert FONGARNAND <[email protected]>
implement TIMESTAMP support via OciDateTime descriptor
* System.Data.OracleClient.dll.sources: add
OciDateTimeDescriptor.cs to build
* System.Data.OracleClient.Oci/OciDateTimeDescriptor.cs: add new
file to support Oracle TIMESTAMP using OciDateTime descriptor
svn path=/trunk/mcs/; revision=48254
* System.Data.OracleClient/OracleParameter.cs: apply
patch from
Hubert FONGARNAND <[email protected]>
to tranmit an input paramter that is a date in a binary format
instead of a character format to avoid culture
dependent problems
svn path=/trunk/mcs/; revision=47677
* 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
* System.Data.OracleClient/OracleParameter.cs: modified
- fix for input parameters for strings, dates,
CLOBs, and other types
to use OCIUnicodeToCharSet to convert
the string to bytes that are in Oracle's character set
- fix for input parameters for BLOBs to
use OciDataType.LongRaw instead of Long
- fix for Raw data type
thanks to [email protected] (Curtis) which fixes bug #72416
and also fix "System.DataType"
to "System.DateTime" in InferOracleType
* Test/TestOracleClient.cs: handle byte[] from OracleDataReader.GetValue()
svn path=/trunk/mcs/; revision=41230
* System.Data.OracleClient/OracleDateTime.cs: modified -
added functions for converting the date format strings between
OracleDateTime and DateTime based on
the NLS_DATE_FORMAT on the Oracle server
* System.Data.OracleClient/OracleConnection.cs: implement
internal function GetNlsInfo to get NLS info from the Oracle server
for the session or environment. Also, implemented function
GetSessionNlsDateFormat to get Oracle's NLS_DATE_FORMAT string
* System.Data.OracleClient/OracleParameter.cs: for input parameters,
fixed setting the parameter value to DBNull.Value and fixed the
setting of a DateTime or OracleDateTime. Tried to fix CLOBs/BLOBs, but
it is still a TODO.
* Test/TestOracleClient.cs: updated the parameters test
* System.Data.OracleClient.Oci/OciHandle.cs: implement
internal function SetAttributeString
* System.Data.OracleClient.Oci/OciCalls.cs: add DllImport
OCIBindByNameBytes so byte array can be passed instead of IntPtr
for the value, add DllImport OCIDateTimeFromText,
and added DllImport for OCINlsGetInfo to get NLS info,
such as, NLS_DATE_FORMAT
* System.Data.OracleClient.Oci/OciAttributeType.cs: added
attribute for date format (not used)
* System.Data.OracleClient.Oci/OciNlsServiceType.cs: added new file
for an enum to hold NLS Service types which is to be used with GetNlsInfo()
in OracleConnection
* System.Data.OracleClient.dll.sources: added OciNlsServiceType.cs to
the build
svn path=/trunk/mcs/; revision=40926
2004-01-09 Joerg Rosenkranz <[email protected]>
* System.Data.OracleClient.Oci/OciCalls.cs:
Added. It contains all external OCI calls which are
removed from all other files.
* System.Data.OracleClient/OciGlue.cs:
Fix for #52699 (OCI not thread safe).
* System.Data.OracleClient.Oci/OciHandle.cs:
Introduced special handling for Bind, Define and
Environment handles in FreeHandle. Revised the handling for
other types. Minor change in Dispose.
Replaced OCI calls.
* System.Data.OracleClient.Oci/OciDescriptorHandle.cs:
Special handling for Parameter handles in FreeHandle.
Replaced OCI calls.
* System.Data.OracleClient.Oci/OciDefineHandle.cs:
Character types are converted using the DefaultEncoding.
Replaced OCI calls.
* System.Data.OracleClient/OracleCommand.cs:
Dispose created OciStatementHandles.
* System.Data.OracleClient/OracleDataReader.cs:
Dispose used OciStatementHandle.
* System.Data.OracleClient/OracleTransaction.cs:
Dispose transaction handle.
* System.Data.OracleClient.Oci/OciStatementHandle.cs:
OCI_INVALID_HANDLE results in exception "Invalid handle."
Replaced OCI calls.
* System.Data.OracleClient.Oci/OciTransactionHandle.cs:
Introduced DetachFromServiceContext which is called in Commit
and Rollback (Fix for #52702).
* System.Data.OracleClient/OracleParameter.cs:
* System.Data.OracleClient.Oci/OciEnvironmentHandle.cs:
* System.Data.OracleClient.Oci/OciErrorHandle.cs:
* System.Data.OracleClient.Oci/OciLobLocator.cs:
* System.Data.OracleClient.Oci/OciServerHandle.cs:
* System.Data.OracleClient.Oci/OciServiceHandle.cs:
* System.Data.OracleClient.Oci/OciSessionHandle.cs:
Replaced OCI calls.
svn path=/trunk/mcs/; revision=21877
* System.Data.OracleClient.Oci/IOciDescriptorHandle.cs:
* System.Data.OracleClient.Oci/IOciHandle.cs:
* System.Data.OracleClient.Oci/OciDescriptorType.cs:
Removed. These are no longer used.
* System.Data.OracleClient.Oci/OciParameterDescriptor.cs:
Add new class
* list:
Add System.Data.OracleClient.Oci/OciParameterDescriptor.cs
Rem System.Data.OracleClient.Oci/IOciDescriptorHandle.cs
Rem System.Data.OracleClient.Oci/IOciHandle.cs
Rem System.Data.OracleClient.Oci/OciDescriptorType.cs
* System.Data.OracleClient/OciGlue.cs:
Move the OCIAttrGet* methods into OciHandle
* System.Data.OracleClient/OracleDataReader.cs:
* System.Data.OracleClient/OracleParameter.cs:
Change the way that columns are bound and described
* System.Data.OracleClient.Oci/OciBindHandle.cs:
* System.Data.OracleClient.Oci/OciDefineHandle.cs:
* System.Data.OracleClient.Oci/OciDescriptorHandle.cs:
* System.Data.OracleClient.Oci/OciEnvironmentHandle.cs:
* System.Data.OracleClient.Oci/OciErrorHandle.cs:
* System.Data.OracleClient.Oci/OciHandle.cs:
* System.Data.OracleClient.Oci/OciLobLocator.cs:
* System.Data.OracleClient.Oci/OciServerHandle.cs:
* System.Data.OracleClient.Oci/OciServiceHandle.cs:
* System.Data.OracleClient.Oci/OciSessionHandle.cs:
* System.Data.OracleClient.Oci/OciStatementHandle.cs:
* System.Data.OracleClient.Oci/OciTransactionHandle.cs:
All handles now derive from OciHandle, and these classes
have been rewritten as such. Also attempted to implement
the Dispose () methods for these classes.
* System.Data.OracleClient.Oci/OciHandleType.cs:
Add descriptor types into here because handles and
descriptors are used in many of the same OCI functions.
svn path=/trunk/mcs/; revision=12176
* System.Data.OracleClient/OciBindHandle.cs:
* list:
Add new class
* System.Data.OracleClient/OracleCommand.cs:
Add transaction logic for rollback/commit,
attaching to oracle service context, and a
couple of test cases.
Add Parameter handling
* System.Data.OracleClient/OracleDataReader.cs:
Change GetValue call
* System.Data.OracleClient/OracleParameter.cs:
Make this work
* System.Data.OracleClient/OracleType.cs:
Add values to enum
* System.Data.OracleClient.Oci/OciDefineHandle.cs:
Add GetValue call which is used by data reader
* System.Data.OracleClient.Oci/OciStatementHandle.cs:
Add parameter logic
* Test/TestOracleClient.cs:
Add some new test cases.
svn path=/trunk/mcs/; revision=11709