0 Replies Latest reply on Aug 12, 2003 6:01 AM by boky

    jboss Statements

    boky Newbie

      Just a quick question. This is not equal, but IMHO it should be:

      DataSource ds = <some jboss datasource>

      Connection c = ds.getConnect();

      Statement st = c.prepareStatement("SELECT * FROM a;");

      /// THIS RETURNS FALSE!!!
      assertEquals(c, st.getConnection());


      st.getConnection() will return the underlying connection (i.e. OracleConnection) and not jBoss' connection.


      I think there should also be wrappers for *Statement objects that would work as expected.



      Sorry it this is off topic or already corrected (i'm a new forum user), just though you should be avare of this issue.