summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/querydesign/QueryDesignView.cxx
diff options
context:
space:
mode:
authorOcke Janssen <oj@openoffice.org>2002-06-27 07:21:18 +0000
committerOcke Janssen <oj@openoffice.org>2002-06-27 07:21:18 +0000
commit0bdd3e75dabde387bca2034b02ae4899d22502e1 (patch)
tree09ab2e321294a5e03a8d85c85beee9dea05dce0c /dbaccess/source/ui/querydesign/QueryDesignView.cxx
parent1769141affc7804eeba8bbfb62098df5f115eb16 (diff)
#96325# remove all convertAlias calls
Diffstat (limited to 'dbaccess/source/ui/querydesign/QueryDesignView.cxx')
-rw-r--r--dbaccess/source/ui/querydesign/QueryDesignView.cxx29
1 files changed, 14 insertions, 15 deletions
diff --git a/dbaccess/source/ui/querydesign/QueryDesignView.cxx b/dbaccess/source/ui/querydesign/QueryDesignView.cxx
index 2b1365c6a9b5..00863dee9672 100644
--- a/dbaccess/source/ui/querydesign/QueryDesignView.cxx
+++ b/dbaccess/source/ui/querydesign/QueryDesignView.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: QueryDesignView.cxx,v $
*
- * $Revision: 1.50 $
+ * $Revision: 1.51 $
*
- * last change: $Author: fs $ $Date: 2002-05-24 13:03:58 $
+ * last change: $Author: oj $ $Date: 2002-06-27 08:21:18 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -178,8 +178,6 @@ using namespace ::com::sun::star::container;
(pParseNode)->getRuleID() == OSQLParser::RuleID(OSQLParseNode::##e1) || \
(pParseNode)->getRuleID() == OSQLParser::RuleID(OSQLParseNode::##e2)))
-extern ::rtl::OUString ConvertAlias(const ::rtl::OUString& rName);
-
// here we define our functions used in the anonymous namespace to get our header file smaller
// please look at the book LargeScale C++ to know why
namespace
@@ -383,11 +381,11 @@ namespace
{
if(aCondition.getLength())
aCondition += C_AND;
- aCondition += ::dbtools::quoteName(aQuote, ConvertAlias( pData->GetAliasName(JTCS_FROM) ));
+ aCondition += ::dbtools::quoteName(aQuote, pData->GetAliasName(JTCS_FROM));
aCondition += ::rtl::OUString('.');
aCondition += ::dbtools::quoteName(aQuote, pLineData->GetFieldName(JTCS_FROM) );
aCondition += ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(" = "));
- aCondition += ::dbtools::quoteName(aQuote, ConvertAlias( pData->GetAliasName(JTCS_TO) ));
+ aCondition += ::dbtools::quoteName(aQuote, pData->GetAliasName(JTCS_TO));
aCondition += ::rtl::OUString('.');
aCondition += ::dbtools::quoteName(aQuote, pLineData->GetFieldName(JTCS_TO) );
}
@@ -441,6 +439,7 @@ namespace
try
{
Reference< XDatabaseMetaData > xMetaData = _xConnection->getMetaData();
+
::rtl::OUString aCatalog,aSchema,aTable,sComposedName;
::dbtools::qualifiedNameComponents(xMetaData,aDBName,aCatalog,aSchema,aTable);
::dbtools::composeTableName(xMetaData,aCatalog,aSchema,aTable,sComposedName,sal_True);
@@ -448,7 +447,7 @@ namespace
::rtl::OUString aQuote = xMetaData->getIdentifierQuoteString();
::rtl::OUString aTableListStr(sComposedName);
aTableListStr += ::rtl::OUString(' ');
- aTableListStr += ::dbtools::quoteName(aQuote, ConvertAlias(pEntryTab->GetAliasName())).getStr();
+ aTableListStr += ::dbtools::quoteName(aQuote, pEntryTab->GetAliasName());
aDBName = aTableListStr;
}
catch(SQLException&)
@@ -710,7 +709,7 @@ namespace
::rtl::OUString rFieldAlias = pEntryField->GetFieldAlias();
if((bAlias || bAsterix) && rAlias.getLength())
{
- aTmpStr += ::dbtools::quoteName(aQuote,ConvertAlias(rAlias));
+ aTmpStr += ::dbtools::quoteName(aQuote,rAlias);
aTmpStr += ::rtl::OUString('.');
}
// we have to look if we have alias.* here
@@ -811,7 +810,7 @@ namespace
if(pEntryField->GetFunctionType() == FKT_OTHER || (aFieldName.toChar() == '*'))
aWork += aFieldName;
else
- aWork += ::dbtools::quoteName(aQuote, ConvertAlias(pEntryField->GetAlias()));
+ aWork += ::dbtools::quoteName(aQuote, pEntryField->GetAlias());
aWork += ::rtl::OUString('.');
}
if(pEntryField->GetFunctionType() == FKT_OTHER || (aFieldName.toChar() == '*'))
@@ -843,7 +842,7 @@ namespace
if (pParseNode)
{
if (bMulti && !(pEntryField->GetFunctionType() == FKT_OTHER || (aFieldName.toChar() == '*')))
- pParseNode->replaceNodeValue(ConvertAlias(pEntryField->GetAlias()),aFieldName);
+ pParseNode->replaceNodeValue(pEntryField->GetAlias(),aFieldName);
::rtl::OUString sHavingStr = aHavingStr;
OSL_ENSURE(pParseNode->count() == 3,"Count must be three here!");
for( sal_Int32 i = 1 ; i < 3 ; ++i)
@@ -874,7 +873,7 @@ namespace
if (pParseNode)
{
if (bMulti && !(pEntryField->GetFunctionType() == FKT_OTHER || (aFieldName.toChar() == '*')))
- pParseNode->replaceNodeValue(ConvertAlias(pEntryField->GetAlias()),aFieldName);
+ pParseNode->replaceNodeValue(pEntryField->GetAlias(),aFieldName);
::rtl::OUString aWhere = aWhereStr;
pParseNode->parseNodeToStr( aWhere,
xMetaData,
@@ -976,7 +975,7 @@ namespace
{
if (bMulti && pEntryField->GetAlias().getLength())
{
- aWorkStr += ::dbtools::quoteName(aQuote, ConvertAlias(pEntryField->GetAlias())).getStr();
+ aWorkStr += ::dbtools::quoteName(aQuote, pEntryField->GetAlias()).getStr();
aWorkStr += String('.');
}
aWorkStr += ::dbtools::quoteName(aQuote, aColumnName).getStr();
@@ -992,7 +991,7 @@ namespace
aWorkStr += String('(');
if (bMulti && pEntryField->GetAlias().getLength())
{
- aWorkStr += ::dbtools::quoteName(aQuote, ConvertAlias(pEntryField->GetAlias())).getStr();
+ aWorkStr += ::dbtools::quoteName(aQuote, pEntryField->GetAlias()).getStr();
aWorkStr += String('.');
}
aWorkStr += ::dbtools::quoteName(aQuote, aColumnName).getStr();
@@ -1002,7 +1001,7 @@ namespace
{
if (bMulti && pEntryField->GetAlias().getLength())
{
- aWorkStr += ::dbtools::quoteName(aQuote, ConvertAlias(pEntryField->GetAlias())).getStr();
+ aWorkStr += ::dbtools::quoteName(aQuote, pEntryField->GetAlias()).getStr();
aWorkStr += String('.');
}
aWorkStr += ::dbtools::quoteName(aQuote, aColumnName).getStr();
@@ -1205,7 +1204,7 @@ namespace
DBG_ASSERT(pEntryField->GetField().getLength(),"Kein FieldName vorhanden!;-(");
if (bMulti)
{
- aGroupByStr += ::dbtools::quoteName(aQuote, ConvertAlias(pEntryField->GetAlias()));
+ aGroupByStr += ::dbtools::quoteName(aQuote, pEntryField->GetAlias());
aGroupByStr += ::rtl::OUString('.');
}