mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-12 18:20:26 +01:00
style fixes
This commit is contained in:
parent
7448e16b76
commit
4ee483d930
@ -445,7 +445,10 @@ void Binder::getColSizeAndPrecision(std::size_t pos,
|
||||
colSize = (SQLINTEGER) p.columnSize();
|
||||
decDigits = (SQLSMALLINT) p.decimalDigits();
|
||||
return;
|
||||
} catch (StatementException&) { }
|
||||
}
|
||||
catch (StatementException&)
|
||||
{
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
@ -453,7 +456,10 @@ void Binder::getColSizeAndPrecision(std::size_t pos,
|
||||
colSize = (SQLINTEGER) c.length();
|
||||
decDigits = (SQLSMALLINT) c.precision();
|
||||
return;
|
||||
} catch (StatementException&) { }
|
||||
}
|
||||
catch (StatementException&)
|
||||
{
|
||||
}
|
||||
|
||||
// no success, set to zero and hope for the best
|
||||
// (most drivers do not require these most of the times anyway)
|
||||
|
@ -1292,7 +1292,8 @@ bool Extractor::isNull(std::size_t col, std::size_t row)
|
||||
try
|
||||
{
|
||||
return isNullLengthIndicator(_lengths.at(col));
|
||||
} catch (std::out_of_range& ex)
|
||||
}
|
||||
catch (std::out_of_range& ex)
|
||||
{
|
||||
throw RangeException(ex.what());
|
||||
}
|
||||
|
@ -93,7 +93,10 @@ void ODBCStatementImpl::compileImpl()
|
||||
{
|
||||
Poco::Any dti = session().getProperty("dataTypeInfo");
|
||||
pDT = AnyCast<TypeInfo*>(dti);
|
||||
}catch (NotSupportedException&) { }
|
||||
}
|
||||
catch (NotSupportedException&)
|
||||
{
|
||||
}
|
||||
|
||||
std::size_t maxFieldSize = AnyCast<std::size_t>(session().getProperty("maxFieldSize"));
|
||||
|
||||
@ -113,7 +116,8 @@ void ODBCStatementImpl::makeInternalExtractors()
|
||||
try
|
||||
{
|
||||
fillColumns();
|
||||
} catch (DataFormatException&)
|
||||
}
|
||||
catch (DataFormatException&)
|
||||
{
|
||||
if (isStoredProcedure()) return;
|
||||
throw;
|
||||
|
@ -386,7 +386,10 @@ void SessionImpl::close()
|
||||
try
|
||||
{
|
||||
commit();
|
||||
}catch (ConnectionException&) { }
|
||||
}
|
||||
catch (ConnectionException&)
|
||||
{
|
||||
}
|
||||
|
||||
SQLDisconnect(_db);
|
||||
}
|
||||
|
@ -88,7 +88,8 @@ public:
|
||||
try
|
||||
{
|
||||
return _nulls.at(row);
|
||||
}catch (std::out_of_range& ex)
|
||||
}
|
||||
catch (std::out_of_range& ex)
|
||||
{
|
||||
throw RangeException(ex.what());
|
||||
}
|
||||
|
@ -121,7 +121,8 @@ public:
|
||||
try
|
||||
{
|
||||
_values.at(pos) = val;
|
||||
}catch (std::out_of_range&)
|
||||
}
|
||||
catch (std::out_of_range&)
|
||||
{
|
||||
throw RangeException("Invalid column number.");
|
||||
}
|
||||
|
@ -543,7 +543,8 @@ inline bool StatementImpl::isNull(std::size_t col, std::size_t row) const
|
||||
try
|
||||
{
|
||||
return extractions().at(col)->isNull(row);
|
||||
}catch (std::out_of_range& ex)
|
||||
}
|
||||
catch (std::out_of_range& ex)
|
||||
{
|
||||
throw RangeException(ex.what());
|
||||
}
|
||||
|
@ -111,8 +111,8 @@ std::size_t Statement::execute(bool reset)
|
||||
doAsyncExec();
|
||||
return 0;
|
||||
}
|
||||
} else
|
||||
throw InvalidAccessException("Statement still executing.");
|
||||
}
|
||||
else throw InvalidAccessException("Statement still executing.");
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user