summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2012-02-09 18:47:32 +0100
committerLionel Elie Mamane <lionel@mamane.lu>2012-02-09 18:47:32 +0100
commit53ca46cdff7b6e0ed5c6d97b86855a406c54895f (patch)
tree4101359066820bd94c0aeadc5134af3f1b160087 /dbaccess
parentf21eaff8eafc4c6a0e99aee565d4498a64926f14 (diff)
translate german comments
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx b/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx
index f3140b08f1be..b7cf65ee35fc 100644
--- a/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx
+++ b/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx
@@ -211,14 +211,15 @@ void OSelectionBrowseBox::initialize()
m_aFunctionStrings += String(RTL_CONSTASCII_USTRINGPARAM(";"));
m_aFunctionStrings += sGroup;
- // Diese Funktionen stehen nur unter CORE zur Verf�gung
+ // Aggregate functions in general available only with Core SQL
+ // We slip in a few optionals one, too.
if ( lcl_SupportsCoreSQLGrammar(xConnection) )
{
xub_StrLen nCount = comphelper::string::getTokenCount(m_aFunctionStrings, ';');
for (xub_StrLen nIdx = 0; nIdx < nCount; nIdx++)
m_pFunctionCell->InsertEntry(m_aFunctionStrings.GetToken(nIdx));
}
- else // sonst nur COUNT(*)
+ else // else only COUNT(*) and COUNT("table".*)
{
m_pFunctionCell->InsertEntry(m_aFunctionStrings.GetToken(0));
m_pFunctionCell->InsertEntry(m_aFunctionStrings.GetToken(2)); // 2 -> COUNT
@@ -2736,7 +2737,7 @@ void OSelectionBrowseBox::setFunctionCell(OTableFieldDescRef& _pEntry)
Reference< XConnection> xConnection = static_cast<OQueryController&>(getDesignView()->getController()).getConnection();
if ( xConnection.is() )
{
- // Diese Funktionen stehen nur unter CORE zur Verf�gung
+ // Aggregate functions in general only available with Core SQL
if ( lcl_SupportsCoreSQLGrammar(xConnection) )
{
// if we have an asterix, no other function than count is allowed
@@ -2767,7 +2768,7 @@ void OSelectionBrowseBox::setFunctionCell(OTableFieldDescRef& _pEntry)
}
else
{
- // nur COUNT(*) erlaubt
+ // only COUNT(*) and COUNT("table".*) allowed
sal_Bool bCountRemoved = !isFieldNameAsterix(_pEntry->GetField());
if ( bCountRemoved )
m_pFunctionCell->RemoveEntry(1);