Comments (7)
What is your OS where your program runs? Linux or Windows?
Alex
Original comment by [email protected]
on 22 Jan 2014 at 10:24
from odbc.
Linux
Original comment by [email protected]
on 24 Jan 2014 at 12:20
from odbc.
Sorry, I didn't have time to investigate your problems. But I will look into
them as soon as I can. (I need to find a way to install "ODBC Driver 11 for SQL
Server" driver on a Linux computer, to see the problem.)
Alex
Original comment by [email protected]
on 30 Jan 2014 at 10:29
from odbc.
Can you, please, try this change:
diff --git a/param.go b/param.go
--- a/param.go
+++ b/param.go
@@ -8,7 +8,6 @@
"code.google.com/p/odbc/api"
"database/sql/driver"
"fmt"
- "runtime"
"time"
"unsafe"
)
@@ -150,18 +149,17 @@
}
ps := make([]Parameter, n)
// fetch param descriptions
- if runtime.GOOS == "windows" {
- // SQLDescribeParam is not implemented by freedts
- for i := range ps {
- p := &ps[i]
- ret = api.SQLDescribeParam(h, api.SQLUSMALLINT(i+1),
- &p.SQLType, &p.Size, &p.Decimal, &nullable)
- if IsError(ret) {
- // will try request without these descriptions
- continue
- }
- p.isDescribed = true
+ for i := range ps {
+ p := &ps[i]
+ ret = api.SQLDescribeParam(h, api.SQLUSMALLINT(i+1),
+ &p.SQLType, &p.Size, &p.Decimal, &nullable)
+ if IsError(ret) {
+ // SQLDescribeParam is not implemented by freedts,
+ // it even fails for some statements on windows.
+ // Will try request without these descriptions
+ continue
}
+ p.isDescribed = true
}
return ps, nil
}
See if that helps. Thank you.
Alex
Original comment by [email protected]
on 4 Feb 2014 at 6:28
from odbc.
I think this https://codereview.appspot.com/60540043/ will fix it. Please
review. Thank you.
Alex
Original comment by [email protected]
on 6 Feb 2014 at 6:15
- Changed state: Started
from odbc.
All test passed. Thank you.
Original comment by [email protected]
on 7 Feb 2014 at 12:50
from odbc.
This issue was closed by revision 79ae99114308.
Original comment by [email protected]
on 7 Feb 2014 at 1:40
- Changed state: Fixed
from odbc.
Related Issues (20)
- Add tags to the repo HOT 1
- Implement QueryerContext interface HOT 1
- Implement RowsColumnTypeDatabaseTypeName HOT 1
- error when build from linux HOT 2
- only half of unicode string is inserted.
- Issue with Unixodbc-2.3.7 for master and for_issue_88 branch HOT 1
- 向 varchar字段保存中文中会被截断 HOT 10
- Maintain releases HOT 5
- The package is returning a panic instead of an error HOT 4
- Issues with parametrized queries Windows/DuckDB HOT 2
- abount microsoft access long binary data type HOT 1
- Unrecognized Data Type on Column
- random errors when doing the db.query using Denodo odbc driver HOT 1
- Does this package support `-buildmode=c-shared` HOT 1
- Have error `api/api_unix.go:15:11: fatal error: 'sql.h' file not found` HOT 6
- Error : unrecognized import path "golang.zx2c4.com/go118/netip" HOT 2
- connect db2 when column is NULL, parsing data error execution an error occurred is {wrong column #1 length 4294967295 returned, 16 expected} HOT 3
- (duckdb ODBC) Cannot Insert INTEGER HOT 3
- Cannot Update Golang Bool value to TINYINT column HOT 1
- QueryContext raises `panic: send on closed channel` HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from odbc.