weigj / go-odbc

ODBC Driver for Go language
Other
122 stars 49 forks source link

Minor change to get SQL_INTEGER working #3

Open jtowell opened 13 years ago

jtowell commented 13 years ago

SQL_INTEGER wasn't working on Windows 2003 server. I found the fix was to change C.HANDLE to C.int.

Example patch.

--- /weigj-go-odbc-514210d/odbc.go +++ /weigj-go-odbc-514210d-2/odbc.go @@ -435,7 +435,7 @@ var fl C.SQLLEN = C.SQLLEN(field_len) switch int(field_type) { case C.SQL_BIT, C.SQL_INTEGER, C.SQL_SMALLINT, C.SQL_TINYINT:

jeremyhappens commented 13 years ago

+1 I've also encountered this issue working with sql server 2008.