X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FSystem.Data%2FTest%2FTestSqlDataReader.cs;h=5824eab013706506cc79a7a5eb52b03624d37429;hb=205a420dae07ec2676d7b352a4b1cb94e996e0da;hp=2964163797a1b52d17de21bfb906fa04cd98616d;hpb=f99ce750ee781a2584e849a0264300fa4d99aaaa;p=mono.git diff --git a/mcs/class/System.Data/Test/TestSqlDataReader.cs b/mcs/class/System.Data/Test/TestSqlDataReader.cs index 2964163797a..5824eab0137 100644 --- a/mcs/class/System.Data/Test/TestSqlDataReader.cs +++ b/mcs/class/System.Data/Test/TestSqlDataReader.cs @@ -11,29 +11,29 @@ // // (C) 2002 Daniel Morgan // - -// -// Copyright (C) 2004 Novell, Inc (http://www.novell.com) -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// + +// +// Copyright (C) 2004 Novell, Inc (http://www.novell.com) +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// using System; using System.Data; @@ -63,11 +63,11 @@ namespace Test.Mono.Data.PostgreSqlClient { Console.WriteLine("ExecuteReader..."); rdr = cmd.ExecuteReader(behavior); - if(rdr == null) { - - Console.WriteLine("IDataReader has a Null Reference."); - } - else { + if(rdr == null) { + + Console.WriteLine("IDataReader has a Null Reference."); + } + else { do { // get the DataTable that holds @@ -153,10 +153,10 @@ namespace Test.Mono.Data.PostgreSqlClient { [STAThread] static void Main(string[] args) { String connectionString = null; - connectionString = - "host=localhost;" + - "dbname=test;" + - "user=postgres"; + connectionString = + "host=localhost;" + + "dbname=test;" + + "user=postgres"; PgSqlConnection con; con = new PgSqlConnection(connectionString);