Skip to content

Commit

Permalink
fixed mssql test demo
Browse files Browse the repository at this point in the history
  • Loading branch information
Sascha Kuehl committed Jan 1, 2020
1 parent a91036b commit 5d16ad1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 65 deletions.
64 changes: 0 additions & 64 deletions cmake/FindODBC.cmake

This file was deleted.

2 changes: 1 addition & 1 deletion src/db/mssql/mssql_parameter_binder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ mssql_parameter_binder::value_t* create_bind_value(bool is_null_value, const std
v->len = SQL_NULL_DATA;
} else {

v->len = s;
v->len = (s == 0 ? 1 : s);
v->data = new char[s + 1];
#ifdef _MSC_VER
strncpy_s(v->data, s + 1, val.c_str(), s);
Expand Down

0 comments on commit 5d16ad1

Please sign in to comment.