Commit Graph
13 Commits
Author SHA1 Message Date
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
Daniel Morgan c831770264 2002-11-14 Daniel Morgan <[email protected]>
* System.Data/DataColumnPropertyDescriptor.cs
	* System.Data/DataRowView.cs
	* System.Data/DataView.cs
	* System.Data.Common/DbDataRecord.cs: a little bit more
	implementation for data binding purposes

	* Test/PostgresTest.cs
	* Test/TestSqlDataAdapter.cs
	* Test/TestSqlException.cs
	* TestSqlParameters.cs: fixed test for PostgreSQL's new home
	at Mono.Data.PostgreSqlClient

svn path=/trunk/mcs/; revision=8991
2002-11-14 23:27:34 +00:00
Daniel Morgan b50724ef73 2002-10-16 Daniel Morgan <[email protected]>
* PostresTest.cs: modified to
	use the new namepace and assembly for PostgreSQL
	provider which is Mono.Data.PostgreSqlClient

svn path=/trunk/mcs/; revision=8322
2002-10-16 19:52:52 +00:00
Daniel Morgan da59dd4d7f 2002-05-26 Daniel Morgan <[email protected]>
* Test/SqlSharpCli.cs: added file
	My new toy.  SQL# is a command-line tool to enter
	SQL	commands and queries using Mono System.Data.
	It also serves as a test for Mono System.Data.

	* System.Data.SqlClient/SqlCommand.cs: modified
	- ExecuteNonQuery(), ExecuteScalar(), and ExecuteReader()
	should handle the results from SQL Commands and Queries.
	- Internal class SqlResult should not create schema Table
	for the result from a SQL Command.  Also, set the RecordsRetrieved
	property for SqlDataReader.
	- Closing the SqlDataReader should Close() the SqlConnection for
	a CommandBehavior.CloseConnection.
	- Set defaults for SqlResult

	* System.Data.SqlClient/SqlConnection.cs: modified -
	when SqlDataReader is Close()
	should Close() the SqlConnection for
	a CommandBehavior.CloseConnection.  Changed internal Property
	from OpenReader get/set to IsReaderOpen get and created
	internal methods OpenReader()/CloseReader() for SqlCommand to call.
	SqlConnection needs to be prevented from doing while SqlDataReader
	is being used.

	* System.Data.SqlClient/SqlDataReader.cs: modified -
	call SqlCommand's OpenReader() internal method.  get
	RecordsRetrieved from SqlResult.  set/reset default
	values for SqlDataReader.

	* Test/PostgresTest.cs
	* Test/TestExecuteScalar.cs
	* Test/TestSqlDataReader.cs: modified
	for the Execute...() methods in SqlCommand
	to test SQL Queries and Commands

	* Test/System.Data_test.build: modified
	exclude new file Test/SqlSharpCli.cs from
	test build

svn path=/trunk/mcs/; revision=4944
2002-05-26 07:26:52 +00:00
Daniel Morgan 133032ff33 2002-05-22 Daniel Morgan <[email protected]>
* System.Data/DataRow.cs: change suggested
	by tim: in Item indexer, do an EndEdit()

	* System.Data.SqlClient/SqlCommand.cs: more
	fixes to SqlResult.  After setting each item in
	the DataRow, do an AcceptChanges() to commit
	the changes in the DataRow.  For DataType, use a Type
	of System.String since System.Type nor System.Object
	seems to work.

	* Test/TestSqlDataReader.cs
	* Test/PostgresTest.cs: updated to to be on
	the way schema table is suppose to work

svn path=/trunk/mcs/; revision=4863
2002-05-22 17:59:12 +00:00
Daniel Morgan ec6e751eb5 2002-05-18 Daniel Morgan <[email protected]>
* System.Data.SqlClient/SqlCommand.cs: handle CommandTypes
	Text, TableDirect, and StoredProcedure

	* Test/PostgresTest.cs: changed call to version()
	stored procedure to use the CommandType of StoredProcedure

	* Test/TestSqlDataReader.cs: test all the CommandTypes

