2002-08-05 Rodrigo Moya <rodrigo@ximian.com>
[mono.git] / mcs / class / System.Data / System.Data.OleDb / TestOleDb.cs
1 using System;
2 using System.Data.OleDb;
3
4 namespace System.Data.OleDb.Test
5 {
6         public class TestOleDb
7         {
8                 private OleDbConnection m_cnc;
9                 
10                 private TestOleDb ()
11                 {
12                         m_cnc = new OleDbConnection ("PostgreSQL");
13                         m_cnc.Open ();
14                 }
15
16                 void TestDataReader ()
17                 {
18                         string sql = "SELECT * FROM pg_tables";
19                         OleDbCommand cmd = new OleDbCommand (sql, m_cnc);
20                 }
21
22                 static void Main (string[] args)
23                 {
24                         try {
25                                 TestOleDb test = new TestOleDb ();
26                                 test.TestDataReader ();
27                         } catch (Exception e) {
28                                 Console.Write ("An error has occured");
29                         }
30                 }
31         }
32 }