summaryrefslogtreecommitdiff
path: root/mysqlc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-05-08 09:45:56 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-05-08 09:49:03 +0200
commitc215ca9197364df1211c72ff310d6332ff5833d3 (patch)
tree04b571497cd3ed918042ee7b2073fb79c9662185 /mysqlc
parent2302e27d80d8900d23452ae50a41276f43dfbc6c (diff)
css.sdbc.XResultSetMetaData.isNullable return type is long (oddly enough)
Change-Id: I6ca98540a623f921f8d05e71dc67b64948467f52
Diffstat (limited to 'mysqlc')
-rw-r--r--mysqlc/source/mysqlc_resultsetmetadata.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/mysqlc/source/mysqlc_resultsetmetadata.cxx b/mysqlc/source/mysqlc_resultsetmetadata.cxx
index 26f76afd55fe..2f6b83ff3007 100644
--- a/mysqlc/source/mysqlc_resultsetmetadata.cxx
+++ b/mysqlc/source/mysqlc_resultsetmetadata.cxx
@@ -291,13 +291,13 @@ sal_Int32 SAL_CALL OResultSetMetaData::isNullable(sal_Int32 column)
checkColumnIndex(column);
try {
- return meta->isNullable(column)? sal_True:sal_False;
+ return sal_Int32(bool(meta->isNullable(column)));
} catch (const sql::MethodNotImplementedException &) {
mysqlc_sdbc_driver::throwFeatureNotImplementedException("OResultSetMetaData::getMetaData", *this);
} catch (const sql::SQLException &e) {
mysqlc_sdbc_driver::translateAndThrow(e, *this, m_encoding);
}
- return sal_False; // fool compiler
+ return sal_Int32(false); // fool compiler
}
sal_Bool SAL_CALL OResultSetMetaData::isSearchable(sal_Int32 column)