diff options
author | Ocke Janssen <oj@openoffice.org> | 2001-01-09 11:39:19 +0000 |
---|---|---|
committer | Ocke Janssen <oj@openoffice.org> | 2001-01-09 11:39:19 +0000 |
commit | ec07cca8d847fa1cefdeb61f069fcff4022cd9b6 (patch) | |
tree | 05d8b27a6395d2e974628780d1fe229d2cf773db | |
parent | cba6583e5fffe4d31fe0e14bd82fc81496e3ca0e (diff) |
new member variable for metadata
-rw-r--r-- | connectivity/source/drivers/ado/APreparedStatement.cxx | 9 | ||||
-rw-r--r-- | connectivity/source/inc/ado/APreparedStatement.hxx | 5 |
2 files changed, 8 insertions, 6 deletions
diff --git a/connectivity/source/drivers/ado/APreparedStatement.cxx b/connectivity/source/drivers/ado/APreparedStatement.cxx index 5d80b9daf272..5f94e50731ce 100644 --- a/connectivity/source/drivers/ado/APreparedStatement.cxx +++ b/connectivity/source/drivers/ado/APreparedStatement.cxx @@ -2,9 +2,9 @@ * * $RCSfile: APreparedStatement.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: oj $ $Date: 2000-10-09 11:23:39 $ + * last change: $Author: oj $ $Date: 2001-01-09 12:39:08 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -137,8 +137,9 @@ Any SAL_CALL OPreparedStatement::queryInterface( const Type & rType ) throw(Runt Reference< XResultSetMetaData > SAL_CALL OPreparedStatement::getMetaData( ) throw(SQLException, RuntimeException) { - Reference< XResultSetMetaData > xRef = new OResultSetMetaData(m_RecordSet); - return xRef; + if(!m_xMetaData.is()) + m_xMetaData = new OResultSetMetaData(m_RecordSet); + return m_xMetaData; } // ------------------------------------------------------------------------- void OPreparedStatement::disposing() diff --git a/connectivity/source/inc/ado/APreparedStatement.hxx b/connectivity/source/inc/ado/APreparedStatement.hxx index 94794aefc06e..9062b5234e3e 100644 --- a/connectivity/source/inc/ado/APreparedStatement.hxx +++ b/connectivity/source/inc/ado/APreparedStatement.hxx @@ -2,9 +2,9 @@ * * $RCSfile: APreparedStatement.hxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: hr $ $Date: 2000-09-18 16:14:25 $ + * last change: $Author: oj $ $Date: 2001-01-09 12:39:19 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -111,6 +111,7 @@ namespace connectivity // for the prepared statement ::std::vector<OTypeInfo> m_aTypeInfo; + ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSetMetaData > m_xMetaData; ADOParameters* m_pParameters; public: |