Skip to content

Commit

Permalink
Removed x_unsigned_log from the db2 backend.
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Chapligin committed Feb 5, 2013
1 parent 4e208c0 commit cec8c7e
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 53 deletions.
4 changes: 0 additions & 4 deletions src/backends/db2/standard-into-type.cpp
Expand Up @@ -50,10 +50,6 @@ void db2_standard_into_type_backend::define_by_pos(
cType = SQL_C_SLONG;
size = sizeof(long);
break;
case x_unsigned_long:
cType = SQL_C_ULONG;
size = sizeof(unsigned long);
break;
case x_long_long:
cType = SQL_C_SBIGINT;
size = sizeof(long long);
Expand Down
5 changes: 0 additions & 5 deletions src/backends/db2/standard-use-type.cpp
Expand Up @@ -31,11 +31,6 @@ void db2_standard_use_type_backend::prepare_for_bind(
cType = SQL_C_SLONG;
size = sizeof(int);
break;
case x_unsigned_long:
sqlType = SQL_INTEGER;
cType = SQL_C_ULONG;
size = sizeof(unsigned long);
break;
case x_long_long:
sqlType = SQL_BIGINT;
cType = SQL_C_SBIGINT;
Expand Down
25 changes: 0 additions & 25 deletions src/backends/db2/vector-into-type.cpp
Expand Up @@ -59,17 +59,6 @@ void db2_vector_into_type_backend::define_by_pos(
data = &v[0];
}
break;
case x_unsigned_long:
{
cType = SQL_C_ULONG;
size = sizeof(unsigned long);
std::vector<unsigned long> *vp
= static_cast<std::vector<unsigned long> *>(data);
std::vector<unsigned long> &v(*vp);
prepare_indicators(v.size());
data = &v[0];
}
break;
case x_long_long:
{
cType = SQL_C_SBIGINT;
Expand Down Expand Up @@ -302,13 +291,6 @@ void db2_vector_into_type_backend::resize(std::size_t sz)
v->resize(sz);
}
break;
case x_unsigned_long:
{
std::vector<unsigned long> *v
= static_cast<std::vector<unsigned long> *>(data);
v->resize(sz);
}
break;
case x_long_long:
{
std::vector<long long> *v
Expand Down Expand Up @@ -375,13 +357,6 @@ std::size_t db2_vector_into_type_backend::size()
sz = v->size();
}
break;
case x_unsigned_long:
{
std::vector<unsigned long> *v
= static_cast<std::vector<unsigned long> *>(data);
sz = v->size();
}
break;
case x_long_long:
{
std::vector<long long> *v
Expand Down
19 changes: 0 additions & 19 deletions src/backends/db2/vector-use-type.cpp
Expand Up @@ -63,18 +63,6 @@ void db2_vector_use_type_backend::prepare_for_bind(void *&data, SQLUINTEGER &siz
data = &v[0];
}
break;
case x_unsigned_long:
{
sqlType = SQL_INTEGER;
cType = SQL_C_ULONG;
size = sizeof(unsigned long);
std::vector<unsigned long> *vp
= static_cast<std::vector<unsigned long> *>(data);
std::vector<unsigned long> &v(*vp);
prepare_indicators(v.size());
data = &v[0];
}
break;
case x_long_long:
{
sqlType = SQL_BIGINT;
Expand Down Expand Up @@ -343,13 +331,6 @@ std::size_t db2_vector_use_type_backend::size()
sz = vp->size();
}
break;
case x_unsigned_long:
{
std::vector<unsigned long> *vp
= static_cast<std::vector<unsigned long> *>(data);
sz = vp->size();
}
break;
case x_long_long:
{
std::vector<long long> *vp
Expand Down
4 changes: 4 additions & 0 deletions src/cmake/SociDependencies.cmake
Expand Up @@ -27,6 +27,10 @@ set(SOCI_BACKENDS_DB_DEPENDENCIES
SQLite3
DB2)

set(SOCI_BACKENDS_ALL_DEPENDENCIES
Boost
${SOCI_BACKENDS_DB_DEPENDENCIES})

#
# Perform checks
#
Expand Down

0 comments on commit cec8c7e

Please sign in to comment.