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
d497d70a
Kaydet (Commit)
d497d70a
authored
Ara 07, 2012
tarafından
Lionel Elie Mamane
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
no SAL_CALL for internal utility functions
Change-Id: I7b945946d5e45d5518ab48fc8fe6cd66fba8d040
üst
d1660f19
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
14 deletions
+14
-14
OResultSet.cxx
connectivity/source/drivers/odbcbase/OResultSet.cxx
+6
-6
OResultSet.hxx
connectivity/source/inc/odbc/OResultSet.hxx
+8
-8
No files found.
connectivity/source/drivers/odbcbase/OResultSet.cxx
Dosyayı görüntüle @
d497d70a
...
@@ -462,7 +462,7 @@ template < typename T > T OResultSet::impl_getValue( const sal_Int32 _nColumnInd
...
@@ -462,7 +462,7 @@ template < typename T > T OResultSet::impl_getValue( const sal_Int32 _nColumnInd
}
}
// -------------------------------------------------------------------------
// -------------------------------------------------------------------------
// this function exists for the implicit conversion to sal_Bool (compared to a direct call to impl_getValue)
// this function exists for the implicit conversion to sal_Bool (compared to a direct call to impl_getValue)
sal_Bool
SAL_CALL
OResultSet
::
impl_getBoolean
(
sal_Int32
columnIndex
)
throw
(
SQLException
,
RuntimeException
)
sal_Bool
OResultSet
::
impl_getBoolean
(
sal_Int32
columnIndex
)
throw
(
SQLException
,
RuntimeException
)
{
{
return
impl_getValue
<
sal_Int8
>
(
columnIndex
,
SQL_C_BIT
);
return
impl_getValue
<
sal_Int8
>
(
columnIndex
,
SQL_C_BIT
);
}
}
...
@@ -510,7 +510,7 @@ Sequence< sal_Int8 > SAL_CALL OResultSet::getBytes( sal_Int32 columnIndex ) thro
...
@@ -510,7 +510,7 @@ Sequence< sal_Int8 > SAL_CALL OResultSet::getBytes( sal_Int32 columnIndex ) thro
}
}
return
nRet
;
return
nRet
;
}
}
Sequence
<
sal_Int8
>
SAL_CALL
OResultSet
::
impl_getBytes
(
sal_Int32
columnIndex
)
throw
(
SQLException
,
RuntimeException
)
Sequence
<
sal_Int8
>
OResultSet
::
impl_getBytes
(
sal_Int32
columnIndex
)
throw
(
SQLException
,
RuntimeException
)
{
{
const
SWORD
nColumnType
=
impl_getColumnType_nothrow
(
columnIndex
);
const
SWORD
nColumnType
=
impl_getColumnType_nothrow
(
columnIndex
);
...
@@ -531,7 +531,7 @@ Sequence< sal_Int8 > SAL_CALL OResultSet::impl_getBytes( sal_Int32 columnIndex )
...
@@ -531,7 +531,7 @@ Sequence< sal_Int8 > SAL_CALL OResultSet::impl_getBytes( sal_Int32 columnIndex )
}
}
}
}
// -------------------------------------------------------------------------
// -------------------------------------------------------------------------
Date
SAL_CALL
OResultSet
::
impl_getDate
(
sal_Int32
columnIndex
)
throw
(
SQLException
,
RuntimeException
)
Date
OResultSet
::
impl_getDate
(
sal_Int32
columnIndex
)
throw
(
SQLException
,
RuntimeException
)
{
{
DATE_STRUCT
aDate
=
impl_getValue
<
DATE_STRUCT
>
(
columnIndex
,
DATE_STRUCT
aDate
=
impl_getValue
<
DATE_STRUCT
>
(
columnIndex
,
m_pStatement
->
getOwnConnection
()
->
useOldDateFormat
()
?
SQL_C_DATE
:
SQL_C_TYPE_DATE
);
m_pStatement
->
getOwnConnection
()
->
useOldDateFormat
()
?
SQL_C_DATE
:
SQL_C_TYPE_DATE
);
...
@@ -570,7 +570,7 @@ sal_Int64 SAL_CALL OResultSet::getLong( sal_Int32 columnIndex ) throw(SQLExcepti
...
@@ -570,7 +570,7 @@ sal_Int64 SAL_CALL OResultSet::getLong( sal_Int32 columnIndex ) throw(SQLExcepti
{
{
return
getValue
<
sal_Int64
>
(
columnIndex
);
return
getValue
<
sal_Int64
>
(
columnIndex
);
}
}
sal_Int64
SAL_CALL
OResultSet
::
impl_getLong
(
sal_Int32
columnIndex
)
throw
(
SQLException
,
RuntimeException
)
sal_Int64
OResultSet
::
impl_getLong
(
sal_Int32
columnIndex
)
throw
(
SQLException
,
RuntimeException
)
{
{
try
try
{
{
...
@@ -646,7 +646,7 @@ Any SAL_CALL OResultSet::getObject( sal_Int32 columnIndex, const Reference< ::co
...
@@ -646,7 +646,7 @@ Any SAL_CALL OResultSet::getObject( sal_Int32 columnIndex, const Reference< ::co
return
getValue
<
rtl
::
OUString
>
(
columnIndex
);
return
getValue
<
rtl
::
OUString
>
(
columnIndex
);
}
}
// -------------------------------------------------------------------------
// -------------------------------------------------------------------------
Time
SAL_CALL
OResultSet
::
impl_getTime
(
sal_Int32
columnIndex
)
throw
(
SQLException
,
RuntimeException
)
Time
OResultSet
::
impl_getTime
(
sal_Int32
columnIndex
)
throw
(
SQLException
,
RuntimeException
)
{
{
TIME_STRUCT
aTime
=
impl_getValue
<
TIME_STRUCT
>
(
columnIndex
,
TIME_STRUCT
aTime
=
impl_getValue
<
TIME_STRUCT
>
(
columnIndex
,
m_pStatement
->
getOwnConnection
()
->
useOldDateFormat
()
?
SQL_C_TIME
:
SQL_C_TYPE_TIME
);
m_pStatement
->
getOwnConnection
()
->
useOldDateFormat
()
?
SQL_C_TIME
:
SQL_C_TYPE_TIME
);
...
@@ -658,7 +658,7 @@ Time SAL_CALL OResultSet::getTime( sal_Int32 columnIndex ) throw(SQLException, R
...
@@ -658,7 +658,7 @@ Time SAL_CALL OResultSet::getTime( sal_Int32 columnIndex ) throw(SQLException, R
return
getValue
<
Time
>
(
columnIndex
);
return
getValue
<
Time
>
(
columnIndex
);
}
}
// -------------------------------------------------------------------------
// -------------------------------------------------------------------------
DateTime
SAL_CALL
OResultSet
::
impl_getTimestamp
(
sal_Int32
columnIndex
)
throw
(
SQLException
,
RuntimeException
)
DateTime
OResultSet
::
impl_getTimestamp
(
sal_Int32
columnIndex
)
throw
(
SQLException
,
RuntimeException
)
{
{
TIMESTAMP_STRUCT
aTime
=
impl_getValue
<
TIMESTAMP_STRUCT
>
(
columnIndex
,
TIMESTAMP_STRUCT
aTime
=
impl_getValue
<
TIMESTAMP_STRUCT
>
(
columnIndex
,
m_pStatement
->
getOwnConnection
()
->
useOldDateFormat
()
?
SQL_C_TIMESTAMP
:
SQL_C_TYPE_TIMESTAMP
);
m_pStatement
->
getOwnConnection
()
->
useOldDateFormat
()
?
SQL_C_TIMESTAMP
:
SQL_C_TYPE_TIMESTAMP
);
...
...
connectivity/source/inc/odbc/OResultSet.hxx
Dosyayı görüntüle @
d497d70a
...
@@ -182,14 +182,14 @@ namespace connectivity
...
@@ -182,14 +182,14 @@ namespace connectivity
// for simple cases
// for simple cases
template
<
typename
T
>
T
impl_getValue
(
const
sal_Int32
_nColumnIndex
,
SQLSMALLINT
nType
);
template
<
typename
T
>
T
impl_getValue
(
const
sal_Int32
_nColumnIndex
,
SQLSMALLINT
nType
);
// these cases need some special treatment
// these cases need some special treatment
sal_Bool
SAL_CALL
impl_getBoolean
(
sal_Int32
columnIndex
)
throw
(
::
com
::
sun
::
star
::
sdbc
::
SQLException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
sal_Bool
impl_getBoolean
(
sal_Int32
columnIndex
)
throw
(
::
com
::
sun
::
star
::
sdbc
::
SQLException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
::
com
::
sun
::
star
::
uno
::
Sequence
<
sal_Int8
>
SAL_CALL
impl_getBytes
(
sal_Int32
columnIndex
)
throw
(
::
com
::
sun
::
star
::
sdbc
::
SQLException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
::
com
::
sun
::
star
::
uno
::
Sequence
<
sal_Int8
>
impl_getBytes
(
sal_Int32
columnIndex
)
throw
(
::
com
::
sun
::
star
::
sdbc
::
SQLException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
::
com
::
sun
::
star
::
util
::
Date
SAL_CALL
impl_getDate
(
sal_Int32
columnIndex
)
throw
(
::
com
::
sun
::
star
::
sdbc
::
SQLException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
::
com
::
sun
::
star
::
util
::
Date
impl_getDate
(
sal_Int32
columnIndex
)
throw
(
::
com
::
sun
::
star
::
sdbc
::
SQLException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
::
com
::
sun
::
star
::
util
::
Time
SAL_CALL
impl_getTime
(
sal_Int32
columnIndex
)
throw
(
::
com
::
sun
::
star
::
sdbc
::
SQLException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
::
com
::
sun
::
star
::
util
::
Time
impl_getTime
(
sal_Int32
columnIndex
)
throw
(
::
com
::
sun
::
star
::
sdbc
::
SQLException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
::
com
::
sun
::
star
::
util
::
DateTime
SAL_CALL
impl_getTimestamp
(
sal_Int32
columnIndex
)
throw
(
::
com
::
sun
::
star
::
sdbc
::
SQLException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
::
com
::
sun
::
star
::
util
::
DateTime
impl_getTimestamp
(
sal_Int32
columnIndex
)
throw
(
::
com
::
sun
::
star
::
sdbc
::
SQLException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
sal_Int64
SAL_CALL
impl_getLong
(
sal_Int32
columnIndex
)
throw
(
::
com
::
sun
::
star
::
sdbc
::
SQLException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
sal_Int64
impl_getLong
(
sal_Int32
columnIndex
)
throw
(
::
com
::
sun
::
star
::
sdbc
::
SQLException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
::
rtl
::
OUString
SAL_CALL
impl_getString
(
sal_Int32
columnIndex
)
throw
(
::
com
::
sun
::
star
::
sdbc
::
SQLException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
::
rtl
::
OUString
impl_getString
(
sal_Int32
columnIndex
)
throw
(
::
com
::
sun
::
star
::
sdbc
::
SQLException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
::
com
::
sun
::
star
::
uno
::
Sequence
<
sal_Int8
>
SAL_CALL
impl_getBookmark
(
)
throw
(
::
com
::
sun
::
star
::
sdbc
::
SQLException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
::
com
::
sun
::
star
::
uno
::
Sequence
<
sal_Int8
>
impl_getBookmark
(
)
throw
(
::
com
::
sun
::
star
::
sdbc
::
SQLException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
// OPropertyArrayUsageHelper
// OPropertyArrayUsageHelper
...
...
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