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
53ca46cd
Kaydet (Commit)
53ca46cd
authored
Şub 09, 2012
tarafından
Lionel Elie Mamane
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
translate german comments
üst
f21eaff8
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 @
53ca46cd
...
...
@@ -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
);
...
...
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