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
65719df3
Kaydet (Commit)
65719df3
authored
Eyl 19, 2013
tarafından
Andrzej J.R. Hunt
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Cleanup exceptions in PreparedStatement.
Change-Id: Ice11ec8131a00335db48a05661bbe0285bb53fea
üst
101040a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
13 deletions
+10
-13
PreparedStatement.cxx
connectivity/source/drivers/firebird/PreparedStatement.cxx
+10
-13
No files found.
connectivity/source/drivers/firebird/PreparedStatement.cxx
Dosyayı görüntüle @
65719df3
...
@@ -316,16 +316,11 @@ void SAL_CALL OPreparedStatement::setNull(sal_Int32 nIndex, sal_Int32 /*nSqlType
...
@@ -316,16 +316,11 @@ void SAL_CALL OPreparedStatement::setNull(sal_Int32 nIndex, sal_Int32 /*nSqlType
setParameterNull
(
nIndex
,
true
);
setParameterNull
(
nIndex
,
true
);
}
}
void
SAL_CALL
OPreparedStatement
::
setBoolean
(
sal_Int32
nIndex
,
sal_Bool
x
)
void
SAL_CALL
OPreparedStatement
::
setBoolean
(
sal_Int32
/*nIndex*/
,
sal_Bool
/*bValue*/
)
throw
(
SQLException
,
RuntimeException
)
throw
(
SQLException
,
RuntimeException
)
{
{
(
void
)
nIndex
;
// FIREBIRD3: will need to be implemented.
(
void
)
x
;
::
dbtools
::
throwFunctionNotSupportedException
(
"XParameters::setBoolean"
,
*
this
);
MutexGuard
aGuard
(
m_aMutex
);
checkDisposed
(
OStatementCommonBase_Base
::
rBHelper
.
bDisposed
);
// TODO: decide how to deal with bools. Probably just as a byte, although
// it might be best to just determine the db type and set as appropriate?
}
}
template
<
typename
T
>
template
<
typename
T
>
...
@@ -355,9 +350,7 @@ void OPreparedStatement::setValue(sal_Int32 nIndex, T& nValue, ISC_SHORT nType)
...
@@ -355,9 +350,7 @@ void OPreparedStatement::setValue(sal_Int32 nIndex, T& nValue, ISC_SHORT nType)
void
SAL_CALL
OPreparedStatement
::
setByte
(
sal_Int32
/*nIndex*/
,
sal_Int8
/*nValue*/
)
void
SAL_CALL
OPreparedStatement
::
setByte
(
sal_Int32
/*nIndex*/
,
sal_Int8
/*nValue*/
)
throw
(
SQLException
,
RuntimeException
)
throw
(
SQLException
,
RuntimeException
)
{
{
::
dbtools
::
throwFunctionNotSupportedException
(
"setByte not supported in firebird"
,
::
dbtools
::
throwFunctionNotSupportedException
(
"XParameters::setByte"
,
*
this
);
*
this
,
Any
());
}
}
void
SAL_CALL
OPreparedStatement
::
setShort
(
sal_Int32
nIndex
,
sal_Int16
nValue
)
void
SAL_CALL
OPreparedStatement
::
setShort
(
sal_Int32
nIndex
,
sal_Int16
nValue
)
...
@@ -588,8 +581,12 @@ void OPreparedStatement::checkParameterIndex(sal_Int32 nParameterIndex)
...
@@ -588,8 +581,12 @@ void OPreparedStatement::checkParameterIndex(sal_Int32 nParameterIndex)
{
{
ensurePrepared
();
ensurePrepared
();
if
((
nParameterIndex
==
0
)
||
(
nParameterIndex
>
m_pInSqlda
->
sqld
))
if
((
nParameterIndex
==
0
)
||
(
nParameterIndex
>
m_pInSqlda
->
sqld
))
throw
SQLException
();
{
// TODO: sane error message here.
::
dbtools
::
throwSQLException
(
"No column "
+
OUString
::
number
(
nParameterIndex
),
::
dbtools
::
SQL_COLUMN_NOT_FOUND
,
*
this
);
}
}
}
void
OPreparedStatement
::
setParameterNull
(
sal_Int32
nParameterIndex
,
void
OPreparedStatement
::
setParameterNull
(
sal_Int32
nParameterIndex
,
...
...
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