diff --git a/Data/ODBC/src/Binder.cpp b/Data/ODBC/src/Binder.cpp index 5f2e99a28..b74b31d36 100644 --- a/Data/ODBC/src/Binder.cpp +++ b/Data/ODBC/src/Binder.cpp @@ -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) diff --git a/Data/ODBC/src/Extractor.cpp b/Data/ODBC/src/Extractor.cpp index df394bd8d..0eb8b0144 100644 --- a/Data/ODBC/src/Extractor.cpp +++ b/Data/ODBC/src/Extractor.cpp @@ -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()); } diff --git a/Data/ODBC/src/ODBCStatementImpl.cpp b/Data/ODBC/src/ODBCStatementImpl.cpp index 2aee16db3..564cfa80e 100644 --- a/Data/ODBC/src/ODBCStatementImpl.cpp +++ b/Data/ODBC/src/ODBCStatementImpl.cpp @@ -93,7 +93,10 @@ void ODBCStatementImpl::compileImpl() { Poco::Any dti = session().getProperty("dataTypeInfo"); pDT = AnyCast(dti); - }catch (NotSupportedException&) { } + } + catch (NotSupportedException&) + { + } std::size_t maxFieldSize = AnyCast(session().getProperty("maxFieldSize")); @@ -113,7 +116,8 @@ void ODBCStatementImpl::makeInternalExtractors() try { fillColumns(); - } catch (DataFormatException&) + } + catch (DataFormatException&) { if (isStoredProcedure()) return; throw; diff --git a/Data/ODBC/src/SessionImpl.cpp b/Data/ODBC/src/SessionImpl.cpp index 6c861e633..2c6f4a0d1 100644 --- a/Data/ODBC/src/SessionImpl.cpp +++ b/Data/ODBC/src/SessionImpl.cpp @@ -386,7 +386,10 @@ void SessionImpl::close() try { commit(); - }catch (ConnectionException&) { } + } + catch (ConnectionException&) + { + } SQLDisconnect(_db); } diff --git a/Data/include/Poco/Data/BulkExtraction.h b/Data/include/Poco/Data/BulkExtraction.h index 452c66e7f..58cba930e 100644 --- a/Data/include/Poco/Data/BulkExtraction.h +++ b/Data/include/Poco/Data/BulkExtraction.h @@ -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()); } diff --git a/Data/include/Poco/Data/Row.h b/Data/include/Poco/Data/Row.h index 56fa86dc2..315c63b3d 100644 --- a/Data/include/Poco/Data/Row.h +++ b/Data/include/Poco/Data/Row.h @@ -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."); } diff --git a/Data/include/Poco/Data/StatementImpl.h b/Data/include/Poco/Data/StatementImpl.h index 37b63b2c1..dc6956750 100644 --- a/Data/include/Poco/Data/StatementImpl.h +++ b/Data/include/Poco/Data/StatementImpl.h @@ -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()); } diff --git a/Data/src/Statement.cpp b/Data/src/Statement.cpp index b505e5fb6..900666ffb 100644 --- a/Data/src/Statement.cpp +++ b/Data/src/Statement.cpp @@ -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."); }