css.sdbc.XResultSetMetaData.isNullable return type is long (oddly enough)
Change-Id: I6ca98540a623f921f8d05e71dc67b64948467f52
This commit is contained in:
@@ -291,13 +291,13 @@ sal_Int32 SAL_CALL OResultSetMetaData::isNullable(sal_Int32 column)
|
|||||||
checkColumnIndex(column);
|
checkColumnIndex(column);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
return meta->isNullable(column)? sal_True:sal_False;
|
return sal_Int32(bool(meta->isNullable(column)));
|
||||||
} catch (const sql::MethodNotImplementedException &) {
|
} catch (const sql::MethodNotImplementedException &) {
|
||||||
mysqlc_sdbc_driver::throwFeatureNotImplementedException("OResultSetMetaData::getMetaData", *this);
|
mysqlc_sdbc_driver::throwFeatureNotImplementedException("OResultSetMetaData::getMetaData", *this);
|
||||||
} catch (const sql::SQLException &e) {
|
} catch (const sql::SQLException &e) {
|
||||||
mysqlc_sdbc_driver::translateAndThrow(e, *this, m_encoding);
|
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)
|
sal_Bool SAL_CALL OResultSetMetaData::isSearchable(sal_Int32 column)
|
||||||
|
Reference in New Issue
Block a user