/** * @param string $tableAliasName * @return string */ protected function getAttributeClauseQueryStringExtraPart($tableAliasName) { assert('is_string($tableAliasName)'); if ($this->componentForm->isATypeOfCurrencyValue() && ($this->currencyConversionType == Report::CURRENCY_CONVERSION_TYPE_BASE || $this->currencyConversionType == Report::CURRENCY_CONVERSION_TYPE_SPOT)) { $quote = DatabaseCompatibilityUtil::getQuote(); $currencyValue = new CurrencyValue(); return " * {$quote}{$tableAliasName}{$quote}." . "{$quote}" . $currencyValue->getColumnNameByAttribute('rateToBase') . "{$quote}"; } }