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
7ce0fbe7
Kaydet (Commit)
7ce0fbe7
authored
Eyl 09, 2018
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Reduce OUString operations
Change-Id: Ia95ced36201ee78d511604a33992be0eff4810df
üst
0da6e880
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
SelectionBrowseBox.cxx
dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx
+3
-7
No files found.
dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx
Dosyayı görüntüle @
7ce0fbe7
...
@@ -190,12 +190,9 @@ void OSelectionBrowseBox::initialize()
...
@@ -190,12 +190,9 @@ void OSelectionBrowseBox::initialize()
for
(
IParseContext
::
InternationalKeyCode
eFunction
:
eFunctions
)
for
(
IParseContext
::
InternationalKeyCode
eFunction
:
eFunctions
)
{
{
m_aFunctionStrings
+=
";"
;
m_aFunctionStrings
+=
";"
+
OStringToOUString
(
rContext
.
getIntlKeywordAscii
(
eFunction
),
RTL_TEXTENCODING_UTF8
);
m_aFunctionStrings
+=
OStringToOUString
(
rContext
.
getIntlKeywordAscii
(
eFunction
),
RTL_TEXTENCODING_UTF8
);
}
}
m_aFunctionStrings
+=
";"
;
m_aFunctionStrings
+=
";"
+
sGroup
;
m_aFunctionStrings
+=
sGroup
;
// Aggregate functions in general available only with Core SQL
// Aggregate functions in general available only with Core SQL
// We slip in a few optionals one, too.
// We slip in a few optionals one, too.
...
@@ -697,13 +694,12 @@ bool OSelectionBrowseBox::saveField(OUString& _sFieldName ,OTableFieldDescRef co
...
@@ -697,13 +694,12 @@ bool OSelectionBrowseBox::saveField(OUString& _sFieldName ,OTableFieldDescRef co
bool
bQuote
=
(
nPass
<=
2
);
bool
bQuote
=
(
nPass
<=
2
);
bool
bInternational
=
(
nPass
%
2
)
==
0
;
bool
bInternational
=
(
nPass
%
2
)
==
0
;
OUString
sSql
;
OUString
sSql
{
"SELECT "
}
;
if
(
bQuote
)
if
(
bQuote
)
sSql
+=
sQuotedFullFieldName
;
sSql
+=
sQuotedFullFieldName
;
else
else
sSql
+=
sFullFieldName
;
sSql
+=
sFullFieldName
;
sSql
=
"SELECT "
+
sSql
;
if
(
!
sFieldAlias
.
isEmpty
()
)
if
(
!
sFieldAlias
.
isEmpty
()
)
{
// always quote the alias name: there cannot be a function in it
{
// always quote the alias name: there cannot be a function in it
sSql
+=
" "
+
::
dbtools
::
quoteName
(
xMetaData
->
getIdentifierQuoteString
(),
sFieldAlias
);
sSql
+=
" "
+
::
dbtools
::
quoteName
(
xMetaData
->
getIdentifierQuoteString
(),
sFieldAlias
);
...
...
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