* 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
* 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
* 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
* 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
* 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
* 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/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
* 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
* 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
* 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
- 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
* 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/OracleDataReader.cs: use ICovertible
to convert data types for GetDateTime, GetInt64, GetInt32, GetFloat,
GetDouble, GetDecimal. Fixes bug #53391.
* Test/TestOracleClient.cs: updated OracleClient tests for
these functions
svn path=/trunk/mcs/; revision=40963
* 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
* System.Data.OracleClient/OracleDataReader.cs: add LONG
to GetOracleValue to return an OracleString
* System.Data.OracleClient.Oci/OciDefineHandle.cs: add
LONG VARCHAR support. See DefineLong ()
for LAMESPEC about OCI
* Test/TestOracleClient.cs: add LONG to Oracle tests
svn path=/trunk/mcs/; revision=40229
* Assembly/AssemblyInfo.cs: updated copyright
* System.Data.OracleClient/OracleCommand.cs: add
connection string parameter "Server" and
removed "Database" to match .NET
* System.Data.OracleClient/OracleLob.cs: handle
BLOBs and CLOBs that are not null, but are empty
* System.Data.OracleClient/OracleCommand.cs: started
implementing Clone and ExecuteOracleScalar
* System.Data.OracleClient/OracleDataReader.cs: modified
- ms.net has GetDataTypeName return data types upper case
- implement GetFieldType
- implement GetOracleValues, GetOracleValue,
GetOracleDateTime, GetOracleNumber, GetOracleString
- modified GetOracleLob based on internal change
- fix GetSchemaTable to return the correct "DataType"
instead of always being System.String
- GetValue should return Blobs as a byte array and Clobs
as a string
- Test/TestOracleClient.cs: updated Mono Oracle Tests
- System.Data.OracleClient.Oci/OciCalls.cs: update
DllImports for data type, actual data size, and iters
* System.Data.OracleClient.Oci/OciDefineHandle.cs: modified
- added properties for precision and field type
- if ROWID is specified in a SELECT statement, handle
the data type of OciDataType.RowIdDescriptor by just
treating it as 10 byte string
- do not free a HGlobal handle for a LOB since they do
not get a HGlobal created for them
- GetValue should return an OracleLob for BLOBs and CLOBs
* System.Data.OracleClient.Oci/OciDataType.cs: make enum
OciDataType to be uint
* System.Data.OracleClient.Oci/OciParameterDescriptor.cs:
- add function to convert Oracle's data type name
to .net data type name
* System.Data.OracleClient.Oci/OciRowIdDescriptor.cs: flush
svn path=/trunk/mcs/; revision=38419
* System.Data.OracleClient/OracleConnection.cs:
Rollback transactions when connection closes if they
are open.
* System.Data.OracleClient/OracleDataReader.cs:
Implement GetOracleLob ()
* System.Data.OracleClient/OracleLob.cs:
Implement some of the details, like Read/Write/Seek
* System.Data.OracleClient.Oci/OciBindHandle.cs:
Remove debug message.
* System.Data.OracleClient.Oci/OciDefineHandle.cs:
Add LOB support.
* System.Data.OracleClient.Oci/OciEnvironmentHandle.cs:
Minor formatting changes
* System.Data.OracleClient.Oci/OciLobLocator.cs:
Huge amounts of code to make it work. Lots of ugly
OCI P/Invoke code.
* Test/TestOracleClient.cs:
Improve the LOBTest.
svn path=/trunk/mcs/; revision=12021
* System.Data.OracleClient/OracleDateTime.cs:
* System.Data.OracleClient/OracleInfoMessageEventArgs.cs:
* System.Data.OracleClient/OracleInfoMessageEventHandler.cs:
* System.Data.OracleClient/OracleMonthSpan.cs:
* System.Data.OracleClient/OraclePermission.cs:
* System.Data.OracleClient/OraclePermissionAttribute.cs:
* System.Data.OracleClient/OracleTimeSpan.cs:
* System.Data.OracleClient.Oci/IOciDescriptorHandle.cs:
* System.Data.OracleClient.Oci/OciDescriptorHandle.cs:
* System.Data.OracleClient.Oci/OciLobLocator.cs:
New classes added. Some based on .NET docs,
others (internal) based on getting some LOB
support (doesn't actually work yet).
* list:
Add new files
* System.Data.OracleClient/OracleBFile.cs:
* System.Data.OracleClient/OracleBinary.cs:
* System.Data.OracleClient/OracleLob.cs:
* System.Data.OracleClient/OracleNumber.cs:
* System.Data.OracleClient/OracleString.cs:
Change handling of NULL object based on new
discovery.
* System.Data.OracleClient/OracleCommand.cs:
* System.Data.OracleClient/OracleDataReader.cs:
Typo fix.
* System.Data.OracleClient.Oci/OciDefineHandle.cs:
* System.Data.OracleClient.Oci/OciEnvironmentHandle.cs:
Add some code to handle LOBs. Still more to
come.
* Test/TestOracleClient.cs:
New test for LOB added.
svn path=/trunk/mcs/; revision=11828
* 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
* System.Data.OracleClient.Oci/OciStatementHandle.cs
* System.Data.OracleClient.Oci/OciColumnInfo.cs
* System.Data.OracleClient/OciGlue.cs
* System.Data.OracleClient/OracleDataReader.cs: fixes
to display character data in SQL# command-line
and GTK# versions
* Test/TestOracleClient.cs: updated test to
include reading data via the OracleDataReader
* System.Data.OracleClient/OracleConnection.cs: removed
debug code
svn path=/trunk/mcs/; revision=11614
* System.Data.OracleClient
* System.Data.OracleClient/System.Data.OracleClient
added directory to mcs/class for the Oracle 8i
data provider
* System.Data.OracleClient/OciGlue.cs
* System.Data.OracleClient/OracleConnection.cs
* System.Data.OracleClient/OracleCommand.cs: added
files for the System.Data.OracleClient.dll assembly
* System.Data.OracleClient/ociglue.c
* System.Data.OracleClient/ociglue.h: added
files for thte System.Data.OracleClient.gluelib.dll
unmanaged c shared library
* System.Data.OracleClient/TestOracleClient.cs: test
the OracleClient data provider for Oracle 8i database
* ChangeLog: added file
* README.TXT: added file
* System.Data.OracleClient/OciGlueLib_MSVC_win32.make:
added makefile for ociglue shared lib on Win32 platform
and compiler Visual C++ 7.0
* System.Data.OracleClient/OciGlueLib_BCC_win32.make:
added makefile for ociglue shared lib on Win32 platform
and compiler Borland C++ 5.5
* MonoOracleClient.csproj
* MonoOracleClient.csproj.usr
* MonoOracleClient.sln
* MonoOracleClient.suo: added Visual Studio 1.0
project files to build the
assembly System.Data.OracleClient.dll
svn path=/trunk/mcs/; revision=9394