Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Issue 157 #4

Closed
wants to merge 2 commits into from

2 participants

@vikram

http://code.google.com/p/pyodbc/issues/detail?id=157

Hi,

I believe I have a fix for this issue. Pull it if you are happy with it.

Cheers
Vikram

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 20, 2011
  1. @vikram

    fix for issue 157

    vikram authored
Commits on Jul 21, 2011
  1. @vikram

    added a new tag

    vikram authored
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/getdata.cpp
View
4 src/getdata.cpp
@@ -464,8 +464,8 @@ GetDataLong(Cursor* cur, Py_ssize_t iCol)
{
ColumnInfo* pinfo = &cur->colinfos[iCol];
- long value = 0;
- SQLLEN cbFetched = 0;
+ SQLINTEGER value;
+ SQLLEN cbFetched;
SQLRETURN ret;
SQLSMALLINT nCType = pinfo->is_unsigned ? SQL_C_ULONG : SQL_C_LONG;
Something went wrong with that request. Please try again.