summaryrefslogtreecommitdiff
path: root/connectivity/source/parse/sqliterator.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source/parse/sqliterator.cxx')
-rw-r--r--connectivity/source/parse/sqliterator.cxx67
1 files changed, 0 insertions, 67 deletions
diff --git a/connectivity/source/parse/sqliterator.cxx b/connectivity/source/parse/sqliterator.cxx
index 5ba5c11325be..dcca0fc9db4a 100644
--- a/connectivity/source/parse/sqliterator.cxx
+++ b/connectivity/source/parse/sqliterator.cxx
@@ -780,73 +780,6 @@ void OSQLParseTreeIterator::getColumnRange( const OSQLParseNode* _pColumnRef,
}
-bool OSQLParseTreeIterator::getColumnTableRange(const OSQLParseNode* pNode, OUString &rTableRange) const
-{
- OUString tmp;
- if(impl_getColumnTableRange(pNode, tmp))
- {
- rTableRange = tmp;
- return true;
- }
- else
- return false;
-}
-
-bool OSQLParseTreeIterator::impl_getColumnTableRange(const OSQLParseNode* pNode, OUString &rTableRange) const
-{
- // See if all columns belong to one table
- if (SQL_ISRULE(pNode,column_ref))
- {
- OUString aColName, aTableRange;
- getColumnRange(pNode, aColName, aTableRange);
- if (aTableRange.isEmpty()) // None found
- {
- // Look for the columns in the tables
- for (auto const& table : *m_pImpl->m_pTables)
- {
- if (table.second.is())
- {
- try
- {
- Reference< XNameAccess > xColumns = table.second->getColumns();
- if(xColumns->hasByName(aColName))
- {
- Reference< XPropertySet > xColumn;
- if (xColumns->getByName(aColName) >>= xColumn)
- {
- OSL_ENSURE(xColumn.is(),"Column isn't a propertyset!");
- aTableRange = table.first;
- break;
- }
- }
- }
- catch(Exception&)
- {
- }
- }
- }
- if (aTableRange.isEmpty())
- return false;
- }
-
-
- if (rTableRange.isEmpty())
- rTableRange = aTableRange;
- else if (rTableRange != aTableRange)
- return false;
- }
- else
- {
- for (sal_uInt32 i = 0, ncount = pNode->count(); i < ncount; i++)
- {
- if (!getColumnTableRange(pNode->getChild(i), rTableRange))
- return false;
- }
- }
- return true;
-}
-
-
void OSQLParseTreeIterator::traverseCreateColumns(const OSQLParseNode* pSelectNode)
{
// aIteratorStatus.Clear();