[pgsqlclient-checkins] pgsqlclient_10/PostgreSql.Data.PgSqlClient.UnitTests/source PgDataAdapterTest
Status: Inactive
Brought to you by:
carlosga_fb
From: <car...@us...> - 2003-10-09 11:46:51
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient.UnitTests/source In directory sc8-pr-cvs1:/tmp/cvs-serv23928 Modified Files: PgDataAdapterTest.cs PgDataReaderTest.cs Log Message: Updated tests Index: PgDataAdapterTest.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient.UnitTests/source/PgDataAdapterTest.cs,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** PgDataAdapterTest.cs 2 Aug 2003 19:43:03 -0000 1.1.1.1 --- PgDataAdapterTest.cs 9 Oct 2003 11:46:47 -0000 1.2 *************** *** 93,97 **** { PgTransaction transaction = Connection.BeginTransaction(); ! PgCommand command = new PgCommand("SELECT * FROM public.test_table", Connection); PgDataAdapter adapter = new PgDataAdapter(command); --- 93,97 ---- { PgTransaction transaction = Connection.BeginTransaction(); ! PgCommand command = new PgCommand("SELECT * FROM public.test_table", Connection, transaction); PgDataAdapter adapter = new PgDataAdapter(command); Index: PgDataReaderTest.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient.UnitTests/source/PgDataReaderTest.cs,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** PgDataReaderTest.cs 2 Aug 2003 19:43:03 -0000 1.1.1.1 --- PgDataReaderTest.cs 9 Oct 2003 11:46:47 -0000 1.2 *************** *** 200,208 **** } [Test] - [Ignore("Not implemented")] public void NextResultTest() { ! } } } --- 200,246 ---- } + [Test] public void NextResultTest() { ! string querys = ! "select * from public.test_table order by int4_field asc;" + ! "select * from public.test_table order by int4_field desc;"; ! ! PgCommand command = new PgCommand(querys, Connection); ! ! PgDataReader reader = command.ExecuteReader(); ! ! Console.WriteLine(); ! Console.WriteLine("DataReader - NextResult Method - Test ( First Result )"); ! ! while (reader.Read()) ! { ! for(int i = 0; i < reader.FieldCount; i++) ! { ! Console.Write(reader.GetValue(i) + "\t"); ! } ! ! Console.WriteLine(); ! } ! ! if (reader.NextResult()) ! { ! Console.WriteLine("DataReader - NextResult Method - Test ( Second Result )"); ! ! while (reader.Read()) ! { ! for(int i = 0; i < reader.FieldCount; i++) ! { ! Console.Write(reader.GetValue(i) + "\t"); ! } ! ! Console.WriteLine(); ! } ! } ! ! reader.Close(); ! command.Dispose(); ! } } } |