提交 60187ab7 编写于 作者: A Alexey Milovidov

Miscellaneous [#CLICKHOUSE-3861]

上级 eb697dca
......@@ -39,6 +39,9 @@ std::string validateODBCConnectionString(const std::string & connection_string)
if (connection_string.empty())
throw Exception("ODBC connection string cannot be empty", ErrorCodes::BAD_ODBC_CONNECTION_STRING);
if (connection_string.size() >= MAX_CONNECTION_STRING_SIZE)
throw Exception("ODBC connection string is too long", ErrorCodes::BAD_ODBC_CONNECTION_STRING);
const char * pos = connection_string.data();
const char * end = pos + connection_string.size();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册