Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
a8f78db2
Kaydet (Commit)
a8f78db2
authored
Kas 09, 2018
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use indexed getToken
Change-Id: I336924c43b6680c3742ca8c83801cbff3f346968
üst
3e10b9b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
SelectionBrowseBox.cxx
dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx
+5
-4
No files found.
dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx
Dosyayı görüntüle @
a8f78db2
...
...
@@ -2599,18 +2599,19 @@ void OSelectionBrowseBox::setFunctionCell(OTableFieldDescRef const & _pEntry)
// Aggregate functions in general only available with Core SQL
if
(
lcl_SupportsCoreSQLGrammar
(
xConnection
)
)
{
sal_Int32
nIdx
{
0
};
// if we have an asterisk, no other function than count is allowed
m_pFunctionCell
->
Clear
();
m_pFunctionCell
->
InsertEntry
(
m_aFunctionStrings
.
getToken
(
0
,
';'
));
m_pFunctionCell
->
InsertEntry
(
m_aFunctionStrings
.
getToken
(
0
,
';'
,
nIdx
));
if
(
isFieldNameAsterisk
(
_pEntry
->
GetField
())
)
m_pFunctionCell
->
InsertEntry
(
m_aFunctionStrings
.
getToken
(
2
,
';'
));
// 2 ->
COUNT
m_pFunctionCell
->
InsertEntry
(
m_aFunctionStrings
.
getToken
(
1
,
';'
,
nIdx
));
// 2nd token:
COUNT
else
{
sal_Int32
nCount
=
comphelper
::
string
::
getTokenCount
(
m_aFunctionStrings
,
';'
);
if
(
_pEntry
->
isNumeric
()
)
--
nCount
;
for
(
sal_Int32
n
Idx
=
1
;
nIdx
<
nCount
;
nIdx
++
)
m_pFunctionCell
->
InsertEntry
(
m_aFunctionStrings
.
getToken
(
nIdx
,
';'
));
for
(
sal_Int32
n
Tok
=
1
;
nTok
<
nCount
;
++
nTok
)
m_pFunctionCell
->
InsertEntry
(
m_aFunctionStrings
.
getToken
(
0
,
';'
,
nIdx
));
}
if
(
_pEntry
->
IsGroupBy
()
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment