Commit Graph
206 Commits
Author SHA1 Message Date
Konstantin Triger 27300d88bc Added Oracle specific stubs
svn path=/trunk/mcs/; revision=57314
2006-02-26 16:59:28 +00:00
Konstantin Triger 41a02e3213 adding System.Data.OracleClient.jvm/Regex.cs
svn path=/trunk/mcs/; revision=57308
2006-02-26 14:30:46 +00:00
Konstantin Triger d11272b775 Beta OracleClient implementation
svn path=/trunk/mcs/; revision=57306
2006-02-26 14:09:12 +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 1a88c79e4c follow JDBC provider generic adapter mechanism
svn path=/trunk/mcs/; revision=57051
2006-02-19 18:05:18 +00:00
Konstantin Triger e9a5df6c6f Added Mainsoft OracleClient testsuite
svn path=/trunk/mcs/; revision=56701
2006-02-09 14:29:35 +00:00
Konstantin Triger 199a652481 refactoring access modifiers
svn path=/trunk/mcs/; revision=56328
2006-01-31 12:04:20 +00:00
Konstantin Triger 48333b59bd add System.Data.OracleClient.jvm/ExceptionHelper.cs
svn path=/trunk/mcs/; revision=56327
2006-01-31 12:03:32 +00:00
Ben Maurer 86709ce184 no +x
svn path=/trunk/mcs/; revision=56238
2006-01-30 06:08:52 +00:00
Konstantin Triger f025af4ffc TARGET_JVM: initial OracleClient implementation
svn path=/trunk/mcs/; revision=56225
2006-01-29 13:47:15 +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 2e6921b352 2006-01-01 Daniel Morgan <[email protected]>
* System.Data.OracleClient/OracleConnection.cs: implement
	support for connection parameter PERSIST SECURITY INFO and
	correct what Clone() does

svn path=/trunk/mcs/; revision=54950
2006-01-02 04:20:45 +00:00
Daniel Morgan f0565901b2 2005-12-20 Daniel Morgan <[email protected]>
* System.Data.OracleClient/OracleConnectionPoolManager.cs
	* System.Data.OracleClient/OracleConnectionPool.cs
	* System.Data.OracleClient/OracleConnection.cs
	* System.Data.OracleClient/OciGlue.cs
	* System.Data.OracleClient.Oci/OciEnvironmentHandle.cs
	* System.Data.OracleClient.Oci/OciErrorHandle.cs
	* System.Data.OracleClient.Oci/OciServiceHandle.cs
	* System.Data.OracleClient.Oci/OciSessionHandle.cs: modified
		- support Integrated Security which is external authentication
		- dispose of OCI handles properly to prevent SEGSIGV during finalization
		at application exit

svn path=/trunk/mcs/; revision=54672
2005-12-21 03:44:38 +00:00
Daniel Morgan 19e89e475e 2005-12-19 Daniel Morgan <[email protected]>
* System.Data.OracleClient/OracleConnectionPoolManager.cs
	* System.Data.OracleClient/OracleConnectionPool.cs
	* System.Data.OracleClient/OracleConnection.cs: for connection pooling, need to
	dispose of any connection pools properly otherwise a SEGSIGV may happen trying
	to detach from the server during finalization at exit of app
	
	* System.Data.OracleClient/OracleDataReader.cs: need to make sure statement and command
	exists during dispose because they are set to null when closed

svn path=/trunk/mcs/; revision=54588
2005-12-19 04:57:55 +00:00
Daniel Morgan 919c473487 2005-12-13 Daniel Morgan <[email protected]>
* 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
2005-12-13 05:06:34 +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
Senganal T 453892cbfb 2005-11-21 Senganal T <[email protected]>
* OracleCommandBuilder.cs :
		- ApplyParameterInfo - modified the args list
		- GetParameterName (string) - added
	Changes for ado.net 2.0 api compatibility 


svn path=/trunk/mcs/; revision=53306
2005-11-21 14:44:27 +00:00
Gert Driesen 6c0159f843 * OracleException.cs: Pass message to base ctor, thereby avoiding
need to override Message property (and fixing API mismatch). Fixed
serialization by also adding code to si.
* OracleCommandBuilder.cs: Removed usage of DataSysDescription to
fix API mismatches.

svn path=/trunk/mcs/; revision=51762
2005-10-16 08:49:57 +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
Kornél Pál 431f1b3485 Moved assembly version and assembly reference constants to a common Consts.cs file. Updated 2.0.3600.0 assembly versions to 2.0.0.0. Updated some old beta version numbers to recent ones. Fixed hard coded assembly references to use constants with the appropriate version number.
svn path=/trunk/mcs/; revision=48519
2005-08-18 19:36:17 +00:00
Daniel Morgan 8970063146 2005-08-10 Daniel Morgan <[email protected]>
* 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
2005-08-11 02:06:06 +00:00
Daniel Morgan 9b7d2979c6 2005-07-25 Daniel Morgan <[email protected]>
* 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
2005-07-26 03:37:18 +00:00
Daniel Morgan ceee5da666 2005-07-17 Daniel Morgan <[email protected]>
* System.Data.OracleClient/OracleDataReader.cs:
	handle Owner (BaseSchemaName) correctly when
	looking up KeyInfo on a table

svn path=/trunk/mcs/; revision=47373
2005-07-18 07:00:54 +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 975a3816f2 2005-07-17 Daniel Morgan <[email protected]>
* System.Data.OracleClient/OracleCommandBuilder.cs:
	fix build for NET_2_0 profile

