My favorites | Sign in
Project Home Downloads Wiki
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions

Issue 157 attachment: p (434 bytes)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/src/getdata.cpp b/src/getdata.cpp
index b526e7c..e4b62ba 100644
--- a/src/getdata.cpp
+++ b/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;
Powered by Google Project Hosting