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
67596ee0
Kaydet (Commit)
67596ee0
authored
Agu 07, 2013
tarafından
Andrzej J.R. Hunt
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove unnecessarily duplicated execute/executeQuery. (firebird-sdbc)
Change-Id: Ic173346c4cac140b9426560af9a9b196d93ec2f5
üst
38e24914
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
33 deletions
+3
-33
Statement.cxx
connectivity/source/drivers/firebird/Statement.cxx
+3
-33
No files found.
connectivity/source/drivers/firebird/Statement.cxx
Dosyayı görüntüle @
67596ee0
...
...
@@ -149,39 +149,9 @@ uno::Reference< XResultSet > SAL_CALL OStatement::executeQuery(const OUString& s
sal_Bool
SAL_CALL
OStatement
::
execute
(
const
OUString
&
sql
)
throw
(
SQLException
,
RuntimeException
)
{
SAL_INFO
(
"connectivity.firebird"
,
"executeQuery(). "
"Got called with sql: "
<<
sql
);
MutexGuard
aGuard
(
m_pConnection
->
getMutex
());
checkDisposed
(
OStatementCommonBase_Base
::
rBHelper
.
bDisposed
);
XSQLDA
*
pOutSqlda
=
0
;
isc_stmt_handle
aStatementHandle
=
0
;
int
aErr
=
0
;
aErr
=
prepareAndDescribeStatement
(
sql
,
aStatementHandle
,
pOutSqlda
);
if
(
aErr
)
{
SAL_WARN
(
"connectivity.firebird"
,
"prepareAndDescribeStatement failed"
);
}
else
{
aErr
=
isc_dsql_execute
(
m_statusVector
,
&
m_pConnection
->
getTransaction
(),
&
aStatementHandle
,
1
,
NULL
);
if
(
aErr
)
SAL_WARN
(
"connectivity.firebird"
,
"isc_dsql_execute failed"
);
}
evaluateStatusVector
(
m_statusVector
,
sql
,
*
this
);
// returns true when a resultset is available
return
sal_False
;
uno
::
Reference
<
XResultSet
>
xResults
=
executeQuery
(
sql
);
return
xResults
.
is
();
// TODO: what if we have multiple results?
}
uno
::
Reference
<
XConnection
>
SAL_CALL
OStatement
::
getConnection
()
...
...
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