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
38bc9693
Kaydet (Commit)
38bc9693
authored
Agu 20, 2013
tarafından
Andrzej J.R. Hunt
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Implement Catalog::refreshUsers. (firebird-sdbc)
Change-Id: I54ca18b36c19d5a13efd8a194b59f0d8aebbac4c
üst
6b184f63
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
1 deletion
+28
-1
Catalog.cxx
connectivity/source/drivers/firebird/Catalog.cxx
+28
-1
No files found.
connectivity/source/drivers/firebird/Catalog.cxx
Dosyayı görüntüle @
38bc9693
...
...
@@ -9,6 +9,7 @@
#include "Catalog.hxx"
#include "Tables.hxx"
#include "Users.hxx"
using
namespace
::
connectivity
::
firebird
;
...
...
@@ -37,6 +38,9 @@ void Catalog::refreshTables()
"%"
,
aTypes
);
if
(
!
xTables
.
is
())
return
;
TStringVector
aTableNames
;
fillNames
(
xTables
,
aTableNames
);
...
...
@@ -66,6 +70,28 @@ void Catalog::refreshGroups()
//----- IRefreshableUsers ----------------------------------------------------
void
Catalog
::
refreshUsers
()
{
// TODO: implement me
OUString
sSql
(
"SELECT DISTINCT RDB$USER FROM RDB$USER_PRIVILEGES"
);
uno
::
Reference
<
XResultSet
>
xUsers
=
m_xMetaData
->
getConnection
()
->
createStatement
()
->
executeQuery
(
sSql
);
if
(
!
xUsers
.
is
())
return
;
TStringVector
aUserNames
;
uno
::
Reference
<
XRow
>
xRow
(
xUsers
,
UNO_QUERY
);
while
(
xUsers
->
next
())
{
aUserNames
.
push_back
(
xRow
->
getString
(
1
));
}
if
(
!
m_pUsers
)
m_pUsers
=
new
Users
(
m_xConnection
->
getMetaData
(),
*
this
,
m_aMutex
,
aUserNames
);
else
m_pUsers
->
reFill
(
aUserNames
);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
\ No newline at end of file
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