Skip to content

Commit

Permalink
Merge pull request #21 from maparent/id_64bits
Browse files Browse the repository at this point in the history
Invalid parameter values passed in, due to size mismatch.
  • Loading branch information
mkleehammer committed Oct 13, 2013
2 parents bf51c0e + 916c69e commit c80051c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/params.cpp
Expand Up @@ -302,7 +302,7 @@ static bool GetIntInfo(Cursor* cur, Py_ssize_t index, PyObject* param, ParamInfo
info.Data.l = PyInt_AsLong(param);

#if LONG_BIT == 64
info.ValueType = SQL_C_SBIGINT;
info.ValueType = SQL_C_LONG;
info.ParameterType = SQL_BIGINT;
#elif LONG_BIT == 32
info.ValueType = SQL_C_LONG;
Expand Down

0 comments on commit c80051c

Please sign in to comment.