Skip to content

Commit

Permalink
checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Sascha Kühl committed May 10, 2019
1 parent 2552150 commit 3602d38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/db/mssql/mssql_connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ void mssql_connection::open(const std::string &connection)
{
// dns syntax:
// user[:passwd]@host[:port]/instance/db [(Drivername)]
//static const std::regex DNS_RGX("(.+?)(?::(.+?))?@([^:]+?)(?::([1-9][0-9]*?))?(?:/(.+?))?/(.+?)(?:\\s+\\((.+)\\))?");
static const std::regex DNS_RGX(R"((.+?)(?::(.+?))?@([^:]+?)(?::([1-9][0-9]*?))?(?:/(.+?))?/(.+?)(?:\s+\((.+)\))?)");
std::smatch what;

Expand Down
2 changes: 1 addition & 1 deletion src/db/mssql/mssql_statement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ void mssql_statement::bind_value(const std::string &str, size_t index)
#else
v->data = strncpy(v->data, str.c_str(), s);
#endif
(v->data)[s + 1] = '\0';
(v->data)[s++] = '\0';
}

host_data_.push_back(v);
Expand Down

0 comments on commit 3602d38

Please sign in to comment.