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
8c325831
Kaydet (Commit)
8c325831
authored
Haz 05, 2013
tarafından
Andres Gomez
Kaydeden (comit)
Andrzej J.R. Hunt
Tem 16, 2013
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fb-sdbc: Pretty printing table log output
üst
14352be9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
11 deletions
+32
-11
FConnection.cxx
connectivity/source/drivers/firebird/FConnection.cxx
+8
-1
FDatabaseMetaData.cxx
connectivity/source/drivers/firebird/FDatabaseMetaData.cxx
+24
-10
No files found.
connectivity/source/drivers/firebird/FConnection.cxx
Dosyayı görüntüle @
8c325831
...
...
@@ -62,12 +62,16 @@ OConnection::OConnection(FirebirdDriver* _pDriver)
m_bUseCatalog
(
sal_False
),
m_bUseOldDateFormat
(
sal_False
)
{
SAL_INFO
(
"connectivity.firebird"
,
"=> OConnection::OConnection()."
);
m_pDriver
->
acquire
();
m_DBHandler
=
NULL
;
}
//-----------------------------------------------------------------------------
OConnection
::~
OConnection
()
{
SAL_INFO
(
"connectivity.firebird"
,
"=> OConnection::~OConnection()."
);
if
(
!
isClosed
())
close
();
m_pDriver
->
release
();
...
...
@@ -101,7 +105,7 @@ static int pr_error (long* status, char* operation)
void
OConnection
::
construct
(
const
::
rtl
::
OUString
&
url
,
const
Sequence
<
PropertyValue
>&
info
)
throw
(
SQLException
)
{
SAL_INFO
(
"connectivity.firebird"
,
"=> OConnection::construct()."
);
SAL_INFO
(
"connectivity.firebird"
,
"=> OConnection::construct()."
);
osl_atomic_increment
(
&
m_refCount
);
...
...
@@ -169,6 +173,9 @@ Reference< XPreparedStatement > SAL_CALL OConnection::prepareStatement( const ::
// --------------------------------------------------------------------------------
Reference
<
XPreparedStatement
>
SAL_CALL
OConnection
::
prepareCall
(
const
::
rtl
::
OUString
&
_sSql
)
throw
(
SQLException
,
RuntimeException
)
{
SAL_INFO
(
"connectivity.firebird"
,
"=> OConnection::prepareCall(). "
"_sSql: "
<<
_sSql
);
::
osl
::
MutexGuard
aGuard
(
m_aMutex
);
checkDisposed
(
OConnection_BASE
::
rBHelper
.
bDisposed
);
...
...
connectivity/source/drivers/firebird/FDatabaseMetaData.cxx
Dosyayı görüntüle @
8c325831
...
...
@@ -896,7 +896,7 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTables(
Reference
<
XResultSet
>
rs
=
statement
->
executeQuery
(
query
.
getStr
());
Reference
<
XRow
>
xRow
(
rs
,
UNO_QUERY_THROW
);
ODatabaseMetaDataResultSet
::
ORows
aRows
;
int
rows
=
0
;
sal_Int32
rows
=
0
;
while
(
rs
->
next
()
)
{
ODatabaseMetaDataResultSet
::
ORow
aRow
(
3
);
...
...
@@ -908,15 +908,29 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTables(
OUString
desc
=
xRow
->
getString
(
5
);
rows
++
;
if
(
rows
<
10
)
printf
(
"DEBUG !!! row %i : "
,
rows
);
else
printf
(
"DEBUG !!! row %i: "
,
rows
);
printf
(
"%s | "
,
OUStringToOString
(
schema
,
RTL_TEXTENCODING_UTF8
).
getStr
());
printf
(
"%s | "
,
OUStringToOString
(
aTableName
,
RTL_TEXTENCODING_UTF8
).
getStr
());
printf
(
"%i | "
,
systemFlag
);
printf
(
"%i | "
,
systemFlag
);
printf
(
"%s |
\n
"
,
OUStringToOString
(
desc
,
RTL_TEXTENCODING_UTF8
).
getStr
());
if
(
rows
<
10
)
{
if
(
1
==
rows
)
SAL_DEBUG
(
"COLUMNS | "
"schema | "
"TABLENAME | "
"SF| "
"TT| "
"desc |"
);
SAL_DEBUG
(
"Row "
<<
OUString
::
number
(
0
).
concat
(
OUString
::
number
(
rows
))
<<
": | "
<<
schema
<<
" | "
<<
aTableName
<<
" | "
<<
systemFlag
<<
" | "
<<
tableType
<<
" | "
<<
desc
<<
" |"
);
}
else
SAL_DEBUG
(
"Row "
<<
rows
<<
": | "
<<
schema
<<
" | "
<<
aTableName
<<
" | "
<<
systemFlag
<<
" | "
<<
tableType
<<
" | "
<<
desc
<<
" |"
);
OUString
aTableType
;
if
(
1
==
systemFlag
)
...
...
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