Permalink
Browse files

Fixed invalid parameters binding

  • Loading branch information...
akashihi committed Mar 18, 2011
1 parent 40f7d29 commit 6bc5053074907de96bab9d4ff3e53caacdad5fe3
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/backends/db2/soci-db2.h
  2. +1 −1 src/backends/db2/standard-use-type.cpp
@@ -107,7 +107,7 @@ struct SOCI_DB2_DECL db2_vector_into_type_backend : details::vector_into_type_ba
struct SOCI_DB2_DECL db2_standard_use_type_backend : details::standard_use_type_backend
{
db2_standard_use_type_backend(db2_statement_backend &st)
: statement_(st),buf(NULL)
: statement_(st),buf(NULL),indptr(NULL)
{}
void bind_by_pos(int& position, void* data, details::exchange_type type, bool readOnly);
@@ -106,7 +106,7 @@ void db2_standard_use_type_backend::bind_helper(int &position, void *data, detai
SQLRETURN cliRC = SQLBindParameter(statement_.hStmt,
static_cast<SQLUSMALLINT>(position++),
SQL_PARAM_INPUT,
cType, sqlType, size, 0, data, 0, &indptr);
cType, sqlType, size, 0, data, size, &indptr);
if (cliRC != SQL_SUCCESS)
{

0 comments on commit 6bc5053

Please sign in to comment.