2004-01-06 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / web / postgresql
index 6e5bb4f24837d0bf512b7b01111e117f6a64e29e..cbe6c2f87d8127c786229f269c52effb5fafea71 100644 (file)
@@ -545,8 +545,8 @@ mono TestExample.exe
           "User ID=postgres;" +
           "Password=fun2db;";
        IDbConnection dbcon;
-       dbcon.Open();
        dbcon = new NpgsqlConnection(connectionString);
+       dbcon.Open();
        IDbCommand dbcmd = dbcon.CreateCommand();
        // requires a table to be created named employee
        // with columns firstname and lastname