ODBC fixes

This commit is contained in:
Günter Obiltschnig 2020-01-09 12:30:27 +01:00
parent 03d1dd9822
commit c111fc89f6
4 changed files with 0 additions and 12 deletions

View File

@ -173,7 +173,6 @@ public:
void bind(std::size_t pos, const std::list<Poco::UInt64>& val, Direction dir); void bind(std::size_t pos, const std::list<Poco::UInt64>& val, Direction dir);
/// Binds an UInt64 list. /// Binds an UInt64 list.
#ifndef POCO_LONG_IS_64_BIT
void bind(std::size_t pos, const long& val, Direction dir); void bind(std::size_t pos, const long& val, Direction dir);
/// Binds a long. /// Binds a long.
@ -188,7 +187,6 @@ public:
void bind(std::size_t pos, const std::list<long>& val, Direction dir); void bind(std::size_t pos, const std::list<long>& val, Direction dir);
/// Binds a long list. /// Binds a long list.
#endif
void bind(std::size_t pos, const bool& val, Direction dir); void bind(std::size_t pos, const bool& val, Direction dir);
/// Binds a boolean. /// Binds a boolean.
@ -1215,7 +1213,6 @@ inline void Binder::bind(std::size_t pos, const std::list<Poco::UInt64>& val, Di
} }
#ifndef POCO_LONG_IS_64_BIT
inline void Binder::bind(std::size_t pos, const long& val, Direction dir) inline void Binder::bind(std::size_t pos, const long& val, Direction dir)
{ {
bindImpl(pos, val, SQL_C_SLONG, dir); bindImpl(pos, val, SQL_C_SLONG, dir);
@ -1244,7 +1241,6 @@ inline void Binder::bind(std::size_t pos, const std::list<long>& val, Direction
{ {
bindImplContainer(pos, val, SQL_C_SLONG, dir); bindImplContainer(pos, val, SQL_C_SLONG, dir);
} }
#endif
inline void Binder::bind(std::size_t pos, const float& val, Direction dir) inline void Binder::bind(std::size_t pos, const float& val, Direction dir)

View File

@ -155,7 +155,6 @@ public:
bool extract(std::size_t pos, std::list<Poco::UInt64>& val); bool extract(std::size_t pos, std::list<Poco::UInt64>& val);
/// Extracts an UInt64 list. /// Extracts an UInt64 list.
#ifndef POCO_LONG_IS_64_BIT
bool extract(std::size_t pos, long& val); bool extract(std::size_t pos, long& val);
/// Extracts a long. /// Extracts a long.
@ -170,7 +169,6 @@ public:
bool extract(std::size_t pos, std::list<long>& val); bool extract(std::size_t pos, std::list<long>& val);
/// Extracts a long list. /// Extracts a long list.
#endif
bool extract(std::size_t pos, bool& val); bool extract(std::size_t pos, bool& val);
/// Extracts a boolean. /// Extracts a boolean.

View File

@ -204,7 +204,6 @@ public:
void prepare(std::size_t pos, const std::list<Poco::UInt64>& val); void prepare(std::size_t pos, const std::list<Poco::UInt64>& val);
/// Prepares an UInt64 list. /// Prepares an UInt64 list.
#ifndef POCO_LONG_IS_64_BIT
void prepare(std::size_t pos, const long& val); void prepare(std::size_t pos, const long& val);
/// Prepares a long. /// Prepares a long.
@ -219,7 +218,6 @@ public:
void prepare(std::size_t pos, const std::list<long>& val); void prepare(std::size_t pos, const std::list<long>& val);
/// Prepares a long list. /// Prepares a long list.
#endif
void prepare(std::size_t pos, const bool& val); void prepare(std::size_t pos, const bool& val);
/// Prepares a boolean. /// Prepares a boolean.
@ -877,7 +875,6 @@ inline void Preparator::prepare(std::size_t pos, const std::list<Poco::UInt64>&
} }
#ifndef POCO_LONG_IS_64_BIT
inline void Preparator::prepare(std::size_t pos, const long&) inline void Preparator::prepare(std::size_t pos, const long&)
{ {
prepareFixedSize<long>(pos, SQL_C_SLONG); prepareFixedSize<long>(pos, SQL_C_SLONG);
@ -906,7 +903,6 @@ inline void Preparator::prepare(std::size_t pos, const std::list<long>& val)
{ {
prepareFixedSize<long>(pos, SQL_C_SLONG, val.size()); prepareFixedSize<long>(pos, SQL_C_SLONG, val.size());
} }
#endif
inline void Preparator::prepare(std::size_t pos, const bool&) inline void Preparator::prepare(std::size_t pos, const bool&)

View File

@ -575,7 +575,6 @@ bool Extractor::extract(std::size_t pos, std::list<Poco::Int64>& val)
} }
#ifndef POCO_LONG_IS_64_BIT
bool Extractor::extract(std::size_t pos, long& val) bool Extractor::extract(std::size_t pos, long& val)
{ {
if (Preparator::DE_MANUAL == _dataExtraction) if (Preparator::DE_MANUAL == _dataExtraction)
@ -619,7 +618,6 @@ bool Extractor::extract(std::size_t pos, std::list<long>& val)
else else
throw InvalidAccessException("Direct container extraction only allowed for bound mode."); throw InvalidAccessException("Direct container extraction only allowed for bound mode.");
} }
#endif
bool Extractor::extract(std::size_t pos, double& val) bool Extractor::extract(std::size_t pos, double& val)