Comments (6)
@bbigras It's very strange. I've finally setup dockerized version of MSSQL for Linux on my Mac and I've run your code for 100 times (with latest odbc-rs 0.9.0) in a loop and everything is fine, no errors, 10605 is returned every time
from odbc-rs.
Sounds like we messed up in our unsafe code. A backtrace would be helpful.
from odbc-rs.
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: State: HY090, Native error: 0, Message: [FreeTDS][SQL Server]Invalid string or buffer length', /checkout/src/libcore/result.rs:860:4
stack backtrace:
0: std::sys::imp::backtrace::tracing::imp::unwind_backtrace
at /checkout/src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:49
1: std::sys_common::backtrace::_print
at /checkout/src/libstd/sys_common/backtrace.rs:71
2: std::panicking::default_hook::{{closure}}
at /checkout/src/libstd/sys_common/backtrace.rs:60
at /checkout/src/libstd/panicking.rs:380
3: std::panicking::default_hook
at /checkout/src/libstd/panicking.rs:396
4: std::panicking::rust_panic_with_hook
at /checkout/src/libstd/panicking.rs:610
5: std::panicking::begin_panic
at /checkout/src/libstd/panicking.rs:571
6: std::panicking::begin_panic_fmt
at /checkout/src/libstd/panicking.rs:521
7: rust_begin_unwind
at /checkout/src/libstd/panicking.rs:497
8: core::panicking::panic_fmt
at /checkout/src/libcore/panicking.rs:71
9: core::result::unwrap_failed
at /checkout/src/libcore/macros.rs:31
10: <core::result::Result<T, E>>::unwrap
at /checkout/src/libcore/result.rs:738
11: test_odbc::main
at src/main.rs:292
12: __rust_maybe_catch_panic
at /checkout/src/libpanic_unwind/lib.rs:98
13: std::rt::lang_start
at /checkout/src/libstd/panicking.rs:458
at /checkout/src/libstd/panic.rs:361
at /checkout/src/libstd/rt.rs:61
14: main
15: __libc_start_main
16: _start
from odbc-rs.
Any progress on this?
from odbc-rs.
@bbigras I'm afraid not much as I've had almost no free time in last few month to check this further.
from odbc-rs.
Note to myself: looks like bind param is broken at
odbc-rs/src/statement/input.rs
Line 74 in 35f90a7
from odbc-rs.
Related Issues (20)
- No reexport for odbc_safe HOT 2
- parameter binding problem(Is this dangling pointer?) HOT 4
- Code in Readme: wrong number of type arguments: expected 1, found 0 HOT 4
- Send+Sync for connection HOT 4
- odbc v0.13.0 does not compile any more HOT 3
- How can I connect to MS DataBase HOT 8
- Panic when Reading table from DB2 Driver HOT 6
- Incorrect affected_row_count using UPDATE and SELECT clause from SQL Server
- Invalid handle panic due to connection dropped before statement HOT 1
- Is it possible to get SQL_INTERVAL_STRUCT from a cursor?
- access office access?
- Arrow output HOT 5
- Connection Pooling support HOT 10
- async/.await HOT 1
- New Beginner: top level return for values example. HOT 1
- FromBytesWithNulError { kind: InteriorNul(1) }
- Travis out of credits
- lib build failed HOT 2
- This repo is unsupported HOT 1
- Unsound implementation of `convert_primitive` 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-rs.