svn path=/trunk/mcs/; revision=4743
2002-05-18 15:17:15 +00:00
Daniel Morgan aafe0b2af2 2002-05-18 Daniel Morgan <[email protected]>
* System.Data.build: took out all excluded
	files except the ones in the Test directory
	because all files compile now.  It does not
	mean they all work or have implementations
	though.

	* System.Data/DataRelationCollection.cs
	* System.Data/DataTableRelationCollection.cs
	* System.Data/InternalDataCollectionBase.cs
	* System.Data.Common/DbDataPermission.cs
	* System.Data.SqlClient/SqlInfoMessageEventArgs.cs
	* System.Data.SqlClient/SqlClientPermission.cs
	* System.Data.SqlClient/SqlClientPermissionAttribute.cs: changes
	to get all System.Data* files to compile.

	* System.Data.SqlClient/SqlCommand.cs: started coding
	to prevent SqlConnection and SqlCommand from doing
	anyting while fetching data using SqlDataReader.  Also,
	started coding to undo this prevention once the
	SqlDataReader is closed.

	* System.Data.SqlClient/SqlConnection.cs: get database server
	version.  Started coding to prevent connection from
	doing anything while fetching data and undo once the reader
	is closed.  Include events SqlInfoMessage and StateChange.

	* System.Data.SqlClient/SqlDataReader.cs: start coding to
	prevent connection and command from doing anything while
	fetching data, and undo when closed.

	* Test/PostgresTest.cs: added test to get ServerVersion
	property from SqlConnection

svn path=/trunk/mcs/; revision=4742
2002-05-18 13:20:24 +00:00
Daniel Morgan 3ea6c41dd3 2002-05-11 Daniel Morgan <[email protected]>
* System.Data.build: added copy of System.Data.dll to Test directory
	for easy testing.  Also, added clean for it too.

	* System.Data.SqlClient/PostgresLibrary.cs: changed setting of boolean

svn path=/trunk/mcs/; revision=4533
2002-05-11 15:44:44 +00:00
Daniel Morgan 9f2f9dfac0 2002-05-11 Daniel Morgan <[email protected]>
* System.Data.build: added copy of System.Data.dll to Test directory
	for easy testing.  Also, added clean for it too.

	* System.Data.SqlClient/PostgresLibrary.cs: changed setting of boolean
	from PostgreSQL data type to .NET type.

	* System.Data.SqlClient/SqlDataReader.cs: beginnings
	handling of a NULL value from the database

	* Test/PostgresTest.cs: added tests for NULL values retrieved
	from the database

	* Test/ReadPostgresData.cs
	* Test/TestExecuteScalar.cs
	* Test/TestSqlDataReader.cs
	* Test/TestSqlException.cs
	* Test/TestSqlIsolationLevel.cs: updated tests to use databas user
	"postgres".  These tests may eventually be removed since they
	are not flexible.

svn path=/trunk/mcs/; revision=4529
2002-05-11 12:58:32 +00:00
Daniel Morgan 608ee73d25 2002-05-09 Daniel Morgan <[email protected]>
* System.Data.SqlClient/PostgresLibrary.cs: got
	PostgreSQL data types time, date, timestamp (DateTime like)
	mapped to .NET System.DateTime working based
	on ISO DateTime formatting "YYYY-MM-DD hh:mi:ss.ms"
	Also mapped pg type boolean to .net Boolean

	* SqlClient/SqlConnection.cs: run SQL command to set
	Date style to ISO

	* Test/PostgresTest.cs: added test for an UPDATE SQL command,
	added tests for aggregates min(), max(), sum(), count().  could
	not get avg() to work due to some formatting error; someone claimed
	that it was my locale settings.  added tests for SELECT of columns
	of type boolean, float, double, date, time, and timestamp.  They
	have not been fully tested, but its a start.

svn path=/trunk/mcs/; revision=4457
2002-05-09 19:59:29 +00:00
Daniel Morgan 4576467ca3 2002-05-06 Daniel Morgan <[email protected]>
* System.Data.SqlTypes.SqlInt32Test.cs: missing
	declaration for SqlInt32 z which was a test build blocker

	* PostgresTest.cs: got rid of warning about missing e

	* Test/PostgresTest.cs: exclude PostgresTest.cs
	from test build

svn path=/trunk/mcs/; revision=4330
2002-05-06 04:52:33 +00:00
Daniel Morgan c3458f3b46 2002-05-05 Daniel Morgan <[email protected]>
* Test/PostgresTest.cs: modified to run completely.  There
	are many TODOs in System.Data, so not all data types are
	included in the SELECT SQL query.  Also, I made it to where
	it would connect
	using "host=localhost;dbname=test;user=postgres"
	instead of my userid and password.  When more types are included,
	update this test.

svn path=/trunk/mcs/; revision=4320
2002-05-05 22:35:07 +00:00
Daniel Morgan 8634321c6a 2002-05-05 Daniel Morgan <[email protected]>
* Test/PostgresTest.cs: added - ported
	libgda postgres-test.c originally by
	Gonzalo Paniagua Javier <[email protected]>
	to C#.

svn path=/trunk/mcs/; revision=4305
2002-05-05 11:47:26 +00:00