svn path=/trunk/mcs/; revision=47370
2005-07-17 22:00:48 +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 b27c8e1534 remove .cvsignore from everywhere, as it is useless on svn
svn path=/trunk/mcs/; revision=46564
2005-06-27 15:55:58 +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
Ben Maurer 47876a3539 more copy and paste reuse going away
svn path=/trunk/mcs/; revision=45988
2005-06-14 19:21:45 +00:00
Ben Maurer 9371fbf8ba Remove copy and paste reuse for Locale.cs.
First step in attempting to do an actual framework here.


svn path=/trunk/mcs/; revision=45986
2005-06-14 18:30:41 +00:00
Daniel Morgan b6813b98b1 2005-03-06 Daniel Morgan <[email protected]>
- Applied patch by Hubert FONGARNAND 
	  <[email protected]>

svn path=/trunk/mcs/; revision=42620
2005-04-07 02:01:25 +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
Daniel Morgan 571c39a720 2005-02-25 Daniel Morgan <[email protected]>
* 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
2005-02-26 03:44:49 +00:00
Sureshkumar T 76e3162586 2005-02-21 Sureshkumar T <[email protected]>
* OracleCommand.cs: set behavior for execute reader.
	fixes bug #72607.


svn path=/trunk/mcs/; revision=40970
2005-02-21 08:05:48 +00:00
Daniel Morgan 61e016b7b8 2005-02-20 Daniel Morgan <[email protected]>
* 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
2005-02-21 00:58:51 +00:00
Daniel Morgan 2904b68cce 2005-02-20 Daniel Morgan <[email protected]>
* System.Data.OracleClient/OracleCommand.cs: fix bug #72407
	ExecuteNonQuery with a SELECT SQL statement caused an error

svn path=/trunk/mcs/; revision=40927
2005-02-20 12:04:57 +00:00
Daniel Morgan be424fd23b 2005-02-20 Daniel Morgan <[email protected]>
* 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
2005-02-20 10:52:16 +00:00
Sureshkumar T f7f5b9cefe 2005-02-15 Sureshkumar T <[email protected]>
* OracleDataReader.cs : GetBytes: return the length of the data if
	output buffer is null. if not, copy the values to buffer and
	return the bytes actually read.

	fixes bug #72472.


svn path=/trunk/mcs/; revision=40683
2005-02-15 10:15:43 +00:00
Daniel Morgan ef125f112a 2005-02-07 Daniel Morgan <[email protected]>
* 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
2005-02-07 04:58:51 +00:00
Daniel Morgan bf27550aca 2005-01-16 Daniel Morgan <[email protected]>
* ChangeLog: added file for oracle tests
	
	* testblob.cs: test loading a binary file into
	an Oracle BLOB column and then reading a BLOB column
	to a new binary file
	
	* testclob.cs: test loading a text file into
	an Oracle CLOB column and then reading a CLOB column
	to a new text file

svn path=/trunk/mcs/; revision=39001
2005-01-17 03:28:53 +00:00
Daniel Morgan d3c298e5e0 2005-01-09 Daniel Morgan <[email protected]>
* System.Data.OracleClient/OracleCommand.cs: set Command
	property on OciStatementHandle
	
	* System.Data.OracleClient/OracleConnection.cs: implement
	properties ServerVersion and DataSource, partially
	implement method ICloneable Clone, implement
	connection StateChange and InfoMessage events
	
	* System.Data.OracleClient/OciGlue.cs: add internal properties
	for OciSessionHandle and OciServerHandle
	
	* System.Data.OracleClient/OracleInfoMessageEventArgs.cs:
	implement
	
	* Test/TestOracleClient.cs: add new tests
	
	* System.Data.OracleClient.Oci/OciStatementHandle.cs: 
	- add property for OracleCommand
	- patch from Joost Evertse <[email protected]>
	  for handling OCI_SUCCES_WITH_INFO during Fetch which
	  indicates a Warning info message
	
	* System.Data.OracleClient.Oci/OciCalls.cs: added OCI call
	OCIServerVersion
	
	* System.Data.OracleClient.Oci/OciDefineHandle.cs: flush

svn path=/trunk/mcs/; revision=38585
2005-01-10 03:35:25 +00:00
Daniel Morgan bd13a44741 2005-01-06 Daniel Morgan <[email protected]>
* 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
2005-01-06 07:27:41 +00:00
Daniel Morgan 088ec03e89 2004-12-19 Daniel Morgan <[email protected]>
* OracleCommand.cs: ExecuteReader needs to be able 
	to handle non queries too

svn path=/trunk/mcs/; revision=37932
2004-12-19 11:21:36 +00:00
Marek Safar 3d1d13bb9b removed unused variables
svn path=/trunk/mcs/; revision=36557
2004-11-25 16:16:01 +00:00
Sebastien Pouliot 8b45ac3620 2004-09-14 Sebastien Pouliot <[email protected]>
* Makefile: Activate unit tests.
	* System.Data.OracleClient_test.dll.sources: New. Sources for unit
	tests.

svn path=/trunk/mcs/; revision=33914
2004-09-15 00:02:35 +00:00
Sebastien Pouliot f4d4490b65 2004-09-14 Sebastien Pouliot <[email protected]>
* ChangeLog: New.
	* OraclePermission.cs: Adapted to work for both Fx 1.1 and 2.0. Fx 1.1
	version isn't complete (as anyway it requires FullTrust on MS
	implementation) but DO NOT throw exceptions (for the security engine).
	* OraclePermissionAttribute.cs: Implemented CreatePermission. Adapted
	to work for both Fx 1.1 and 2.0.

svn path=/trunk/mcs/; revision=33913
2004-09-15 00:00:22 +00:00