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
dbf99dfb
Kaydet (Commit)
dbf99dfb
authored
Tem 02, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
mysqlc: sal_Bool -> bool
Change-Id: Ie479e1671b03fbb958886d4c01ecff41b2ad1d23
üst
4776da79
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
33 additions
and
33 deletions
+33
-33
mysqlc_connection.cxx
mysqlc/source/mysqlc_connection.cxx
+8
-8
mysqlc_connection.hxx
mysqlc/source/mysqlc_connection.hxx
+5
-5
mysqlc_databasemetadata.cxx
mysqlc/source/mysqlc_databasemetadata.cxx
+6
-6
mysqlc_databasemetadata.hxx
mysqlc/source/mysqlc_databasemetadata.hxx
+4
-4
mysqlc_driver.cxx
mysqlc/source/mysqlc_driver.cxx
+1
-1
mysqlc_preparedstatement.cxx
mysqlc/source/mysqlc_preparedstatement.cxx
+1
-1
mysqlc_services.cxx
mysqlc/source/mysqlc_services.cxx
+1
-1
mysqlc_statement.cxx
mysqlc/source/mysqlc_statement.cxx
+2
-2
mysqlc_subcomponent.hxx
mysqlc/source/mysqlc_subcomponent.hxx
+1
-1
mysqlc_types.cxx
mysqlc/source/mysqlc_types.cxx
+0
-0
mysqlc_types.hxx
mysqlc/source/mysqlc_types.hxx
+4
-4
No files found.
mysqlc/source/mysqlc_connection.cxx
Dosyayı görüntüle @
dbf99dfb
...
...
@@ -67,9 +67,9 @@ OConnection::OConnection(MysqlCDriver& _rDriver, sql::Driver * _cppDriver)
,
m_xMetaData
(
NULL
)
,
m_rDriver
(
_rDriver
)
,
cppDriver
(
_cppDriver
)
,
m_bClosed
(
sal_F
alse
)
,
m_bUseCatalog
(
sal_F
alse
)
,
m_bUseOldDateFormat
(
sal_F
alse
)
,
m_bClosed
(
f
alse
)
,
m_bUseCatalog
(
f
alse
)
,
m_bUseOldDateFormat
(
f
alse
)
{
OSL_TRACE
(
"OConnection::OConnection"
);
m_rDriver
.
acquire
();
...
...
@@ -106,7 +106,7 @@ void OConnection::construct(const OUString& url, const Sequence< PropertyValue >
MutexGuard
aGuard
(
m_aMutex
);
sal_Int32
nIndex
;
sal_Bool
bEmbedded
=
sal_F
alse
;
bool
bEmbedded
=
f
alse
;
OUString
token
;
OUString
aHostName
(
"localhost"
);
sal_Int32
nPort
=
3306
;
...
...
@@ -121,7 +121,7 @@ void OConnection::construct(const OUString& url, const Sequence< PropertyValue >
if
(
url
.
startsWith
(
MYSQLC_URI_PREFIX
))
{
nIndex
=
12
;
}
else
{
bEmbedded
=
sal_T
rue
;
bEmbedded
=
t
rue
;
nIndex
=
20
;
mysqlc_sdbc_driver
::
throwFeatureNotImplementedException
(
"OConnection::construct (embedded MySQL)"
,
*
this
);
}
...
...
@@ -169,7 +169,7 @@ void OConnection::construct(const OUString& url, const Sequence< PropertyValue >
}
}
if
(
bEmbedded
==
sal_False
)
{
if
(
!
bEmbedded
)
{
try
{
sql
::
ConnectOptionsMap
connProps
;
std
::
string
host_str
=
OUStringToOString
(
aHostName
,
m_settings
.
encoding
).
getStr
();
...
...
@@ -348,7 +348,7 @@ sal_Bool SAL_CALL OConnection::getAutoCommit()
MutexGuard
aGuard
(
m_aMutex
);
checkDisposed
(
OConnection_BASE
::
rBHelper
.
bDisposed
);
sal_Bool
autoCommit
=
sal_F
alse
;
bool
autoCommit
=
f
alse
;
try
{
autoCommit
=
m_settings
.
cppConnection
->
getAutoCommit
()
==
true
?
sal_True
:
sal_False
;
}
catch
(
const
sql
::
SQLException
&
e
)
{
...
...
@@ -651,7 +651,7 @@ void OConnection::disposing()
}
m_aStatements
.
clear
();
m_bClosed
=
sal_T
rue
;
m_bClosed
=
t
rue
;
m_xMetaData
=
WeakReference
<
XDatabaseMetaData
>
();
dispose_ChildImpl
();
...
...
mysqlc/source/mysqlc_connection.hxx
Dosyayı görüntüle @
dbf99dfb
...
...
@@ -77,7 +77,7 @@ namespace connectivity
OUString
schema
;
OUString
quoteIdentifier
;
OUString
connectionURL
;
sal_B
ool
readOnly
;
b
ool
readOnly
;
};
class
MysqlCDriver
;
...
...
@@ -115,9 +115,9 @@ namespace connectivity
MysqlCDriver
&
m_rDriver
;
// Pointer to the owning driver object
sql
::
Driver
*
cppDriver
;
sal_B
ool
m_bClosed
;
sal_B
ool
m_bUseCatalog
;
// should we use the catalog on filebased databases
sal_B
ool
m_bUseOldDateFormat
;
b
ool
m_bClosed
;
b
ool
m_bUseCatalog
;
// should we use the catalog on filebased databases
b
ool
m_bUseOldDateFormat
;
void
buildTypeInfo
()
throw
(
SQLException
);
...
...
@@ -227,7 +227,7 @@ namespace connectivity
OUString
transFormPreparedStatement
(
const
OUString
&
_sSQL
);
// should we use the catalog on filebased databases
inline
sal_B
ool
isCatalogUsed
()
const
{
return
m_bUseCatalog
;
}
inline
b
ool
isCatalogUsed
()
const
{
return
m_bUseCatalog
;
}
inline
OUString
getUserName
()
const
{
return
m_sUser
;
}
inline
const
MysqlCDriver
&
getDriver
()
const
{
return
m_rDriver
;}
inline
rtl_TextEncoding
getTextEncoding
()
const
{
return
m_settings
.
encoding
;
}
...
...
mysqlc/source/mysqlc_databasemetadata.cxx
Dosyayı görüntüle @
dbf99dfb
...
...
@@ -81,7 +81,7 @@ void lcl_setRows_throw(const Reference< XResultSet >& _xResultSet,sal_Int32 _nTy
/* {{{ ODatabaseMetaData::ODatabaseMetaData() -I- */
ODatabaseMetaData
::
ODatabaseMetaData
(
OConnection
&
_rCon
)
:
m_rConnection
(
_rCon
)
,
m_bUseCatalog
(
sal_T
rue
)
,
m_bUseCatalog
(
t
rue
)
,
meta
(
_rCon
.
getConnectionSettings
().
cppConnection
->
getMetaData
())
,
identifier_quote_string_set
(
false
)
{
...
...
@@ -200,10 +200,10 @@ sal_Int32 ODatabaseMetaData::impl_getInt32MetaData(const sal_Char* _methodName,
/* {{{ ODatabaseMetaData::impl_getBoolMetaData() -I- */
sal_B
ool
ODatabaseMetaData
::
impl_getBoolMetaData
(
const
sal_Char
*
_methodName
,
bool
(
sql
::
DatabaseMetaData
::*
_Method
)()
)
b
ool
ODatabaseMetaData
::
impl_getBoolMetaData
(
const
sal_Char
*
_methodName
,
bool
(
sql
::
DatabaseMetaData
::*
_Method
)()
)
{
OSL_TRACE
(
"mysqlc::ODatabaseMetaData::%s"
,
_methodName
);
sal_Bool
boolMetaData
(
0
);
bool
boolMetaData
(
false
);
try
{
boolMetaData
=
(
meta
->*
_Method
)()
?
sal_True
:
sal_False
;
}
catch
(
const
sql
::
MethodNotImplementedException
&
)
{
...
...
@@ -219,10 +219,10 @@ sal_Bool ODatabaseMetaData::impl_getBoolMetaData(const sal_Char* _methodName, bo
/* {{{ ODatabaseMetaData::impl_getBoolMetaData() -I- */
sal_B
ool
ODatabaseMetaData
::
impl_getBoolMetaData
(
const
sal_Char
*
_methodName
,
bool
(
sql
::
DatabaseMetaData
::*
_Method
)(
int
),
sal_Int32
_arg
)
b
ool
ODatabaseMetaData
::
impl_getBoolMetaData
(
const
sal_Char
*
_methodName
,
bool
(
sql
::
DatabaseMetaData
::*
_Method
)(
int
),
sal_Int32
_arg
)
{
OSL_TRACE
(
"mysqlc::ODatabaseMetaData::%s"
,
_methodName
);
sal_Bool
boolMetaData
(
0
);
bool
boolMetaData
(
false
);
try
{
boolMetaData
=
(
meta
->*
_Method
)(
_arg
)
?
sal_True
:
sal_False
;
}
catch
(
const
sql
::
MethodNotImplementedException
&
)
{
...
...
@@ -238,7 +238,7 @@ sal_Bool ODatabaseMetaData::impl_getBoolMetaData(const sal_Char* _methodName, bo
/* {{{ ODatabaseMetaData::impl_getRSTypeMetaData() -I- */
sal_B
ool
ODatabaseMetaData
::
impl_getRSTypeMetaData
(
const
sal_Char
*
_methodName
,
bool
(
sql
::
DatabaseMetaData
::*
_Method
)(
int
),
sal_Int32
_resultSetType
)
b
ool
ODatabaseMetaData
::
impl_getRSTypeMetaData
(
const
sal_Char
*
_methodName
,
bool
(
sql
::
DatabaseMetaData
::*
_Method
)(
int
),
sal_Int32
_resultSetType
)
{
int
resultSetType
(
sql
::
ResultSet
::
TYPE_FORWARD_ONLY
);
switch
(
_resultSetType
)
{
...
...
mysqlc/source/mysqlc_databasemetadata.hxx
Dosyayı görüntüle @
dbf99dfb
...
...
@@ -45,7 +45,7 @@ namespace connectivity
class
ODatabaseMetaData
:
public
ODatabaseMetaData_BASE
{
OConnection
&
m_rConnection
;
sal_B
ool
m_bUseCatalog
;
b
ool
m_bUseCatalog
;
protected
:
sql
::
DatabaseMetaData
*
meta
;
OUString
identifier_quote_string
;
...
...
@@ -57,9 +57,9 @@ namespace connectivity
OUString
impl_getStringMetaData
(
const
sal_Char
*
_methodName
,
const
sql
::
SQLString
&
(
sql
::
DatabaseMetaData
::*
_Method
)()
);
OUString
impl_getStringMetaData
(
const
sal_Char
*
_methodName
,
sql
::
SQLString
(
sql
::
DatabaseMetaData
::*
_Method
)()
);
sal_Int32
impl_getInt32MetaData
(
const
sal_Char
*
_methodName
,
unsigned
int
(
sql
::
DatabaseMetaData
::*
_Method
)()
);
sal_B
ool
impl_getBoolMetaData
(
const
sal_Char
*
_methodName
,
bool
(
sql
::
DatabaseMetaData
::*
_Method
)()
);
sal_B
ool
impl_getBoolMetaData
(
const
sal_Char
*
_methodName
,
bool
(
sql
::
DatabaseMetaData
::*
_Method
)(
int
),
sal_Int32
_arg
);
sal_B
ool
impl_getRSTypeMetaData
(
const
sal_Char
*
_methodName
,
bool
(
sql
::
DatabaseMetaData
::*
_Method
)(
int
),
sal_Int32
_resultSetType
);
b
ool
impl_getBoolMetaData
(
const
sal_Char
*
_methodName
,
bool
(
sql
::
DatabaseMetaData
::*
_Method
)()
);
b
ool
impl_getBoolMetaData
(
const
sal_Char
*
_methodName
,
bool
(
sql
::
DatabaseMetaData
::*
_Method
)(
int
),
sal_Int32
_arg
);
b
ool
impl_getRSTypeMetaData
(
const
sal_Char
*
_methodName
,
bool
(
sql
::
DatabaseMetaData
::*
_Method
)(
int
),
sal_Int32
_resultSetType
);
public
:
inline
const
OConnection
&
getOwnConnection
()
const
{
return
m_rConnection
;
}
...
...
mysqlc/source/mysqlc_driver.cxx
Dosyayı görüntüle @
dbf99dfb
...
...
@@ -342,7 +342,7 @@ void release(oslInterlockedCount& _refCount,
/* }}} */
/* {{{ connectivity::mysqlc::checkDisposed() -I- */
void
checkDisposed
(
sal_B
ool
_bThrow
)
void
checkDisposed
(
b
ool
_bThrow
)
throw
(
DisposedException
)
{
if
(
_bThrow
)
{
...
...
mysqlc/source/mysqlc_preparedstatement.cxx
Dosyayı görüntüle @
dbf99dfb
...
...
@@ -204,7 +204,7 @@ sal_Bool SAL_CALL OPreparedStatement::execute()
MutexGuard
aGuard
(
m_aMutex
);
checkDisposed
(
OPreparedStatement
::
rBHelper
.
bDisposed
);
sal_Bool
success
=
sal_F
alse
;
bool
success
=
f
alse
;
try
{
success
=
((
sql
::
PreparedStatement
*
)
cppStatement
)
->
execute
()
?
sal_True
:
sal_False
;
}
catch
(
const
sql
::
SQLException
&
e
)
{
...
...
mysqlc/source/mysqlc_services.cxx
Dosyayı görüntüle @
dbf99dfb
...
...
@@ -55,7 +55,7 @@ struct ProviderRequest
}
/* {{{ CREATE_PROVIDER -I- */
inline
sal_B
ool
CREATE_PROVIDER
(
inline
b
ool
CREATE_PROVIDER
(
const
OUString
&
Implname
,
const
Sequence
<
OUString
>
&
Services
,
::
cppu
::
ComponentInstantiation
Factory
,
...
...
mysqlc/source/mysqlc_statement.cxx
Dosyayı görüntüle @
dbf99dfb
...
...
@@ -179,7 +179,7 @@ sal_Bool SAL_CALL OCommonStatement::execute(const OUString& sql)
checkDisposed
(
rBHelper
.
bDisposed
);
const
OUString
sSqlStatement
=
m_pConnection
->
transFormPreparedStatement
(
sql
);
sal_B
ool
success
=
false
;
b
ool
success
=
false
;
try
{
success
=
cppStatement
->
execute
(
OUStringToOString
(
sSqlStatement
,
m_pConnection
->
getConnectionSettings
().
encoding
).
getStr
())
?
sal_True
:
sal_False
;
}
catch
(
const
sql
::
SQLException
&
e
)
{
...
...
@@ -401,7 +401,7 @@ sal_Bool OCommonStatement::convertFastPropertyValue(
throw
(
IllegalArgumentException
)
{
OSL_TRACE
(
"OCommonStatement::convertFastPropertyValue"
);
sal_Bool
bConverted
=
sal_F
alse
;
bool
bConverted
=
f
alse
;
// here we have to try to convert
return
bConverted
;
}
...
...
mysqlc/source/mysqlc_subcomponent.hxx
Dosyayı görüntüle @
dbf99dfb
...
...
@@ -55,7 +55,7 @@ namespace connectivity
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
uno
::
XInterface
>&
_xInterface
,
::
com
::
sun
::
star
::
lang
::
XComponent
*
_pObject
);
void
checkDisposed
(
sal_B
ool
_bThrow
)
throw
(
::
com
::
sun
::
star
::
lang
::
DisposedException
);
void
checkDisposed
(
b
ool
_bThrow
)
throw
(
::
com
::
sun
::
star
::
lang
::
DisposedException
);
template
<
class
SELF
,
class
WEAK
>
class
OSubComponent
{
...
...
mysqlc/source/mysqlc_types.cxx
Dosyayı görüntüle @
dbf99dfb
This diff is collapsed.
Click to expand it.
mysqlc/source/mysqlc_types.hxx
Dosyayı görüntüle @
dbf99dfb
...
...
@@ -28,11 +28,11 @@ struct TypeInfoDef {
const
char
*
literalSuffix
;
const
char
*
createParams
;
sal_Int16
nullable
;
sal_B
ool
caseSensitive
;
b
ool
caseSensitive
;
sal_Int16
searchable
;
sal_B
ool
isUnsigned
;
sal_B
ool
fixedPrecScale
;
sal_B
ool
autoIncrement
;
b
ool
isUnsigned
;
b
ool
fixedPrecScale
;
b
ool
autoIncrement
;
const
char
*
localTypeName
;
sal_Int32
minScale
;
sal_Int32
maxScale
;
...
...
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