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
d60392fb
Kaydet (Commit)
d60392fb
authored
Mar 06, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#706316 help out coverity re tortured logic
Change-Id: I6d6a948fdac4442c69972316275349fe73b9e741
üst
553554d0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
16 deletions
+15
-16
HView.cxx
connectivity/source/drivers/hsqldb/HView.cxx
+13
-10
HView.hxx
connectivity/source/inc/hsqldb/HView.hxx
+2
-6
No files found.
connectivity/source/drivers/hsqldb/HView.cxx
Dosyayı görüntüle @
d60392fb
...
...
@@ -101,7 +101,7 @@ namespace connectivity { namespace hsqldb
aRestoreCommand
.
appendAscii
(
"CREATE VIEW "
);
aRestoreCommand
.
append
(
sQualifiedName
);
aRestoreCommand
.
appendAscii
(
" AS "
);
aRestoreCommand
.
append
(
impl_getCommand_throw
(
true
)
);
aRestoreCommand
.
append
(
impl_getCommand_throw
()
);
OUString
sRestoreCommand
(
aRestoreCommand
.
makeStringAndClear
()
);
bool
bDropSucceeded
(
false
);
...
...
@@ -150,15 +150,23 @@ namespace connectivity { namespace hsqldb
{
// retrieve the very current command, don't rely on the base classes cached value
// (which we initialized empty, anyway)
_rValue
<<=
impl_getCommand_throw
(
false
);
return
;
try
{
_rValue
<<=
impl_getCommand_throw
();
}
catch
(
const
SQLException
&
e
)
{
throw
WrappedTargetException
(
e
.
Message
,
static_cast
<
XAlterView
*
>
(
const_cast
<
HView
*
>
(
this
)
),
::
cppu
::
getCaughtException
()
);
}
}
HView_Base
::
getFastPropertyValue
(
_rValue
,
_nHandle
);
}
OUString
HView
::
impl_getCommand_throw
(
bool
_bAllowSQLException
)
const
OUString
HView
::
impl_getCommand_throw
()
const
{
OUString
sCommand
;
...
...
@@ -180,12 +188,7 @@ namespace connectivity { namespace hsqldb
sCommand
=
xRow
->
getString
(
1
);
}
catch
(
const
RuntimeException
&
)
{
throw
;
}
catch
(
const
SQLException
&
e
)
{
if
(
_bAllowSQLException
)
throw
;
throw
WrappedTargetException
(
e
.
Message
,
static_cast
<
XAlterView
*
>
(
const_cast
<
HView
*
>
(
this
)
),
::
cppu
::
getCaughtException
()
);
}
catch
(
const
SQLException
&
)
{
throw
;
}
catch
(
const
Exception
&
)
{
DBG_UNHANDLED_EXCEPTION
();
...
...
connectivity/source/inc/hsqldb/HView.hxx
Dosyayı görüntüle @
d60392fb
...
...
@@ -65,14 +65,10 @@ namespace connectivity { namespace hsqldb
private
:
/** retrieves the current command of the View
@throws ::com::sun::star::lang::WrappedTargetException
if an error occurs while retrieving the command from the database and
<arg>_bAllowSQLExceptin</arg> is <FALSE/>
@throws ::com::sun::star::sdbc::SQLException
if an error occurs while retrieving the command from the database and
<arg>_bAllowSQLException</arg> is <TRUE/>
if an error occurs while retrieving the command from the database.
*/
OUString
impl_getCommand_throw
(
bool
_bAllowSQLException
)
const
;
OUString
impl_getCommand_throw
()
const
;
private
:
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
sdbc
::
XConnection
>
m_xConnection
;
...
...
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