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
9015333e
Kaydet (Commit)
9015333e
authored
Haz 28, 2014
tarafından
Norbert Thiebaud
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
firebird: release driver on dispose rather than destroy.
Change-Id: I5ffeaf818c1eb4985bdd150830f089f03fe42ceb
üst
ae6551b4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
9 deletions
+4
-9
Connection.cxx
connectivity/source/drivers/firebird/Connection.cxx
+3
-6
Connection.hxx
connectivity/source/drivers/firebird/Connection.hxx
+1
-3
No files found.
connectivity/source/drivers/firebird/Connection.cxx
Dosyayı görüntüle @
9015333e
...
@@ -77,7 +77,7 @@ const OUString Connection::our_sDBLocation( "firebird.fdb" );
...
@@ -77,7 +77,7 @@ const OUString Connection::our_sDBLocation( "firebird.fdb" );
Connection
::
Connection
(
FirebirdDriver
*
_pDriver
)
Connection
::
Connection
(
FirebirdDriver
*
_pDriver
)
:
Connection_BASE
(
m_aMutex
)
:
Connection_BASE
(
m_aMutex
)
,
OSubComponent
<
Connection
,
Connection_BASE
>
((
::
cppu
::
OWeakObject
*
)
_pDriver
,
this
)
,
OSubComponent
<
Connection
,
Connection_BASE
>
((
::
cppu
::
OWeakObject
*
)
_pDriver
,
this
)
,
m_
p
Driver
(
_pDriver
)
,
m_
x
Driver
(
_pDriver
)
,
m_sConnectionURL
()
,
m_sConnectionURL
()
,
m_sFirebirdURL
()
,
m_sFirebirdURL
()
,
m_bIsEmbedded
(
false
)
,
m_bIsEmbedded
(
false
)
...
@@ -93,16 +93,12 @@ Connection::Connection(FirebirdDriver* _pDriver)
...
@@ -93,16 +93,12 @@ Connection::Connection(FirebirdDriver* _pDriver)
,
m_xMetaData
(
0
)
,
m_xMetaData
(
0
)
,
m_aStatements
()
,
m_aStatements
()
{
{
m_pDriver
->
acquire
();
}
}
Connection
::~
Connection
()
Connection
::~
Connection
()
{
{
if
(
!
isClosed
())
if
(
!
isClosed
())
close
();
close
();
m_pDriver
->
release
();
m_pDriver
=
0
;
}
}
void
SAL_CALL
Connection
::
release
()
throw
()
void
SAL_CALL
Connection
::
release
()
throw
()
...
@@ -348,7 +344,7 @@ OUString Connection::transformPreparedStatement(const OUString& _sSQL)
...
@@ -348,7 +344,7 @@ OUString Connection::transformPreparedStatement(const OUString& _sSQL)
OUString
sSqlStatement
(
_sSQL
);
OUString
sSqlStatement
(
_sSQL
);
try
try
{
{
OSQLParser
aParser
(
m_
p
Driver
->
getContext
()
);
OSQLParser
aParser
(
m_
x
Driver
->
getContext
()
);
OUString
sErrorMessage
;
OUString
sErrorMessage
;
OUString
sNewSql
;
OUString
sNewSql
;
OSQLParseNode
*
pNode
=
aParser
.
parseTree
(
sErrorMessage
,
_sSQL
);
OSQLParseNode
*
pNode
=
aParser
.
parseTree
(
sErrorMessage
,
_sSQL
);
...
@@ -758,6 +754,7 @@ void Connection::disposing()
...
@@ -758,6 +754,7 @@ void Connection::disposing()
dispose_ChildImpl
();
dispose_ChildImpl
();
cppu
::
WeakComponentImplHelperBase
::
disposing
();
cppu
::
WeakComponentImplHelperBase
::
disposing
();
m_xDriver
.
clear
();
}
}
void
Connection
::
disposeStatements
()
void
Connection
::
disposeStatements
()
...
...
connectivity/source/drivers/firebird/Connection.hxx
Dosyayı görüntüle @
9015333e
...
@@ -83,7 +83,7 @@ namespace connectivity
...
@@ -83,7 +83,7 @@ namespace connectivity
// for each row returned by
// for each row returned by
// DatabaseMetaData.getTypeInfo.
// DatabaseMetaData.getTypeInfo.
/** The parent driver that created this connection. */
/** The parent driver that created this connection. */
FirebirdDriver
*
m_p
Driver
;
::
rtl
::
Reference
<
FirebirdDriver
>
m_x
Driver
;
/** The URL passed to us when opening, i.e. of the form sdbc:* */
/** The URL passed to us when opening, i.e. of the form sdbc:* */
::
rtl
::
OUString
m_sConnectionURL
;
::
rtl
::
OUString
m_sConnectionURL
;
...
@@ -179,8 +179,6 @@ namespace connectivity
...
@@ -179,8 +179,6 @@ namespace connectivity
throw
(
::
com
::
sun
::
star
::
sdbc
::
SQLException
,
throw
(
::
com
::
sun
::
star
::
sdbc
::
SQLException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
FirebirdDriver
*
getDriver
()
const
{
return
m_pDriver
;}
::
rtl
::
OUString
getConnectionURL
()
const
{
return
m_sConnectionURL
;}
::
rtl
::
OUString
getConnectionURL
()
const
{
return
m_sConnectionURL
;}
bool
isEmbedded
()
const
{
return
m_bIsEmbedded
;}
bool
isEmbedded
()
const
{
return
m_bIsEmbedded
;}
::
rtl
::
OUString
getUserName
()
const
{
return
m_sUser
;}
::
rtl
::
OUString
getUserName
()
const
{
return
m_sUser
;}
...
...
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