Google Code Exporter

Results 21344 comments of Google Code Exporter

``` I think you are correct, it is something to do with how ODBC types are defined on your system. I hate this - that is why I use Go...

``` Here you are, Alex: [oracle@custservices odbc]$ go test -run=ALEX warning: building out-of-date packages: code.google.com/p/odbc/api installing these packages with 'go test -i' will speed future tests. api.SQL_NULL_DATA=-1 unsafe.Sizeof(api.SQLLEN)=8 l=-1 PASS...

``` Here is another test: diff -r 703276ff5038 mssql_test.go --- a/mssql_test.go Fri Nov 01 11:01:50 2013 +1100 +++ b/mssql_test.go Wed Nov 13 01:48:57 2013 +0000 @@ -13,10 +13,14 @@ "strconv"...

``` Well, could it be that in NewVariableWidthColumn, colWidth is api.SQLULEN, not api.SQLLEN? ``` Original comment by `victor.kryukov` on 13 Nov 2013 at 1:54

``` I don't think so. I am thinking - I am a slow thinker. Alex ``` Original comment by `[email protected]` on 13 Nov 2013 at 1:58

``` What about if you make this change: diff --git a/odbcstmt.go b/odbcstmt.go --- a/odbcstmt.go +++ b/odbcstmt.go @@ -130,7 +130,7 @@ } // fetch column descriptions s.Cols = make([]Column, n) -...

``` No, same problem: === RUN TestMSSQLCreateInsertDelete --- FAIL: TestMSSQLCreateInsertDelete (0.03 seconds) panic: runtime error: slice bounds out of range [recovered] panic: runtime error: slice bounds out of range goroutine...

``` I am still puzzled. I suspect your SQLBindCol and SQLGetData return unexpected (maybe invalid) values. Can you apply this patch: diff --git a/column.go b/column.go --- a/column.go +++ b/column.go @@...

``` Here you are: === RUN TestMSSQLALEX before GetData: c=&{BaseColumn:0xc200087580 IsBound:false IsVariableWidth:true Size:11 Len:{Pre:0 Value:0 Post:0} Buffer:[0 0 0 0 0 0 0 0 0 0 0] smallBuf:[0 0 0...