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
84fe40e3
Kaydet (Commit)
84fe40e3
authored
Agu 29, 2013
tarafından
Andrzej J.R. Hunt
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Implement set[Date|Time]. (firebird-sdbc)
Change-Id: Ia519b2ec9c6be94f6f21bbd2951a295da8079479
üst
93e9f05c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
14 deletions
+20
-14
PreparedStatement.cxx
connectivity/source/drivers/firebird/PreparedStatement.cxx
+20
-14
No files found.
connectivity/source/drivers/firebird/PreparedStatement.cxx
Dosyayı görüntüle @
84fe40e3
...
@@ -390,26 +390,32 @@ void SAL_CALL OPreparedStatement::setDouble(sal_Int32 nIndex, double nValue)
...
@@ -390,26 +390,32 @@ void SAL_CALL OPreparedStatement::setDouble(sal_Int32 nIndex, double nValue)
setValue
<
double
>
(
nIndex
,
nValue
,
SQL_DOUBLE
);
// TODO: SQL_D_FLOAT?
setValue
<
double
>
(
nIndex
,
nValue
,
SQL_DOUBLE
);
// TODO: SQL_D_FLOAT?
}
}
// -------------------------------------------------------------------------
void
SAL_CALL
OPreparedStatement
::
setDate
(
sal_Int32
nIndex
,
const
Date
&
rDate
)
throw
(
SQLException
,
RuntimeException
)
void
SAL_CALL
OPreparedStatement
::
setDate
(
sal_Int32
parameterIndex
,
const
Date
&
aData
)
throw
(
SQLException
,
RuntimeException
)
{
{
(
void
)
parameterIndex
;
struct
tm
aCTime
;
(
void
)
aData
;
aCTime
.
tm_mday
=
rDate
.
Day
;
::
osl
::
MutexGuard
aGuard
(
m_pConnection
->
getMutex
()
)
;
aCTime
.
tm_mon
=
rDate
.
Month
;
checkDisposed
(
OStatementCommonBase_Base
::
rBHelper
.
bDisposed
)
;
aCTime
.
tm_year
=
rDate
.
Year
;
}
ISC_DATE
aISCDate
;
// -------------------------------------------------------------------------
isc_encode_sql_date
(
&
aCTime
,
&
aISCDate
);
setValue
<
ISC_DATE
>
(
nIndex
,
aISCDate
,
SQL_TYPE_DATE
);
}
void
SAL_CALL
OPreparedStatement
::
setTime
(
sal_Int32
parameterIndex
,
const
Time
&
aVal
)
throw
(
SQLException
,
RuntimeException
)
void
SAL_CALL
OPreparedStatement
::
setTime
(
sal_Int32
nIndex
,
const
Time
&
rTime
)
throw
(
SQLException
,
RuntimeException
)
{
{
(
void
)
parameterIndex
;
struct
tm
aCTime
;
(
void
)
aVal
;
aCTime
.
tm_sec
=
rTime
.
Seconds
;
::
osl
::
MutexGuard
aGuard
(
m_pConnection
->
getMutex
()
);
aCTime
.
tm_min
=
rTime
.
Minutes
;
checkDisposed
(
OStatementCommonBase_Base
::
rBHelper
.
bDisposed
);
aCTime
.
tm_hour
=
rTime
.
Hours
;
ISC_TIME
aISCTime
;
isc_encode_sql_time
(
&
aCTime
,
&
aISCTime
);
setValue
<
ISC_TIME
>
(
nIndex
,
aISCTime
,
SQL_TYPE_TIME
);
}
}
void
SAL_CALL
OPreparedStatement
::
setTimestamp
(
sal_Int32
nIndex
,
const
DateTime
&
rTimestamp
)
void
SAL_CALL
OPreparedStatement
::
setTimestamp
(
sal_Int32
nIndex
,
const
DateTime
&
rTimestamp
)
...
...
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