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
d5cb782f
Kaydet (Commit)
d5cb782f
authored
Agu 29, 2013
tarafından
Andrzej J.R. Hunt
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Implement setTimestamp. (firebird-sdbc)
Change-Id: I0c009a99061de787cd250912406a74a75fbc260a
üst
e218242e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
PreparedStatement.cxx
connectivity/source/drivers/firebird/PreparedStatement.cxx
+14
-6
No files found.
connectivity/source/drivers/firebird/PreparedStatement.cxx
Dosyayı görüntüle @
d5cb782f
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
#include <cppuhelper/typeprovider.hxx>
#include <cppuhelper/typeprovider.hxx>
#include <osl/diagnose.h>
#include <osl/diagnose.h>
#include <propertyids.hxx>
#include <propertyids.hxx>
#include <time.h>
#include <com/sun/star/sdbc/DataType.hpp>
#include <com/sun/star/sdbc/DataType.hpp>
#include <com/sun/star/lang/DisposedException.hpp>
#include <com/sun/star/lang/DisposedException.hpp>
...
@@ -410,15 +411,22 @@ void SAL_CALL OPreparedStatement::setTime( sal_Int32 parameterIndex, const Time&
...
@@ -410,15 +411,22 @@ void SAL_CALL OPreparedStatement::setTime( sal_Int32 parameterIndex, const Time&
checkDisposed
(
OStatementCommonBase_Base
::
rBHelper
.
bDisposed
);
checkDisposed
(
OStatementCommonBase_Base
::
rBHelper
.
bDisposed
);
}
}
// -------------------------------------------------------------------------
void
SAL_CALL
OPreparedStatement
::
setTimestamp
(
sal_Int32
parameterIndex
,
const
DateTime
&
aVal
)
throw
(
SQLException
,
RuntimeException
)
void
SAL_CALL
OPreparedStatement
::
setTimestamp
(
sal_Int32
nIndex
,
const
DateTime
&
rTimestamp
)
throw
(
SQLException
,
RuntimeException
)
{
{
(
void
)
parameterIndex
;
struct
tm
aCTime
;
(
void
)
aVal
;
aCTime
.
tm_sec
=
rTimestamp
.
Seconds
;
::
osl
::
MutexGuard
aGuard
(
m_pConnection
->
getMutex
()
);
aCTime
.
tm_min
=
rTimestamp
.
Minutes
;
checkDisposed
(
OStatementCommonBase_Base
::
rBHelper
.
bDisposed
);
aCTime
.
tm_hour
=
rTimestamp
.
Hours
;
aCTime
.
tm_mday
=
rTimestamp
.
Day
;
aCTime
.
tm_mon
=
rTimestamp
.
Month
;
aCTime
.
tm_year
=
rTimestamp
.
Year
;
ISC_TIMESTAMP
aISCTimestamp
;
isc_encode_timestamp
(
&
aCTime
,
&
aISCTimestamp
);
setValue
<
ISC_TIMESTAMP
>
(
nIndex
,
aISCTimestamp
,
SQL_TIMESTAMP
);
}
}
// -------------------------------------------------------------------------
// -------------------------------------------------------------------------
...
...
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