summaryrefslogtreecommitdiff
path: root/dbaccess/source/core/api/query.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'dbaccess/source/core/api/query.cxx')
-rw-r--r--dbaccess/source/core/api/query.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/dbaccess/source/core/api/query.cxx b/dbaccess/source/core/api/query.cxx
index 28d63f19d..924a4c24f 100644
--- a/dbaccess/source/core/api/query.cxx
+++ b/dbaccess/source/core/api/query.cxx
@@ -241,7 +241,7 @@ void OQuery::rebuildColumns()
for ( ;pBegin != pEnd; ++pBegin)
{
Reference<XPropertySet> xSource(xColumns->getByName( *pBegin ),UNO_QUERY);
- OQueryColumn* pColumn = new OQueryColumn( xSource );
+ OQueryColumn* pColumn = new OQueryColumn( xSource, m_xConnection );
Reference< XChild > xChild( *pColumn, UNO_QUERY_THROW );
xChild->setParent( *this );