Comments (6)
I think, you might be right about this could be to do with freetds. I don't
have MS-SQL 2008 to try it here. I will try to find one and see if it works
with windows client.
Blocking in C.SQLEndTran indicates that something is not right in freeetds.
Perhaps, you can rewrite this test in a different language to try and see, if
you get similar problem.
I don't know what to do, I will think about it more when I have more time.
Alex
Original comment by [email protected]
on 22 Aug 2013 at 7:29
- Changed state: Accepted
from odbc.
I will send you the access details to my SQL server should you want to use it.
In the meantime I will try out the code on a Windows machine too and I will see
if I can run this test in another language as well. I'm not used to writing
odbc on Linux at all though.
Original comment by [email protected]
on 22 Aug 2013 at 9:00
from odbc.
Just tried running tests against your server and, while it is slow, everything
works:
# go test -run=MS -v ...
=== RUN TestMSSQLCreateInsertDelete
--- PASS: TestMSSQLCreateInsertDelete (21.41 seconds)
=== RUN TestMSSQLTransactions
--- PASS: TestMSSQLTransactions (30.96 seconds)
=== RUN TestMSSQLTypes
--- PASS: TestMSSQLTypes (144.92 seconds)
=== RUN TestMSSQLIntAfterText
--- PASS: TestMSSQLIntAfterText (3.61 seconds)
=== RUN TestMSSQLStmtAndRows
--- PASS: TestMSSQLStmtAndRows (32.49 seconds)
=== RUN TestMSSQLIssue5
--- PASS: TestMSSQLIssue5 (32.13 seconds)
=== RUN TestMSSQLDeleteNonExistent
--- PASS: TestMSSQLDeleteNonExistent (7.86 seconds)
PASS
ok code.google.com/p/odbc 273.392s
I am using linux-386 system with freetds-0.91 and unixODBC-2.3.1. I am out of
ideas what could be wrong with your system. You said it blocks in C.SQLEndTran,
perhaps you could see what happens there - maybe look at SQL Server for any
transaction locks that holding your connection, alternatively step inside
C.SQLEndTran with gdb. Unfortunately, I am not clear myself about the plan.
Thank you for providing access to investigate, you saved me the hassle. I have
another SQL Server 2008 issue to resolve
(http://code.google.com/p/odbc/issues/detail?id=14). Would it be OK for me to
run it against your system?
Alex
Original comment by [email protected]
on 23 Aug 2013 at 12:03
from odbc.
Thanks a bunch for testing this yourself with similar versions.
I'll have more time to investigate this myself later today.
I've become convinced it is a bug in either freetds or unixodbc. I've set up
another unrelated linux-machine (Ubuntu this time) and I'm having the same
issues. The only difference is that freetds is one version lower than with
Debian (0.91-1build1).
My next step is to try and upgrade unixODBC to 2.3.1 and see what that gives.
Unfortunately, even though 2.3.1 is out since 2011, even sid doesn't have it
yet.
Please, by all means, feel free to use that database whenever you need. It
doesn't cost me anything extra to have that database running so I'll keep it
online as long as I keep the server.
Govert
Original comment by [email protected]
on 23 Aug 2013 at 9:56
from odbc.
I can confirm that the problem is in unixodbc. After manually building 2.3.1 on
my system all the tests run succesfully.
Thanks for your time and I apologize for having wasted it.
Govert
Original comment by [email protected]
on 24 Aug 2013 at 12:15
from odbc.
Glad you can run it now.
Alex
Original comment by [email protected]
on 25 Aug 2013 at 8:51
- Changed state: Done
from odbc.
Related Issues (20)
- DB2 for i: Simple select with empty ResultSet locks table HOT 1
- Compile errors when building from Windows OS with GOOS=linux HOT 2
- an error of SQL syntax error HOT 1
- Panic when binding `varchar`/`string` types: slice bounds out of range [:668] with capacity 256 HOT 3
- memory leak using rows.next() HOT 7
- signal 13 received but handler not on signal stack HOT 4
- Low max message length HOT 3
- 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 8
- 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
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.